// 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 TableNamePsCustomer = "ps_customer" // PsCustomer mapped from table type PsCustomer struct { IDCustomer int32 `gorm:"column:id_customer;primaryKey;autoIncrement:true;index:id_customer_passwd,priority:1" json:"id_customer"` IDShopGroup int32 `gorm:"column:id_shop_group;not null;index:id_shop_group,priority:1;default:1" json:"id_shop_group"` IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"` IDGender int32 `gorm:"column:id_gender;not null;index:id_gender,priority:1" json:"id_gender"` IDDefaultGroup int32 `gorm:"column:id_default_group;not null;default:1" json:"id_default_group"` IDLang *int32 `gorm:"column:id_lang" json:"id_lang"` IDRisk int32 `gorm:"column:id_risk;not null;default:1" json:"id_risk"` Company *string `gorm:"column:company" json:"company"` Siret *string `gorm:"column:siret" json:"siret"` Ape *string `gorm:"column:ape" json:"ape"` Firstname string `gorm:"column:firstname;not null" json:"firstname"` Lastname string `gorm:"column:lastname;not null" json:"lastname"` Email string `gorm:"column:email;not null;index:customer_email,priority:1;index:customer_login,priority:1" json:"email"` Passwd string `gorm:"column:passwd;not null;index:customer_login,priority:2;index:id_customer_passwd,priority:2" json:"passwd"` LastPasswdGen time.Time `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"` Birthday *time.Time `gorm:"column:birthday" json:"birthday"` Newsletter bool `gorm:"column:newsletter;not null" json:"newsletter"` IPRegistrationNewsletter *string `gorm:"column:ip_registration_newsletter" json:"ip_registration_newsletter"` NewsletterDateAdd *time.Time `gorm:"column:newsletter_date_add" json:"newsletter_date_add"` Optin bool `gorm:"column:optin;not null" json:"optin"` Website *string `gorm:"column:website" json:"website"` OutstandingAllowAmount float64 `gorm:"column:outstanding_allow_amount;not null;default:0.000000" json:"outstanding_allow_amount"` ShowPublicPrices bool `gorm:"column:show_public_prices;not null" json:"show_public_prices"` MaxPaymentDays int32 `gorm:"column:max_payment_days;not null;default:60" json:"max_payment_days"` SecureKey string `gorm:"column:secure_key;not null;default:-1" json:"secure_key"` Note *string `gorm:"column:note" json:"note"` Active bool `gorm:"column:active;not null" json:"active"` IsGuest bool `gorm:"column:is_guest;not null" json:"is_guest"` Deleted bool `gorm:"column:deleted;not null" json:"deleted"` DateAdd time.Time `gorm:"column:date_add;not null;index:id_shop,priority:2" json:"date_add"` DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"` ResetPasswordToken *string `gorm:"column:reset_password_token" json:"reset_password_token"` ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"` } // TableName PsCustomer's table name func (*PsCustomer) TableName() string { return TableNamePsCustomer }