mirror of https://github.com/gabehf/Koito.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
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"
|
|
|