Remove Table field from Cols, use GORM conventions

This commit is contained in:
2026-03-29 15:35:28 +02:00
parent a53e24c5b8
commit 97e6f82737
318 changed files with 39 additions and 13096 deletions
-34
View File
@@ -1,34 +0,0 @@
// 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 dbmodel
import "git.ma-al.com/goc_marek/gormcol"
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
}
var PsSearchWordCols = struct {
IDWord gormcol.Field
IDShop gormcol.Field
IDLang gormcol.Field
Word gormcol.Field
}{
IDWord: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_word"},
IDShop: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_shop"},
IDLang: gormcol.Field{Table: TableNamePsSearchWord, Column: "id_lang"},
Word: gormcol.Field{Table: TableNamePsSearchWord, Column: "word"},
}