26 lines
675 B
YAML
26 lines
675 B
YAML
|
version: "2"
|
||
|
sql:
|
||
|
- engine: "postgresql"
|
||
|
queries: "model/sql/*.sql"
|
||
|
schema: "db/migrations"
|
||
|
database:
|
||
|
uri: postgresql://sorare:sorare@192.168.1.250:5436/sorare?sslmode=disable
|
||
|
gen:
|
||
|
go:
|
||
|
package: "model"
|
||
|
out: "model"
|
||
|
sql_package: "pgx/v5"
|
||
|
emit_pointers_for_null_types: true
|
||
|
overrides:
|
||
|
- db_type: "timestamptz"
|
||
|
go_type: "time.Time"
|
||
|
- db_type: "date"
|
||
|
go_type: "time.Time"
|
||
|
- db_type: "pg_catalog.numeric"
|
||
|
go_type:
|
||
|
import: "github.com/shopspring/decimal"
|
||
|
type: "Decimal"
|
||
|
|
||
|
|
||
|
|