🐛 Fix migration issue on pools

This commit is contained in:
2024-08-18 16:02:25 +08:00
parent 98cf753f66
commit a65b761d5e
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ type AttachmentPool struct {
Description string `json:"description"`
Config datatypes.JSONType[AttachmentPoolConfig] `json:"config"`
Attachments []Attachment `json:"attachments"`
Attachments []Attachment `json:"attachments" gorm:"foreignKey:PoolID"`
Account *Account `json:"account"`
AccountID *uint `json:"account_id"`