mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Add: model/file
This commit is contained in:
17
models/file.go
Normal file
17
models/file.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user