mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: create folder / Modify: add index to some column
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user