30 lines
825 B
YAML
30 lines
825 B
YAML
version: "2"
|
|
sql:
|
|
- engine: postgresql
|
|
schema: internal/store/migrations
|
|
queries: internal/store/queries
|
|
gen:
|
|
go:
|
|
package: db
|
|
out: internal/store/db
|
|
sql_package: pgx/v5
|
|
emit_json_tags: true
|
|
emit_pointers_for_null_types: true
|
|
overrides:
|
|
- column: templates.doc
|
|
go_type:
|
|
import: github.com/vasyakrg/dns-autoresolver/internal/store/dto
|
|
package: dto
|
|
type: TemplateDoc
|
|
pointer: true
|
|
- db_type: "uuid"
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|
|
- db_type: "uuid"
|
|
nullable: true
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|
|
pointer: true
|