cm_contracts.go 1.8 KB

1234567891011121314151617181920212223242526272829
  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 default 1 comment('合同类型(1收入2支出)') TINYINT(1)"`
  9. ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
  10. BidsectionId int `xorm:"default 0 comment('标段ID') INT(11)"`
  11. Name string `xorm:"not null comment('合同名称') VARCHAR(64)"`
  12. Content string `xorm:"comment('合同内容') VARCHAR(1024)"`
  13. Code string `xorm:"comment('合同编号') VARCHAR(32)"`
  14. PartyA string `xorm:"comment('甲方') VARCHAR(32)"`
  15. PartyASigner string `xorm:"comment('甲方签约人') VARCHAR(32)"`
  16. PartyB string `xorm:"comment('乙方') VARCHAR(32)"`
  17. PartyBSigner string `xorm:"comment('乙方签约人') VARCHAR(32)"`
  18. SignerTime time.Time `xorm:"comment('签约日期') DATETIME"`
  19. Remarks string `xorm:"comment('备注') VARCHAR(1024)"`
  20. Price string `xorm:"not null default 0.00 comment('合同金额') DECIMAL(12,2)"`
  21. Returned string `xorm:"not null default 0.00 comment('回款总金额') DECIMAL(12,2)"`
  22. Paid string `xorm:"not null default 0.00 comment('合同已支付总金额') DECIMAL(12,2)"`
  23. Status int `xorm:"not null default 0 comment('合同状态(0履行中1待关闭2已关闭)') TINYINT(1)"`
  24. Locking int `xorm:"not null default 0 comment('锁定(0未锁定1锁定)') TINYINT(1)"`
  25. CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
  26. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  27. }