mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-11-02 11:42:22 +08:00
Add: model/folder
This commit is contained in:
17
models/folder.go
Normal file
17
models/folder.go
Normal 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:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user