add models generation and josn print
This commit is contained in:
20
app/model/prestadb/ps_search_word.go
Normal file
20
app/model/prestadb/ps_search_word.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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 prestadb
|
||||
|
||||
const TableNamePsSearchWord = "ps_search_word"
|
||||
|
||||
// PsSearchWord mapped from table <ps_search_word>
|
||||
type PsSearchWord struct {
|
||||
IDWord int32 `gorm:"column:id_word;primaryKey;autoIncrement:true" json:"id_word"`
|
||||
IDShop int32 `gorm:"column:id_shop;not null;uniqueIndex:id_lang,priority:2;default:1" json:"id_shop"`
|
||||
IDLang int32 `gorm:"column:id_lang;not null;uniqueIndex:id_lang,priority:1" json:"id_lang"`
|
||||
Word string `gorm:"column:word;not null;uniqueIndex:id_lang,priority:3" json:"word"`
|
||||
}
|
||||
|
||||
// TableName PsSearchWord's table name
|
||||
func (*PsSearchWord) TableName() string {
|
||||
return TableNamePsSearchWord
|
||||
}
|
||||
Reference in New Issue
Block a user