b0350abfbe
- Fix DB_NAME=db_yal -> mydb in api_yal .env - Add connection pool (MaxOpenConns 25, MaxIdleConns 10, ConnMaxLifetime 30m) - Replace GORM AutoMigrate with golang-migrate in api_yal and api_bb - Create embedded SQL migrations for both APIs - Add DB_SCHEMA support to api_bb config - Consolidate to single Postgres: db_bb -> schema 'bb' on db container - Remove db_bb service, bb-network, db_bb volume from compose - Remove api_tp targets from Makefile - Clean up old migrate.go
api_bb/ ├── cmd/ │ └── server/ │ └── main.go ├── internal/ │ ├── config/ │ │ └── config.go │ ├── handlers/ │ │ ├── health.go │ │ ├── auth.go │ │ └── handlers.go │ ├── models/ │ │ └── user.go │ ├── repository/ │ │ └── user_repository.go │ ├── service/ │ │ └── auth_service.go │ └── routes/ │ └── routes.go ├── pkg/ │ ├── database/ │ │ └── database.go │ └── middleware/ │ └── middleware.go ├── go.mod └── go.sum