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:
2026-03-22 10:48:35 -04:00
parent 7cde7cc7b8
commit c5b293d410
+10
View File
@@ -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
}