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
-31
View File
@@ -1,31 +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 TableNamePsLinksmenutop = "ps_linksmenutop"
// PsLinksmenutop mapped from table <ps_linksmenutop>
type PsLinksmenutop struct {
IDLinksmenutop int32 `gorm:"column:id_linksmenutop;primaryKey;autoIncrement:true" json:"id_linksmenutop"`
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1" json:"id_shop"`
NewWindow bool `gorm:"column:new_window;not null" json:"new_window"`
}
// TableName PsLinksmenutop's table name
func (*PsLinksmenutop) TableName() string {
return TableNamePsLinksmenutop
}
var PsLinksmenutopCols = struct {
IDLinksmenutop gormcol.Field
IDShop gormcol.Field
NewWindow gormcol.Field
}{
IDLinksmenutop: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "id_linksmenutop"},
IDShop: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "id_shop"},
NewWindow: gormcol.Field{Table: TableNamePsLinksmenutop, Column: "new_window"},
}