Files
full/module/ec/mall/internal/models/mall_freight_deny.go

29 lines
1011 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package models
import (
"git.apinb.com/bsm-sdk/core/database"
"git.apinb.com/bsm-sdk/core/types"
"gorm.io/gorm"
)
// Store Freight Deny
type MallFreightDeny struct {
gorm.Model
types.Std_Identity
types.Std_Status
OwnerIdentity string `gorm:"column:owner_identity;type:varchar(36);Index;"` // 机构唯一标识24位NanoID,36位为UUID
CreatedIdentity string `gorm:"column:created_identity;type:varchar(36);Index;"` // 创建者一标识24位NanoID,36位为UUID
Title string `gorm:"column:title;type:varchar(255);not null;" json:"title"` // 名称
Region string `gorm:"column:region;type:text;" json:"region"` // 限售区域json字符串
RegionId string `gorm:"column:region_id;type:varchar(255);" json:"region_id"` // 限售区域id,用逗号隔开
}
func init() {
database.AppendMigrate(&MallFreightDeny{})
}
// TableName .
func (table *MallFreightDeny) TableName() string {
return "mall_freight_deny" //对应数据库表名
}