mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
version: "2"
|
|
sql:
|
|
- engine: "postgresql"
|
|
schema: "./db/migrations"
|
|
queries: "./db/queries"
|
|
gen:
|
|
go:
|
|
package: "repository"
|
|
out: "internal/repository"
|
|
sql_package: "pgx/v5"
|
|
rename:
|
|
musicbrainz_id: "MusicBrainzID"
|
|
overrides:
|
|
- column: "artists.id"
|
|
go_type: "int32"
|
|
- column: "release_groups.id"
|
|
go_type: "int32"
|
|
- column: "tracks.id"
|
|
go_type: "int32"
|
|
- column: "listens.id"
|
|
go_type: "int32"
|
|
- db_type: "uuid"
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|
|
pointer: true
|
|
nullable: true
|
|
- db_type: "uuid"
|
|
go_type:
|
|
import: "github.com/google/uuid"
|
|
type: "UUID"
|
|
- db_type: "timestamptz"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
- db_type: "timestamp"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
- column: "bucketed_listens.bucket_start"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
- column: "listens.client"
|
|
go_type:
|
|
type: "string"
|
|
pointer: true
|
|
nullable: true
|
|
- column: "sessions.expires_at"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
- column: "sessions.created_at"
|
|
go_type:
|
|
import: "time"
|
|
type: "Time"
|
|
|