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" //对应数据库表名
}
