package model

import (
	"blazing/cool"
)

const TableNameBaseSysInit = "base_sys_init"

// BaseSysInit mapped from table <base_sys_init>
type BaseSysInit struct {
	Id    uint   `gorm:"primaryKey" json:"id"`
	Table string `gorm:"index;not null" json:"table"`
	Group string `gorm:"index;not null" json:"group"`
}

// TableName BaseSysInit's table namer
func (*BaseSysInit) TableName() string {
	return TableNameBaseSysInit
}

// TableGroup BaseSysInit's table group
func (*BaseSysInit) GroupName() string {
	return "default"
}

// GetStruct BaseSysInit's struct
func (m *BaseSysInit) GetStruct() interface{} {
	return m
}

// init 创建表
func init() {
	cool.CreateTable(&BaseSysInit{})
}
