🚚 Expose the models to public
This commit is contained in:
32
pkg/filekit/models/stickers.go
Normal file
32
pkg/filekit/models/stickers.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
|
||||
)
|
||||
|
||||
type Sticker struct {
|
||||
cruda.BaseModel
|
||||
|
||||
Alias string `json:"alias"`
|
||||
Name string `json:"name"`
|
||||
AttachmentID uint `json:"attachment_id"`
|
||||
Attachment Attachment `json:"attachment"`
|
||||
PackID uint `json:"pack_id"`
|
||||
Pack StickerPack `json:"pack"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
||||
|
||||
type StickerPack struct {
|
||||
cruda.BaseModel
|
||||
|
||||
Prefix string `json:"prefix"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user