cm_contracts_paid.go 1.3 KB

1234567891011121314151617181920212223
  1. package models
  2. import (
  3. "time"
  4. )
  5. type CmContractsPaid struct {
  6. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  7. ContractsId int `xorm:"not null default 0 comment('合同ID') INT(11)"`
  8. ProjectId int `xorm:"not null default 0 comment('项目ID') INT(11)"`
  9. BidsectionId int `xorm:"not null default 0 comment('标段ID') INT(11)"`
  10. TreeId int `xorm:"not null default 0 comment('项目节ID') INT(11)"`
  11. Time time.Time `xorm:"comment('支付日期') DATETIME"`
  12. Price string `xorm:"default 0.00 comment('支付金额') DECIMAL(12,2)"`
  13. ContractDeduction string `xorm:"default 0.00 comment('支付金额') DECIMAL(12,2)"`
  14. Way string `xorm:"comment('支付方式') VARCHAR(32)"`
  15. CreateUser string `xorm:"comment('创建人') VARCHAR(32)"`
  16. AccountId int `xorm:"not null default 0 comment('项目用户ID') INT(11)"`
  17. Remarks string `xorm:"comment('备注') VARCHAR(512)"`
  18. Annexes int `xorm:"default 0 comment('附件数量') TINYINT(2)"`
  19. CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
  20. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  21. }