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 TableNamePsZone = "ps_zone"
// PsZone mapped from table <ps_zone>
type PsZone struct {
IDZone int32 `gorm:"column:id_zone;primaryKey;autoIncrement:true" json:"id_zone"`
Name string `gorm:"column:name;not null" json:"name"`
Active bool `gorm:"column:active;not null" json:"active"`
}
// TableName PsZone's table name
func (*PsZone) TableName() string {
return TableNamePsZone
}
var PsZoneCols = struct {
IDZone gormcol.Field
Name gormcol.Field
Active gormcol.Field
}{
IDZone: gormcol.Field{Table: TableNamePsZone, Column: "id_zone"},
Name: gormcol.Field{Table: TableNamePsZone, Column: "name"},
Active: gormcol.Field{Table: TableNamePsZone, Column: "active"},
}