2
3

customer.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package customer
  2. import (
  3. "time"
  4. )
  5. type Customer struct {
  6. Id int `xorm:"not null pk autoincr INT(10)"`
  7. CustomerName string `xorm:"VARCHAR(50)"` //客户单位
  8. CustomerCode string `xorm:"VARCHAR(50)"` //客户编码
  9. Person string `xorm:"VARCHAR(50)"` //联系人
  10. AuthCode string `xorm:"VARCHAR(50)"` //授权码
  11. Telephone string `xorm:"VARCHAR(50)"` //电话
  12. Mailbox string `xorm:"VARCHAR(50)"` //邮箱
  13. Address string `xorm:"VARCHAR(50)"` //地址
  14. Established time.Time `xorm:"DATE"` //成立时间
  15. EmployeesNum int `xorm:"INT(50)"` //员工人数
  16. EnterpriseType string `xorm:"VARCHAR(50)"` //企业类型
  17. ZipCode string `xorm:"VARCHAR(50)"` //邮编
  18. FaxTelephone string `xorm:"VARCHAR(50)"` //传真电话
  19. Website string `xorm:"VARCHAR(100)"` //网站地址
  20. Representative string `xorm:"VARCHAR(50)"` //法定代表人
  21. MainBusiness string `xorm:"VARCHAR(50)"` //主营业务
  22. ViceBusiness string `xorm:"VARCHAR(50)"` //兼营业务
  23. CreateUserId int `xorm:"INT(10)"`
  24. CreateBy string `xorm:"VARCHAR(255)"`
  25. CreateOn time.Time `xorm:"DATETIME created"`
  26. ModifiedUserId int `xorm:"INT(10)"`
  27. ModifiedBy string `xorm:"VARCHAR(255)"`
  28. ModifiedOn time.Time `xorm:"DATETIME updated"`
  29. }
  30. type CustomerDict struct {
  31. Id int
  32. CustomerName string
  33. CustomerCode string
  34. }
  35. type CellsContractAttachment struct {
  36. Id int `xorm:"<- not null pk autoincr INT(10)"`
  37. PId int `xorm:"INT(10)"`
  38. FileName string `xorm:"VARCHAR(100)"`
  39. FileExtens string `xorm:"VARCHAR(100)"`
  40. Host string `xorm:"VARCHAR(254)"`
  41. FileId string `xorm:"VARCHAR(100)"`
  42. FileSize int32 `xorm:"INT(11)"`
  43. UploadDesc string `xorm:"VARCHAR(100)"`
  44. SortCode int `xorm:"INT(11)"`
  45. Enabled int `xorm:"INT(11)"`
  46. Remark string `xorm:"VARCHAR(100)"`
  47. CreateUserId int `xorm:"INT(10)"`
  48. CreateBy string `xorm:"VARCHAR(50)"`
  49. CreateOn time.Time `xorm:"DATETIME created"`
  50. ModifiedUserId int `xorm:"INT(10)"`
  51. ModifiedBy string `xorm:"VARCHAR(50)"`
  52. ModifiedOn time.Time `xorm:"DATETIME updated"`
  53. }
  54. type CellsContractAttachmentarrt struct {
  55. Host string
  56. FileId string
  57. FileName string
  58. Items int
  59. Id int
  60. }