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
-43
View File
@@ -1,43 +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"
"time"
)
const TableNamePsMaalCmsPage = "ps_maal_cms_page"
// PsMaalCmsPage mapped from table <ps_maal_cms_page>
type PsMaalCmsPage struct {
IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"`
IDCategory *int32 `gorm:"column:id_category" json:"id_category"`
DateAdd *time.Time `gorm:"column:date_add" json:"date_add"`
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
Content *string `gorm:"column:content" json:"content"`
Jumbotron *string `gorm:"column:jumbotron" json:"jumbotron"`
}
// TableName PsMaalCmsPage's table name
func (*PsMaalCmsPage) TableName() string {
return TableNamePsMaalCmsPage
}
var PsMaalCmsPageCols = struct {
IDPage gormcol.Field
IDCategory gormcol.Field
DateAdd gormcol.Field
DateUpd gormcol.Field
Content gormcol.Field
Jumbotron gormcol.Field
}{
IDPage: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "id_page"},
IDCategory: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "id_category"},
DateAdd: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "date_add"},
DateUpd: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "date_upd"},
Content: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "content"},
Jumbotron: gormcol.Field{Table: TableNamePsMaalCmsPage, Column: "jumbotron"},
}