mirror of
https://github.com/1f349/tulip.git
synced 2024-11-09 22:42:53 +00:00
24 lines
847 B
YAML
24 lines
847 B
YAML
version: "2"
|
|
sql:
|
|
- engine: sqlite
|
|
queries: database/queries
|
|
schema: database/migrations
|
|
gen:
|
|
go:
|
|
package: "database"
|
|
out: "database"
|
|
emit_json_tags: true
|
|
overrides:
|
|
- column: "users.password"
|
|
go_type: "github.com/1f349/tulip/password.HashString"
|
|
- column: "users.birthdate"
|
|
go_type: "github.com/hardfinhq/go-date.NullDate"
|
|
- column: "users.role"
|
|
go_type: "github.com/1f349/tulip/database/types.UserRole"
|
|
- column: "users.pronouns"
|
|
go_type: "github.com/1f349/tulip/database/types.UserPronoun"
|
|
- column: "users.zoneinfo"
|
|
go_type: "github.com/1f349/tulip/database/types.UserZone"
|
|
- column: "users.locale"
|
|
go_type: "github.com/1f349/tulip/database/types.UserLocale"
|