123456789101112131415161718192021222324252627 |
- package gorm_model
- import (
- "time"
- )
- type Store struct {
- StoreId int `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 int `gorm:"column:store_type;NOT NULL"` // 门店类型,1单门店,2连锁门店
- StoreLocation string `gorm:"column:store_location"` // 门店地址
- StoreDetail string `gorm:"column:store_detail"` // 门店特点
- StoreLink string `gorm:"column:store_link"` // 分销链接
- TeamNum int `gorm:"column:team_num;default:0;NOT NULL"` // 包含团购套餐数
- BelongEnterpriseId string `gorm:"column:belong_enterprise_id"` // 门店所属商家ID
- IsDeleted int `gorm:"column:is_deleted;default:0;NOT NULL"` // 已删除(0否 1是)
- OperateType int `gorm:"column:operate_type;NOT NULL"` // 操作人类型(1商家 2后台)
- EnterpriseId string `gorm:"column:enterprise_id;NOT NULL"` // 商家id
- SubAccountId int `gorm:"column:sub_account_id;default:0;NOT NULL"` // 商家子账号id
- CreatedAt time.Time `gorm:"column:created_at;NOT NULL"` // 创建时间
- UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间
- }
- func (m *Store) TableName() string {
- return "younggee_store"
- }
|