cm_contracts_paid.go 1.1 KB

12345678910111213141516171819202122
  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. Way string `xorm:"comment('支付方式') VARCHAR(32)"`
  14. CreateUser string `xorm:"comment('创建人') VARCHAR(32)"`
  15. AccountId int `xorm:"not null default 0 comment('项目用户ID') INT(11)"`
  16. Remarks string `xorm:"comment('备注') VARCHAR(512)"`
  17. Annexes int `xorm:"default 0 comment('附件数量') TINYINT(2)"`
  18. CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
  19. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') TIMESTAMP"`
  20. }