chore: initial public commit

This commit is contained in:
Gabe Farrell 2025-06-11 19:45:39 -04:00
commit fc9054b78c
250 changed files with 32809 additions and 0 deletions

57
sqlc.yaml Normal file
View 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"