cust_customer.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. "dashoo.cn/micro/app/model/base"
  8. )
  9. // CustCustomer is the golang structure for table cust_customer.
  10. type CustCustomer struct {
  11. Id int `orm:"id,primary" json:"id"` // 主键
  12. CustCode string `orm:"cust_code" json:"custCode"` // 客户编号
  13. CustName string `orm:"cust_name" json:"custName"` // 客户名称
  14. AbbrName string `orm:"abbr_name" json:"abbrName"` // 助记名
  15. CustLocation string `orm:"cust_location" json:"custLocation"` // 所在地区
  16. CustAddress string `orm:"cust_address" json:"custAddress"` // 详细地址
  17. CustStatus string `orm:"cust_status" json:"custStatus"` // 客户状态(10正常20)
  18. IsPublic string `orm:"is_public" json:"isPublic"` // 公海客户(10是20否)
  19. DeptId int `orm:"dept_id" json:"deptId"` // 所属部门ID
  20. DeptName string `orm:"dept_name" json:"deptName"` // 所属部门
  21. SalesId int `orm:"sales_id" json:"salesId"` // 所属销售ID
  22. SalesName string `orm:"sales_name" json:"salesName"` // 所属销售
  23. FollowUpDate *gtime.Time `orm:"follow_up_date" json:"followUpDate"` // 最后跟进时间
  24. Remark string `orm:"remark" json:"remark"` // 备注
  25. CreatedBy int `orm:"created_by" json:"createdBy"` // 创建者
  26. CreatedName string `orm:"created_name" json:"createdName"` // 创建人
  27. CreatedTime *gtime.Time `orm:"created_time" json:"createdTime"` // 创建时间
  28. UpdatedBy int `orm:"updated_by" json:"updatedBy"` // 更新者
  29. UpdatedName string `orm:"updated_name" json:"updatedName"` // 更新人
  30. UpdatedTime *gtime.Time `orm:"updated_time" json:"updatedTime"` // 更新时间
  31. DeletedTime *gtime.Time `orm:"deleted_time" json:"deletedTime"` // 删除时间
  32. Distributor *base.BaseDistributor `orm:"with:belong_sale_id = sales_id"` //
  33. Contact *CustCustomerContact `orm:"with: id= cust_id"`
  34. }