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
+43
View File
@@ -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 TableNamePsTaxRulesGroup = "ps_tax_rules_group"
// PsTaxRulesGroup mapped from table <ps_tax_rules_group>
type PsTaxRulesGroup struct {
IDTaxRulesGroup int32 `gorm:"column:id_tax_rules_group;primaryKey;autoIncrement:true" json:"id_tax_rules_group"`
Name string `gorm:"column:name;not null" json:"name"`
Active int32 `gorm:"column:active;not null" json:"active"`
Deleted bool `gorm:"column:deleted;not null" json:"deleted"`
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}
// TableName PsTaxRulesGroup's table name
func (*PsTaxRulesGroup) TableName() string {
return TableNamePsTaxRulesGroup
}
var PsTaxRulesGroupCols = struct {
IDTaxRulesGroup gormcol.Field
Name gormcol.Field
Active gormcol.Field
Deleted gormcol.Field
DateAdd gormcol.Field
DateUpd gormcol.Field
}{
IDTaxRulesGroup: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "id_tax_rules_group"),
Name: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "name"),
Active: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "active"),
Deleted: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "deleted"),
DateAdd: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "date_add"),
DateUpd: gormcol.Field{}.Set((&PsTaxRulesGroup{}).TableName(), "date_upd"),
}