liujiandao
2023-10-13 5fa1de02759b9646e8987312736699755990e960
model/contract.go
@@ -8,6 +8,7 @@
type (
   Contract struct {
      Id                    int                   `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
      ContractName          string                `json:"contractName" gorm:"column:contract_name;type:varchar(255);comment:合同名称"`
      ClientId              int                   `json:"clientId" gorm:"column:client_id;type:int;comment:客户id"`
      Client                Client                `json:"client" gorm:"foreignKey:ClientId"`
      MemberId              int                   `json:"memberId" gorm:"column:member_id;type:int;comment:负责人id"`