ctr_contract.go 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. )
  8. // CtrContract is the golang structure for table ctr_contract.
  9. type CtrContract struct {
  10. Id int `orm:"id,primary" json:"id"` // 主键
  11. ContractCode string `orm:"contract_code" json:"contractCode"` // 合同编号
  12. ContractName string `orm:"contract_name" json:"contractName"` // 合同名称
  13. CustId int `orm:"cust_id" json:"custId"` // 关联客户
  14. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  15. ProductLine string `orm:"product_line" json:"productLine"` // 产品线
  16. IsBig string `orm:"is_big" json:"isBig"` // 是否为大项目
  17. CustProvinceId int `orm:"cust_province_id" json:"custProvinceId"` // 所在省ID
  18. CustProvince string `orm:"cust_province" json:"custProvince"` // 所在省
  19. CustCityId int `orm:"cust_city_id" json:"custCityId"` // 所在市ID
  20. CustCity string `orm:"cust_city" json:"custCity"` // 所在市
  21. NboId int `orm:"nbo_id" json:"nboId"` // 关联项目
  22. NboName string `orm:"nbo_name" json:"nboName"` // 项目名称
  23. ApproStatus string `orm:"appro_status" json:"approStatus"` // 审核状态 10 待提交审核 20 待审核 30 审核已同意 40 审核已拒绝 50 审核已撤销
  24. ContractType string `orm:"contract_type" json:"contractType"` // 合同类型
  25. ContractAmount float64 `orm:"contract_amount" json:"contractAmount"` // 合同金额
  26. InvoiceAmount float64 `orm:"invoice_amount" json:"invoiceAmount"` // 已开票金额
  27. CollectedAmount float64 `orm:"collected_amount" json:"collectedAmount"` // 已回款金额
  28. ContractStartTime *gtime.Time `orm:"contract_start_time" json:"contractStartTime"` // 合同开始时间
  29. ContractEndTime *gtime.Time `orm:"contract_end_time" json:"contractEndTime"` // 合同结束时间
  30. ContractSignTime *gtime.Time `orm:"contract_sign_time" json:"contractSignTime"` // 合同签订时间
  31. InchargeId int `orm:"incharge_id" json:"inchargeId"` // 负责人ID
  32. InchargeName string `orm:"incharge_name" json:"inchargeName"` // 负责人(销售工程师)
  33. SignatoryId int `orm:"signatory_id" json:"signatoryId"` // 公司签约人ID
  34. SignatoryName string `orm:"signatory_name" json:"signatoryName"` // 公司签约人
  35. SignatoryType string `orm:"signatory_type" json:"signatoryType"` // 签订单位类型 10 终端用户 20 经销商 30 代理商
  36. SignatoryUnit string `orm:"signatory_unit" json:"signatoryUnit"` // 合同签订单位
  37. EarnestMoney float64 `orm:"earnest_money" json:"earnestMoney"` // 质量/履约保证金(元)
  38. CustSignatoryId int `orm:"cust_signatory_id" json:"custSignatoryId"` // 客户签约人ID
  39. CustSignatoryName string `orm:"cust_signatory_name" json:"custSignatoryName"` // 客户签约人
  40. DistributorId int `orm:"distributor_id" json:"distributorId"` // 经销商ID
  41. DistributorName string `orm:"distributor_name" json:"distributorName"` // 经销商
  42. ServiceFeeAgreement string `orm:"service_fee_agreement" json:"serviceFeeAgreement"` // 运维服务费约定
  43. Remark string `orm:"remark" json:"remark"` // 备注
  44. CreatedBy int `orm:"created_by" json:"createdBy"` // 创建者
  45. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  46. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  47. UpdatedBy int `orm:"updated_by" json:"updatedBy"` // 更新者
  48. UpdatedName string `orm:"updated_name" json:"updatedName"` // 更新人
  49. UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
  50. DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
  51. }