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
-40
View File
@@ -1,40 +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 TableNamePsSupplierLang = "ps_supplier_lang"
// PsSupplierLang mapped from table <ps_supplier_lang>
type PsSupplierLang struct {
IDSupplier int32 `gorm:"column:id_supplier;primaryKey" json:"id_supplier"`
IDLang int32 `gorm:"column:id_lang;primaryKey" json:"id_lang"`
Description *string `gorm:"column:description" json:"description"`
MetaTitle *string `gorm:"column:meta_title" json:"meta_title"`
MetaKeywords *string `gorm:"column:meta_keywords" json:"meta_keywords"`
MetaDescription *string `gorm:"column:meta_description" json:"meta_description"`
}
// TableName PsSupplierLang's table name
func (*PsSupplierLang) TableName() string {
return TableNamePsSupplierLang
}
var PsSupplierLangCols = struct {
IDSupplier gormcol.Field
IDLang gormcol.Field
Description gormcol.Field
MetaTitle gormcol.Field
MetaKeywords gormcol.Field
MetaDescription gormcol.Field
}{
IDSupplier: gormcol.Field{Table: TableNamePsSupplierLang, Column: "id_supplier"},
IDLang: gormcol.Field{Table: TableNamePsSupplierLang, Column: "id_lang"},
Description: gormcol.Field{Table: TableNamePsSupplierLang, Column: "description"},
MetaTitle: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_title"},
MetaKeywords: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_keywords"},
MetaDescription: gormcol.Field{Table: TableNamePsSupplierLang, Column: "meta_description"},
}