// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models

import (
	"git.apinb.com/bsm-sdk/core/database"
	"git.apinb.com/bsm-sdk/core/types"
	"gorm.io/gorm"
)

/*
 * StoreBasic
 * Comment: 电商系统-店铺申请表
 * Version: 10
 * Created: 2022-04-12 14:18:10 , Updated:0001-01-01 00:00:00
 */
type MallApply struct {
	gorm.Model
	Title        string `gorm:"column:title;type:varchar(255);not null;" json:"title"`         // 标题
	Intro        string `gorm:"column:intro;type:varchar(255);default:'';" json:"intro"`       // 描述说明
	Template     string `gorm:"column:template;type:varchar(255);not null;" json:"template"`   // 模板
	Subdomain    string `gorm:"column:subdomain;type:varchar(255);not null;" json:"subdomain"` //子域名设置，可选
	Configs      string `gorm:"column:configs;type:varchar(255);default:'';" json:"configs"`   // 配置说明
	Name         string `gorm:"type:varchar(255);index;default:'';"`                           // 姓名
	Account      string `gorm:"type:varchar(255);index;default:'';"`                           // 登录账号
	Password     string `gorm:"type:varchar(255);default:'';"`                                 // 登录密码
	Phone        string `gorm:"type:varchar(20);default:'';"`
	Email        string `gorm:"type:varchar(255);default:'';"`
	ApplyRemarks string `gorm:"type:varchar(255);default:'';"`
	types.Std_Status
}

func init() {
	database.AppendMigrate(&MallApply{})
}

// TableName .
func (table *MallApply) TableName() string {
	return "mall_apply" //对应数据库表名
}
