Initial commit: GovAI 政务AI平台
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
version: "2"
|
||||
sql:
|
||||
- engine: "postgresql"
|
||||
queries: "pkg/db/queries/"
|
||||
schema: "migrations/"
|
||||
gen:
|
||||
go:
|
||||
package: "db"
|
||||
out: "pkg/db/generated"
|
||||
sql_package: "pgx/v5"
|
||||
emit_json_tags: true
|
||||
emit_empty_slices: true
|
||||
emit_pointers_for_null_types: true
|
||||
overrides:
|
||||
- db_type: "uuid"
|
||||
go_type: "github.com/google/uuid.UUID"
|
||||
- db_type: "timestamptz"
|
||||
go_type: "time.Time"
|
||||
- db_type: "jsonb"
|
||||
go_type: "json.RawMessage"
|
||||
import: "encoding/json"
|
||||
- db_type: "inet"
|
||||
go_type: "string"
|
||||
Reference in New Issue
Block a user