version: "2" sql: - engine: "postgresql" queries: "./db/queries" schema: "./db/migrations" gen: go: package: "database" out: "./internal/database" sql_package: "pgx/v5" emit_json_tags: true overrides: - db_type: "pg_catalog.timestamp" go_type: type: "time.Time" - db_type: "pg_catalog.timestamp" nullable: true go_type: type: "*time.Time" - db_type: "pg_catalog.timestamptz" go_type: type: "time.Time" - db_type: "pg_catalog.timestamptz" nullable: true go_type: type: "time.Time" pointer: true - db_type: bool go_type: import: "" type: bool - db_type: bool go_type: import: "" type: bool pointer: true nullable: true