12345678910111213141516171819 |
- package models
- import (
- "time"
- )
- type CmTree struct {
- Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
- Name string `xorm:"not null comment('名称') VARCHAR(64)"`
- ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
- Depth int `xorm:"not null default 0 comment('深度') TINYINT(4)"`
- Serial int `xorm:"not null default 0 comment('序号') TINYINT(4)"`
- Attribution string `xorm:"comment('归属') VARCHAR(32)"`
- Isfolder int `xorm:"not null default 1 comment('是否文件夹 1文件夹 0其他') TINYINT(1)"`
- TenderId int `xorm:"comment('标段ID') INT(11)"`
- ParentId int `xorm:"not null default 0 comment('父级ID') INT(11)"`
- CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
- UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
- }
|