Replace gorm.io/gen header with gormcol

This commit is contained in:
2026-03-29 18:51:45 +02:00
parent 987e55de10
commit e30aa50752
326 changed files with 13511 additions and 3 deletions
+31
View File
@@ -0,0 +1,31 @@
// 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 TableNamePsPage = "ps_page"
// PsPage mapped from table <ps_page>
type PsPage struct {
IDPage int32 `gorm:"column:id_page;primaryKey;autoIncrement:true" json:"id_page"`
IDPageType int32 `gorm:"column:id_page_type;not null;index:id_page_type,priority:1" json:"id_page_type"`
IDObject *int32 `gorm:"column:id_object;index:id_object,priority:1" json:"id_object"`
}
// TableName PsPage's table name
func (*PsPage) TableName() string {
return TableNamePsPage
}
var PsPageCols = struct {
IDPage gormcol.Field
IDPageType gormcol.Field
IDObject gormcol.Field
}{
IDPage: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_page"),
IDPageType: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_page_type"),
IDObject: gormcol.Field{}.Set((&PsPage{}).TableName(), "id_object"),
}