// 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" "gorm.io/gorm" ) const TableNameB2bCustomer = "b2b_customers" // B2bCustomer mapped from table type B2bCustomer struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Email string `gorm:"column:email;not null;uniqueIndex:idx_customers_email,priority:1" json:"email"` Password *string `gorm:"column:password" json:"password"` FirstName *string `gorm:"column:first_name" json:"first_name"` LastName *string `gorm:"column:last_name" json:"last_name"` Role *string `gorm:"column:role;default:user" json:"role"` Provider *string `gorm:"column:provider;default:local" json:"provider"` ProviderID *string `gorm:"column:provider_id" json:"provider_id"` AvatarURL *string `gorm:"column:avatar_url" json:"avatar_url"` IsActive *bool `gorm:"column:is_active;default:1" json:"is_active"` EmailVerified *bool `gorm:"column:email_verified" json:"email_verified"` EmailVerificationToken *string `gorm:"column:email_verification_token" json:"email_verification_token"` EmailVerificationExpires *time.Time `gorm:"column:email_verification_expires" json:"email_verification_expires"` PasswordResetToken *string `gorm:"column:password_reset_token" json:"password_reset_token"` PasswordResetExpires *time.Time `gorm:"column:password_reset_expires" json:"password_reset_expires"` LastPasswordResetRequest *time.Time `gorm:"column:last_password_reset_request" json:"last_password_reset_request"` LastLoginAt *time.Time `gorm:"column:last_login_at" json:"last_login_at"` LangID *int64 `gorm:"column:lang_id;default:2" json:"lang_id"` CountryID *int64 `gorm:"column:country_id;default:2" json:"country_id"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;index:idx_customers_deleted_at,priority:1" json:"deleted_at"` } // TableName B2bCustomer's table name func (*B2bCustomer) TableName() string { return TableNameB2bCustomer } var B2bCustomerCols = struct { ID gormcol.Field Email gormcol.Field Password gormcol.Field FirstName gormcol.Field LastName gormcol.Field Role gormcol.Field Provider gormcol.Field ProviderID gormcol.Field AvatarURL gormcol.Field IsActive gormcol.Field EmailVerified gormcol.Field EmailVerificationToken gormcol.Field EmailVerificationExpires gormcol.Field PasswordResetToken gormcol.Field PasswordResetExpires gormcol.Field LastPasswordResetRequest gormcol.Field LastLoginAt gormcol.Field LangID gormcol.Field CountryID gormcol.Field CreatedAt gormcol.Field UpdatedAt gormcol.Field DeletedAt gormcol.Field }{ ID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "id"), Email: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email"), Password: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password"), FirstName: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "first_name"), LastName: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_name"), Role: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "role"), Provider: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "provider"), ProviderID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "provider_id"), AvatarURL: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "avatar_url"), IsActive: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "is_active"), EmailVerified: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verified"), EmailVerificationToken: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verification_token"), EmailVerificationExpires: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "email_verification_expires"), PasswordResetToken: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password_reset_token"), PasswordResetExpires: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "password_reset_expires"), LastPasswordResetRequest: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_password_reset_request"), LastLoginAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "last_login_at"), LangID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "lang_id"), CountryID: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "country_id"), CreatedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "created_at"), UpdatedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "updated_at"), DeletedAt: gormcol.Field{}.Set((&B2bCustomer{}).TableName(), "deleted_at"), }