// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsEmailsubscription = "ps_emailsubscription"

// PsEmailsubscription mapped from table <ps_emailsubscription>
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{}.Set((&PsEmailsubscription{}).TableName(), "id"),
	IDShop: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_shop"),
	IDShopGroup: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_shop_group"),
	Email: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "email"),
	NewsletterDateAdd: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "newsletter_date_add"),
	IPRegistrationNewsletter: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "ip_registration_newsletter"),
	HTTPReferer: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "http_referer"),
	Active: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "active"),
	IDLang: gormcol.Field{}.Set((&PsEmailsubscription{}).TableName(), "id_lang"),
}
