// 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"
)

// 系统数据表
type InitialDatas struct {
	types.Std_IICUDS
	DataType string `gorm:"column:data_type;type:varchar(255);index;" json:"data_type"` // 数据类型
	Key      string `gorm:"column:key;type:varchar(255);uniqueIndex;" json:"key"`
	Title    string `gorm:"column:title;type:varchar(255);default:'';" json:"title"`
	Remark   string `gorm:"column:remark;type:varchar(255);default:'';" json:"remark"`
	Icon     string `gorm:"column:icon;default:'';" json:"icon"`
}

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

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