Feat: create folder / Modify: add index to some column

This commit is contained in:
HFO4
2019-11-24 11:33:30 +08:00
parent 89b54e401c
commit a89c3cb11a
7 changed files with 112 additions and 9 deletions

View File

@@ -11,10 +11,10 @@ type File struct {
gorm.Model
Name string
SourceName string
UserID uint
UserID uint `gorm:"index:user_id"`
Size uint64
PicInfo string
FolderID uint
FolderID uint `gorm:"index:folder_id"`
PolicyID uint
Dir string `gorm:"size:65536"`
}