You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
Go
23 lines
1.0 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
|
|
|
|
const TableNameLang = "lang"
|
|
|
|
// Lang mapped from table <lang>
|
|
type Lang struct {
|
|
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"`
|
|
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
|
|
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
|
|
Mark string `gorm:"column:mark;type:varchar(4);not null;uniqueIndex:uniq_lang_mark_mark,priority:2;index:idx_mark,priority:1;comment:语种标识" json:"mark"`
|
|
LangMark string `gorm:"column:lang_mark;type:varchar(64);not null;uniqueIndex:uniq_lang_mark_mark,priority:1;comment:语言唯一标识" json:"lang_mark"`
|
|
LangText string `gorm:"column:lang_text;type:varchar(255);not null;comment:对应语种的翻译文案" json:"lang_text"`
|
|
}
|
|
|
|
// TableName Lang's table name
|
|
func (*Lang) TableName() string {
|
|
return TableNameLang
|
|
}
|