🗑️ Remove account
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
package models
|
||||
|
||||
import "git.solsynth.dev/hypernet/nexus/pkg/nex/sec"
|
||||
|
||||
type Account struct {
|
||||
sec.UserInfo
|
||||
|
||||
Attachments []Attachment `json:"attachments"`
|
||||
Pools []AttachmentPool `json:"pools"`
|
||||
}
|
@ -46,6 +46,5 @@ type Attachment struct {
|
||||
Pool *AttachmentPool `json:"pool"`
|
||||
PoolID *uint `json:"pool_id"`
|
||||
|
||||
Account Account `json:"account"`
|
||||
AccountID uint `json:"account_id"`
|
||||
AccountID uint `json:"account_id"`
|
||||
}
|
||||
|
@ -15,8 +15,7 @@ type AttachmentPool struct {
|
||||
|
||||
Attachments []Attachment `json:"attachments" gorm:"foreignKey:PoolID"`
|
||||
|
||||
Account *Account `json:"account"`
|
||||
AccountID *uint `json:"account_id"`
|
||||
AccountID *uint `json:"account_id"`
|
||||
}
|
||||
|
||||
type AttachmentPoolConfig struct {
|
||||
|
@ -14,7 +14,6 @@ type Sticker struct {
|
||||
PackID uint `json:"pack_id"`
|
||||
Pack StickerPack `json:"pack"`
|
||||
AccountID uint `json:"account_id"`
|
||||
Account Account `json:"account"`
|
||||
}
|
||||
|
||||
type StickerPack struct {
|
||||
@ -25,5 +24,4 @@ type StickerPack struct {
|
||||
Description string `json:"description"`
|
||||
Stickers []Sticker `json:"stickers" gorm:"foreignKey:PackID;constraint:OnDelete:CASCADE"`
|
||||
AccountID uint `json:"account_id"`
|
||||
Account Account `json:"account"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user