mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-10 07:50:37 -07:00
chore: initial public commit
This commit is contained in:
commit
fc9054b78c
250 changed files with 32809 additions and 0 deletions
57
sqlc.yaml
Normal file
57
sqlc.yaml
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
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"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue