Files
b2b/app/model/prestadb/ps_emailsubscription.go

30 lines
1.3 KiB
Go

// 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 prestadb
import (
"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
}