Add: model/file

This commit is contained in:
HFO4
2019-11-15 16:36:48 +08:00
parent 4c1ece4b96
commit 71e668c005
2 changed files with 18 additions and 1 deletions

17
models/file.go Normal file
View File

@@ -0,0 +1,17 @@
package model
import "github.com/jinzhu/gorm"
// File 文件
type File struct {
// 表字段
gorm.Model
Name string
SourceName string
UserID uint
Size uint64
PicInfo string
FolderID uint
PolicyID uint
Dir string `gorm:"size:65536"`
}