lavender/sqlc.yaml

32 lines
1.2 KiB
YAML
Raw Normal View History

version: "2"
sql:
- engine: sqlite
queries: database/queries
schema: database/migrations
gen:
go:
package: "database"
out: "database"
emit_json_tags: true
2024-08-29 17:57:31 +01:00
overrides:
- column: "users.password"
2024-09-02 22:54:03 +01:00
go_type: "github.com/1f349/lavender/password.HashString"
2024-08-29 17:57:31 +01:00
- column: "users.birthdate"
go_type: "github.com/hardfinhq/go-date.NullDate"
- column: "users.role"
2024-09-02 22:54:03 +01:00
go_type: "github.com/1f349/lavender/database/types.UserRole"
2024-08-29 17:57:31 +01:00
- column: "users.pronouns"
2024-09-02 22:54:03 +01:00
go_type: "github.com/1f349/lavender/database/types.UserPronoun"
2024-08-29 17:57:31 +01:00
- column: "users.zoneinfo"
2024-09-02 22:54:03 +01:00
go_type: "github.com/1f349/lavender/database/types.UserZone"
2024-08-29 17:57:31 +01:00
- column: "users.locale"
2024-09-02 22:54:03 +01:00
go_type: "github.com/1f349/lavender/database/types.UserLocale"
- column: "users.auth_type"
go_type: "github.com/1f349/lavender/database/types.AuthType"
- column: "users.access_token"
go_type: "database/sql.NullString"
- column: "users.refresh_token"
go_type: "database/sql.NullString"
- column: "users.token_expiry"
go_type: "database/sql.NullTime"