cm_contracts.go 1.1 KB

123456789101112131415161718192021
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmContracts struct {
  6. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  7. TreeId int `xorm:"not null default 0 comment('树ID') INT(11)"`
  8. ContractsType int `xorm:"not null comment('合同类型(1收入合同2支出合同)') TINYINT(1)"`
  9. ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
  10. BidsectionId int `xorm:"comment('标段ID') INT(11)"`
  11. Name string `xorm:"not null comment('名称') VARCHAR(64)"`
  12. Code string `xorm:"comment('合同编号') VARCHAR(32)"`
  13. Price string `xorm:"not null comment('合同金额 0') DECIMAL(12,2)"`
  14. Returned string `xorm:"not null comment('回款总金额 0') DECIMAL(12,2)"`
  15. Paid string `xorm:"not null default 0.00 comment('合同已支付金额 0') DECIMAL(12,2)"`
  16. Status int `xorm:"not null comment('合同状态 0') TINYINT(1)"`
  17. CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
  18. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  19. }