2024-07-14 17:39:03 -04:00
|
|
|
version: "2"
|
|
|
|
sql:
|
|
|
|
- engine: "postgresql"
|
2024-07-15 19:03:48 -04:00
|
|
|
queries: "postgres/queries"
|
2024-07-14 17:39:03 -04:00
|
|
|
schema: "postgres/migrations"
|
|
|
|
gen:
|
|
|
|
go:
|
|
|
|
package: "database"
|
2024-11-03 07:19:03 -05:00
|
|
|
out: "../pkg/database"
|
2024-07-14 17:39:03 -04:00
|
|
|
sql_package: "pgx/v5"
|
2024-07-22 08:39:33 -04:00
|
|
|
query_parameter_limit: 3
|
2024-07-25 09:37:27 -04:00
|
|
|
emit_json_tags: true
|
2024-07-27 19:25:16 -04:00
|
|
|
emit_interface: true
|
2024-11-15 11:34:54 -05:00
|
|
|
initialisms:
|
|
|
|
- id
|
|
|
|
- tgid
|
2024-11-17 21:46:10 -05:00
|
|
|
- tg
|
2024-07-25 09:37:27 -04:00
|
|
|
emit_pointers_for_null_types: true
|
2024-07-24 22:42:30 -04:00
|
|
|
overrides:
|
|
|
|
- db_type: "uuid"
|
|
|
|
go_type:
|
|
|
|
import: "github.com/google/uuid"
|
|
|
|
type: "UUID"
|
2024-07-25 09:37:27 -04:00
|
|
|
- db_type: "pg_catalog.int4"
|
|
|
|
go_type: "int"
|
2024-07-26 09:29:58 -04:00
|
|
|
- db_type: "pg_catalog.timestamp"
|
|
|
|
go_type: "time.Time"
|
2024-07-27 19:25:16 -04:00
|
|
|
- db_type: "pg_catalog.text"
|
|
|
|
go_type: "string"
|
2024-11-12 08:40:56 -05:00
|
|
|
- column: "talkgroups.alert_config"
|
|
|
|
go_type:
|
|
|
|
import: "dynatron.me/x/stillbox/pkg/alerting/rules"
|
|
|
|
type: "AlertRules"
|
|
|
|
nullable: true
|
2024-11-13 09:24:11 -05:00
|
|
|
- column: "talkgroups.metadata"
|
|
|
|
go_type:
|
|
|
|
import: "dynatron.me/x/stillbox/internal/jsontypes"
|
|
|
|
type: "Metadata"
|
|
|
|
nullable: true
|