mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-03-28 04:17:50 -04:00
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
version: "2"
|
|
sql:
|
|
- engine: "postgresql"
|
|
queries: "sql/queries"
|
|
schema: "sql/migrations"
|
|
gen:
|
|
go:
|
|
package: "dbc"
|
|
sql_package: "pgx/v5"
|
|
out: "dbc"
|
|
emit_pointers_for_null_types: true
|
|
emit_json_tags: true
|
|
json_tags_case_style: camel
|
|
initialisms: []
|
|
overrides:
|
|
- db_type: "timestamptz"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
- db_type: "timestamptz"
|
|
nullable: true
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
pointer: true
|
|
- db_type: "uuid"
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|
|
- db_type: "jsonb"
|
|
go_type:
|
|
type: "interface{}"
|
|
- db_type: "keibi.user_oidc"
|
|
go_type:
|
|
import: "github.com/zoriya/kyoo/keibi/models"
|
|
type: "OidcMap"
|
|
- column: "keibi.users.claims"
|
|
go_type:
|
|
import: "github.com/golang-jwt/jwt/v5"
|
|
package: "jwt"
|
|
type: "MapClaims"
|
|
- column: "keibi.apikeys.claims"
|
|
go_type:
|
|
import: "github.com/golang-jwt/jwt/v5"
|
|
package: "jwt"
|
|
type: "MapClaims"
|
|
overrides:
|
|
go:
|
|
rename:
|
|
keibi_apikey: Apikey
|
|
keibi_oidc_handle: OidcHandle
|
|
keibi_session: Session
|
|
keibi_user: User
|
|
keibi_oidc_login: OidcLogin
|