store.go 1.7 KB

12345678910111213141516171819202122232425262728
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package entity
  3. import (
  4. "time"
  5. )
  6. type Store struct {
  7. StoreID int64 `gorm:"column:store_id;primary_key;AUTO_INCREMENT"` // 门店ID
  8. StoreName string `gorm:"column:store_name;NOT NULL"` // 门店名称
  9. StoreCategory string `gorm:"column:store_category;NOT NULL"` // 门店类目(/分隔)
  10. StoreType int64 `gorm:"column:store_type;NOT NULL"` // 门店类型,1单门店,2连锁门店
  11. StoreLocation string `gorm:"column:store_location;NOT NULL"` // 门店地址
  12. StoreDetail string `gorm:"column:store_detail"` // 门店特点
  13. StoreLink string `gorm:"column:store_link"` // 分销链接
  14. TeamNum int64 `gorm:"column:team_num;NOT NULL"` // 包含团购套餐数
  15. BelongEnterpriseID string `gorm:"column:belong_enterprise_id"` // 门店所属商家ID
  16. CreatedAt time.Time `gorm:"column:created_at;NOT NULL"` // 创建时间
  17. IsDeleted int64 `gorm:"column:is_deleted;default:0;NOT NULL"` // 已删除(0否 1是)
  18. OperateType int64 `gorm:"column:operate_type;NOT NULL"` // 操作人类型(1商家 2后台)
  19. EnterpriseID string `gorm:"column:enterprise_id;NOT NULL"` // 商家id
  20. SubAccountID int64 `gorm:"column:sub_account_id;default:0;NOT NULL"` // 商家子账号id
  21. UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间
  22. }
  23. func (m *Store) TableName() string {
  24. return "younggee_store"
  25. }