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