123456789101112131415161718192021222324252627 |
- /*
- * @description:合同 视图
- * @Author: CP
- * @Date: 2020-11-11 11:19:30
- * @FilePath: \construction_management\web\viewmodels\contract.go
- */
- package viewmodels
- import (
- "time"
- )
- type Contracts struct {
- Id string `form:"id" json:"id" `
- TreeId string `xorm:"not null default 0 comment('树ID') INT(11)"`
- ContractsType int `xorm:"not null comment('合同类型(1收入合同2支出合同)') TINYINT(1)"`
- ProjectId string `xorm:"not null default 0 comment('项目ID') INT(11)"`
- BidsectionId string `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"`
- }
|