// 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 TableNamePsEmailsubscription = "ps_emailsubscription" // PsEmailsubscription mapped from table type PsEmailsubscription struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` Email string `gorm:"column:email;not null" json:"email"` NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"` IPRegistrationNewsletter string `gorm:"column:ip_registration_newsletter;not null" json:"ip_registration_newsletter"` HTTPReferer *string `gorm:"column:http_referer" json:"http_referer"` Active bool `gorm:"column:active;not null" json:"active"` IDLang int32 `gorm:"column:id_lang;not null" json:"id_lang"` } // TableName PsEmailsubscription's table name func (*PsEmailsubscription) TableName() string { return TableNamePsEmailsubscription } var PsEmailsubscriptionCols = struct { ID gormcol.Field IDShop gormcol.Field IDShopGroup gormcol.Field Email gormcol.Field NewsletterDateAdd gormcol.Field IPRegistrationNewsletter gormcol.Field HTTPReferer gormcol.Field Active gormcol.Field IDLang gormcol.Field }{ ID: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id"}, IDShop: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_shop"}, IDShopGroup: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_shop_group"}, Email: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "email"}, NewsletterDateAdd: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "newsletter_date_add"}, IPRegistrationNewsletter: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "ip_registration_newsletter"}, HTTPReferer: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "http_referer"}, Active: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "active"}, IDLang: gormcol.Field{Table: TableNamePsEmailsubscription, Column: "id_lang"}, }