From a78003b5a3f7d58761b87900dc99b0e40c45afce Mon Sep 17 00:00:00 2001 From: wisplite Date: Thu, 20 Nov 2025 17:38:11 -0600 Subject: [PATCH] update model slightly --- backend/internal/models/album.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/internal/models/album.go b/backend/internal/models/album.go index 58f056a..a2dfacb 100644 --- a/backend/internal/models/album.go +++ b/backend/internal/models/album.go @@ -14,6 +14,7 @@ type Album struct { Private bool `gorm:"not null"` // Public albums have a default access level of 0 for all visitors, including guests. // Private albums require a user with access to be logged in to view, or a magic link to be used. + ParentID string `gorm:"not null"` // The ID of the parent album, if any. This is an empty string for root albums. CreatedAt time.Time UpdatedAt time.Time }