provider.go 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. package model
  2. import "time"
  3. type Provider struct {
  4. ID int `gorm:"column:id" json:"id" `
  5. ProviderIntro string `gorm:"column:providerIntro"` //供应商全称
  6. ProviderName string `gorm:"column:providerName"` //供应商简称
  7. ProviderNumber string `gorm:"column:providerNumber"` //供应商编码
  8. Email string `gorm:"column:email"` //邮箱
  9. Linkman string `gorm:"column:linkman"` //联系人
  10. Telphone string `gorm:"column:telphone"` //联系电话
  11. CompanyCode string `gorm:"column:company_code"` //公司代码
  12. SortName string `gorm:"column:sort_name"` //供应商分类
  13. SapCode string `gorm:"column:sapcode"` //sap供应商编码
  14. Enable int `gorm:"column:enable"` //是否启用
  15. PastureId int `gorm:"column:pastureId"`
  16. FlexPrice int `gorm:"column:flexPrice"`
  17. BusinessLicense string `gorm:"column:businessLicense"`
  18. OrganizationCode string `gorm:"column:organizationCode"`
  19. OpenLicence string `gorm:"column:openLicence"`
  20. IRSregister string `gorm:"column:IRSregister"`
  21. CreateTime time.Time `gorm:"column:createTime"`
  22. ModifyTime time.Time `gorm:"column:modifyTime"`
  23. CreatedAt time.Time `gorm:"column:created_at"`
  24. UpdatedAt time.Time `gorm:"column:updated_at"`
  25. }
  26. func (Provider) TableName() string {
  27. return "provider"
  28. }