Sticker pack ownership

This commit is contained in:
2025-02-23 12:02:55 +08:00
parent cfd1735aee
commit 1dae405232
6 changed files with 120 additions and 29 deletions

View File

@ -25,3 +25,8 @@ type StickerPack struct {
Stickers []Sticker `json:"stickers" gorm:"foreignKey:PackID;constraint:OnDelete:CASCADE"`
AccountID uint `json:"account_id"`
}
type StickerPackOwnership struct {
PackID uint `json:"pack_id" gorm:"primaryKey"`
AccountID uint `json:"account_id" gorm:"primaryKey"`
}