update authorization tokens and add/fix create album endpoint

This commit is contained in:
wisplite
2025-11-22 21:19:44 -06:00
parent 062e0d6066
commit 432a9e5229
7 changed files with 40 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ type Album struct {
UpdatedAt time.Time
}
type UserAccess struct {
type UserAlbumAccess struct {
UserID string `gorm:"not null"`
AlbumID string `gorm:"not null"`
AccessLevel int `gorm:"not null"` // 0: View, 1: Upload, 2: Edit, 3: Edit/Delete, 4: Admin (manage other users)