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