feat(dbq): generate session queries

Adds Insert/Get/Touch/Delete helpers over the sessions table.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 20:15:45 -04:00
parent 1741b57a0b
commit c8a4a930ea
3 changed files with 108 additions and 0 deletions
+9
View File
@@ -29,6 +29,15 @@ type Artist struct {
UpdatedAt pgtype.Timestamptz
}
type Session struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
UserAgent string
CreatedAt pgtype.Timestamptz
LastSeenAt pgtype.Timestamptz
}
type Track struct {
ID pgtype.UUID
Title string