version: "2" sql: - engine: "postgresql" schema: - "../db/migrations/" - "migrations/" - "../db/sqlc_schemas.sql" queries: "queries/" gen: go: package: "domains" out: "." sql_package: "database/sql" emit_json_tags: true emit_prepared_queries: false emit_interface: true emit_exact_table_names: false emit_empty_slices: true omit_unused_structs: true rename: # Registry models. Pinned so the `domains` schema prefix sqlc # would otherwise fold into the struct name stays out of this # package's own API (it is already the package name). domains_claim: Claim domains_claims: Claim domains_placement: Placement domains_placements: Placement domains_name_rule: NameRule domains_name_rules: NameRule # Core spillover tables are pulled in by ../db/migrations/ but no # query here touches them, so omit_unused_structs drops them. A # query that starts joining core must add the canonical rename # entries -- see internal/integration/sqlc.yaml for the mapping. overrides: - db_type: "uuid" go_type: "string"