feat: add backend, database, and protocol foundations

This commit is contained in:
DiheChen committed 2026-10-30 01:32:19 +08:00
commit ec08d487e1
179 files changed
+27079

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
version: "2"
sql:
- engine: postgresql
schema: db/migrations
queries: db/queries
gen:
go:
package: query
out: internal/adapter/out/postgres/internal/query
sql_package: pgx/v5
omit_unused_structs: true
emit_pointers_for_null_types: true
initialisms: [id, url]
overrides:
- db_type: uuid
go_type: string
- db_type: uuid
nullable: true
go_type:
type: string
pointer: true
- db_type: timestamptz
go_type: time.Time
- db_type: timestamptz
nullable: true
go_type:
type: time.Time
pointer: true