You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
1.1 KiB
17 lines
1.1 KiB
package OrmStructs
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
type Path struct {
|
|
ID int64 `gorm:"type:bigint;primary_key;AUTO_INCREMENT;comment:文件id"` // 目录id
|
|
Name string `gorm:"type:varchar(255);not null;comment:目录名称"` // 目录名称
|
|
ParentID int64 `gorm:"type:bigint;not null;comment:父级目录id"` // 父级目录id
|
|
CreaterUserID int64 `gorm:"type:bigint;not null;comment:创建者id"` // 创建者id
|
|
CreaterUserName string `gorm:"type:varchar(255);not null;comment:创建者名称"` // 创建者名称
|
|
UpdaterUserID int64 `gorm:"type:bigint;not null;comment:更新者id"` // 更新者id
|
|
UpdaterUserName string `gorm:"type:varchar(255);not null;comment:更新者名称"`
|
|
DeleterUserID int64 `gorm:"type:bigint;not null;comment:删除者id"` // 删除者id
|
|
DeleterUserName string `gorm:"type:varchar(255);not null;comment:删除者名称"` // 删除者名称
|
|
Tenant int64 `gorm:"type:varchar(255);not null;comment:租户"` // 租户
|
|
gorm.Model
|
|
}
|
|
|