diff --git a/backend/database/sql/sqlcgen/models.go b/backend/database/sql/sqlcgen/models.go index 405c8a6..e860e49 100644 --- a/backend/database/sql/sqlcgen/models.go +++ b/backend/database/sql/sqlcgen/models.go @@ -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 }