cm_tree.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmTree struct {
  6. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  7. Name string `xorm:"not null comment('名称') VARCHAR(64)"`
  8. ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
  9. Depth int `xorm:"not null default 0 comment('深度') TINYINT(4)"`
  10. Serial int `xorm:"not null default 0 comment('序号') TINYINT(4)"`
  11. Attribution string `xorm:"comment('归属') VARCHAR(32)"`
  12. Sort int `xorm:"not null default 0 comment('排序') TINYINT(4)"`
  13. Isfolder int `xorm:"not null default 1 comment('是否文件夹 1文件夹 0其他 1文件夹0其他') TINYINT(1)"`
  14. BidsectionId int `xorm:"comment('标段ID') INT(11)"`
  15. ParentId int `xorm:"not null default 0 comment('父级ID') INT(11)"`
  16. Accounts int `xorm:"not null default 0 comment('账号数') TINYINT(4)"`
  17. Contracts int `xorm:"not null default 0 comment('合同数') TINYINT(4)"`
  18. ContractsIncome string `xorm:"not null default 0.00 comment('合同收入总金额') DECIMAL(12,2)"`
  19. ContractsReturned string `xorm:"not null default 0.00 comment('合同已收总金额') DECIMAL(12,2)"`
  20. ContractsPay string `xorm:"not null default 0.00 comment('合同支付总金额') DECIMAL(12,2)"`
  21. ContractsPaid string `xorm:"not null default 0.00 comment('合同已支付金额') DECIMAL(12,2)"`
  22. SafeTotal int `xorm:"not null default 0 comment('安全巡检总数') TINYINT(4)"`
  23. SafeRectification int `xorm:"not null default 0 comment('安全巡检整改未') TINYINT(4)"`
  24. SafeRectificationIn int `xorm:"not null default 0 comment('安全巡检整改中') TINYINT(4)"`
  25. SafeRectificationFinish int `xorm:"not null default 0 comment('安全巡检整改完') TINYINT(4)"`
  26. QualityTotal int `xorm:"not null default 0 comment('质量总数') TINYINT(4)"`
  27. QualityRectification int `xorm:"not null default 0 comment('质量未整改') TINYINT(4)"`
  28. QualityRectificationIn int `xorm:"not null default 0 comment('质量整改中') TINYINT(4)"`
  29. QualityRectificationFinish int `xorm:"not null default 0 comment('质量整改完') TINYINT(4)"`
  30. Isdelete int `xorm:"not null default 0 comment('1删除') TINYINT(1)"`
  31. CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
  32. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  33. }