bindbox-game/internal/repository/mysql/model/system_configs.gen.go

32 lines
1.2 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSystemConfigs = "system_configs"
// SystemConfigs 系统配置KV
type SystemConfigs struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP(3)" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
ConfigKey string `gorm:"column:config_key;not null" json:"config_key"`
ConfigGroup string `gorm:"column:config_group;default:default" json:"config_group"`
IsEncrypted bool `gorm:"column:is_encrypted" json:"is_encrypted"`
ConfigValue string `gorm:"column:config_value;not null" json:"config_value"`
Remark string `gorm:"column:remark" json:"remark"`
}
// TableName SystemConfigs's table name
func (*SystemConfigs) TableName() string {
return TableNameSystemConfigs
}