Database basic CRUD (#27)
* started schema * db schemas beginning * first db schema gen * added sqlc generation with go generate and sqlite driver * i think these dependencies are needed * added IF NOT EXISTS to create and CRUD for each table * fixed missing columns * added missing field * fixed code generation with sqlc
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.28.0
|
||||
|
||||
package sqlcgen
|
||||
|
||||
type Artist struct {
|
||||
ID int64
|
||||
Name string
|
||||
}
|
||||
|
||||
type ArtistCredit struct {
|
||||
ID int64
|
||||
Text interface{}
|
||||
}
|
||||
|
||||
type ArtistCreditArtist struct {
|
||||
ID int64
|
||||
ArtistID int64
|
||||
CreditID int64
|
||||
}
|
||||
|
||||
type AudioFile struct {
|
||||
ID int64
|
||||
FilePath string
|
||||
LengthMilliseconds int64
|
||||
FileTypeID int64
|
||||
RecordingID int64
|
||||
}
|
||||
|
||||
type CoverArt struct {
|
||||
ID int64
|
||||
IsEmbedded bool
|
||||
FilePath string
|
||||
FileTypeID int64
|
||||
}
|
||||
|
||||
type FileType struct {
|
||||
ID int64
|
||||
Extension string
|
||||
}
|
||||
|
||||
type Recording struct {
|
||||
ID int64
|
||||
Name string
|
||||
ArtistCreditID int64
|
||||
}
|
||||
|
||||
type ReleaseGroup struct {
|
||||
ID int64
|
||||
Name string
|
||||
CoverArtID int64
|
||||
}
|
||||
|
||||
type ReleaseGroupRecording struct {
|
||||
ID int64
|
||||
ReleaseGroupID int64
|
||||
RecordingID int64
|
||||
}
|
||||
Reference in New Issue
Block a user