Add: model/folder

This commit is contained in:
HFO4
2019-11-15 16:32:43 +08:00
parent ceb8ee72d8
commit 4c1ece4b96
3 changed files with 31 additions and 1 deletions

17
models/folder.go Normal file
View File

@ -0,0 +1,17 @@
package model
import "github.com/jinzhu/gorm"
// Folder 目录
type Folder struct {
// 表字段
gorm.Model
Name string
ParentID uint
Position string `gorm:"size:65536"`
OwnerID uint
PositionAbsolute string `gorm:"size:65536"`
// 关联模型
OptionsSerialized PolicyOption `gorm:"-"`
}