feat(06-01): create track_metadata VIEW schema and migration 4
- Add track_metadata_view.sql for sqlc VIEW awareness - Add migration4TrackMetadataView for existing databases - sqlc generate produces TrackMetadatum model from VIEW - migration2 inline JOIN preserved (runs before VIEW exists)
This commit is contained in:
@@ -136,3 +136,23 @@ type SearchIndex struct {
|
||||
Artist string
|
||||
Album string
|
||||
}
|
||||
|
||||
type TrackMetadatum struct {
|
||||
ID int64
|
||||
FilePath string
|
||||
LengthMilliseconds int64
|
||||
Title string
|
||||
ArtistName string
|
||||
TrackNumber sql.NullInt64
|
||||
DiscNumber sql.NullInt64
|
||||
Album string
|
||||
Genre string
|
||||
Year int64
|
||||
Composer string
|
||||
FileType string
|
||||
SampleRate int64
|
||||
BitDepth int64
|
||||
Channels int64
|
||||
Bitrate int64
|
||||
FileSize int64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user