初始化2
This commit is contained in:
@@ -6,7 +6,8 @@ import "time"
|
||||
// 使用物化路径(materialized path)实现树形结构
|
||||
// 例如: /0/1/5/ 表示根目录下ID=1的文件夹中的ID=5的文件夹
|
||||
type Folder struct {
|
||||
ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
ID uint64 `json:"id" gorm:"primaryKey"`
|
||||
BizID string `json:"biz_id" gorm:"index;size:128"` // 业务ID, 用于外部系统关联
|
||||
Name string `json:"name" gorm:"size:256;not null"`
|
||||
ParentID uint64 `json:"parent_id" gorm:"index;default:0"` // 0=根目录
|
||||
OwnerID uint64 `json:"owner_id" gorm:"index;not null"`
|
||||
|
||||
Reference in New Issue
Block a user