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
+46
View File
@@ -0,0 +1,46 @@
// 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 TableNamePsPsgdprConsent = "ps_psgdpr_consent"
// PsPsgdprConsent mapped from table <ps_psgdpr_consent>
type PsPsgdprConsent struct {
IDGdprConsent int32 `gorm:"column:id_gdpr_consent;primaryKey;autoIncrement:true" json:"id_gdpr_consent"`
IDModule int32 `gorm:"column:id_module;primaryKey" json:"id_module"`
Active int32 `gorm:"column:active;not null" json:"active"`
Error *int32 `gorm:"column:error" json:"error"`
ErrorMessage *string `gorm:"column:error_message" json:"error_message"`
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 PsPsgdprConsent's table name
func (*PsPsgdprConsent) TableName() string {
return TableNamePsPsgdprConsent
}
var PsPsgdprConsentCols = struct {
IDGdprConsent gormcol.Field
IDModule gormcol.Field
Active gormcol.Field
Error gormcol.Field
ErrorMessage gormcol.Field
DateAdd gormcol.Field
DateUpd gormcol.Field
}{
IDGdprConsent: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "id_gdpr_consent"),
IDModule: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "id_module"),
Active: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "active"),
Error: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "error"),
ErrorMessage: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "error_message"),
DateAdd: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "date_add"),
DateUpd: gormcol.Field{}.Set((&PsPsgdprConsent{}).TableName(), "date_upd"),
}