fix: fix bug that the files associated with records still exist after deleting mysql and ftp records

This commit is contained in:
Li4n0
2022-11-16 23:53:55 +08:00
parent 48f55c5327
commit 5e80591c85
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
type File struct {
ID uint `gorm:"primarykey" form:"id" json:"id"`
RecordID uint `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"-"`
RecordID uint `json:"-"`
Name string `json:"name"`
Content []byte `json:"-"`
}