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
@@ -0,0 +1,43 @@
// 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 TableNamePsPocztapolskaenPostOffice = "ps_pocztapolskaen_post_office"
// PsPocztapolskaenPostOffice mapped from table <ps_pocztapolskaen_post_office>
type PsPocztapolskaenPostOffice struct {
IDPostOffice int32 `gorm:"column:id_post_office;primaryKey;autoIncrement:true" json:"id_post_office"`
IDEn *int32 `gorm:"column:id_en" json:"id_en"`
Name *string `gorm:"column:name" json:"name"`
Description *string `gorm:"column:description" json:"description"`
DateAdd *time.Time `gorm:"column:date_add" json:"date_add"`
DateUpd *time.Time `gorm:"column:date_upd" json:"date_upd"`
}
// TableName PsPocztapolskaenPostOffice's table name
func (*PsPocztapolskaenPostOffice) TableName() string {
return TableNamePsPocztapolskaenPostOffice
}
var PsPocztapolskaenPostOfficeCols = struct {
IDPostOffice gormcol.Field
IDEn gormcol.Field
Name gormcol.Field
Description gormcol.Field
DateAdd gormcol.Field
DateUpd gormcol.Field
}{
IDPostOffice: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "id_post_office"),
IDEn: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "id_en"),
Name: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "name"),
Description: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "description"),
DateAdd: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "date_add"),
DateUpd: gormcol.Field{}.Set((&PsPocztapolskaenPostOffice{}).TableName(), "date_upd"),
}