chore: update sqlcgen models with play_count/last_played fields
Auto-generated by sqlc from updated schema. Adds PlayCount/LastPlayed to AudioFile and TrackMetadatum structs, and PlayHistory model.
This commit is contained in:
@@ -38,6 +38,8 @@ type AudioFile struct {
|
||||
FileSize int64
|
||||
Basename string
|
||||
LibraryID int64
|
||||
PlayCount int64
|
||||
LastPlayed sql.NullTime
|
||||
}
|
||||
|
||||
type CoverArt struct {
|
||||
@@ -64,6 +66,12 @@ type Library struct {
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type PlayHistory struct {
|
||||
ID int64
|
||||
AudioFileID int64
|
||||
PlayedAt time.Time
|
||||
}
|
||||
|
||||
type PlayerState struct {
|
||||
ID int64
|
||||
Volume int64
|
||||
@@ -173,4 +181,6 @@ type TrackMetadatum struct {
|
||||
Bitrate int64
|
||||
FileSize int64
|
||||
LibraryID int64
|
||||
PlayCount int64
|
||||
LastPlayed sql.NullTime
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user