// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsEmployee = "ps_employee"

// PsEmployee mapped from table <ps_employee>
type PsEmployee struct {
	IDEmployee            int32      `gorm:"column:id_employee;primaryKey;autoIncrement:true;index:id_employee_passwd,priority:1" json:"id_employee"`
	IDProfile             int32      `gorm:"column:id_profile;not null;index:id_profile,priority:1" json:"id_profile"`
	IDLang                int32      `gorm:"column:id_lang;not null" json:"id_lang"`
	Lastname              string     `gorm:"column:lastname;not null" json:"lastname"`
	Firstname             string     `gorm:"column:firstname;not null" json:"firstname"`
	Email                 string     `gorm:"column:email;not null;index:employee_login,priority:1" json:"email"`
	Passwd                string     `gorm:"column:passwd;not null;index:employee_login,priority:2;index:id_employee_passwd,priority:2" json:"passwd"`
	LastPasswdGen         time.Time  `gorm:"column:last_passwd_gen;not null;default:current_timestamp()" json:"last_passwd_gen"`
	StatsDateFrom         *time.Time `gorm:"column:stats_date_from" json:"stats_date_from"`
	StatsDateTo           *time.Time `gorm:"column:stats_date_to" json:"stats_date_to"`
	StatsCompareFrom      *time.Time `gorm:"column:stats_compare_from" json:"stats_compare_from"`
	StatsCompareTo        *time.Time `gorm:"column:stats_compare_to" json:"stats_compare_to"`
	StatsCompareOption    int32      `gorm:"column:stats_compare_option;not null;default:1" json:"stats_compare_option"`
	PreselectDateRange    *string    `gorm:"column:preselect_date_range" json:"preselect_date_range"`
	BoColor               *string    `gorm:"column:bo_color" json:"bo_color"`
	BoTheme               *string    `gorm:"column:bo_theme" json:"bo_theme"`
	BoCSS                 *string    `gorm:"column:bo_css" json:"bo_css"`
	DefaultTab            int32      `gorm:"column:default_tab;not null" json:"default_tab"`
	BoWidth               int32      `gorm:"column:bo_width;not null" json:"bo_width"`
	BoMenu                bool       `gorm:"column:bo_menu;not null;default:1" json:"bo_menu"`
	Active                bool       `gorm:"column:active;not null" json:"active"`
	Optin                 bool       `gorm:"column:optin;not null;default:1" json:"optin"`
	IDLastOrder           int32      `gorm:"column:id_last_order;not null" json:"id_last_order"`
	IDLastCustomerMessage int32      `gorm:"column:id_last_customer_message;not null" json:"id_last_customer_message"`
	IDLastCustomer        int32      `gorm:"column:id_last_customer;not null" json:"id_last_customer"`
	LastConnectionDate    *time.Time `gorm:"column:last_connection_date" json:"last_connection_date"`
	ResetPasswordToken    *string    `gorm:"column:reset_password_token" json:"reset_password_token"`
	ResetPasswordValidity *time.Time `gorm:"column:reset_password_validity" json:"reset_password_validity"`
}

// TableName PsEmployee's table name
func (*PsEmployee) TableName() string {
	return TableNamePsEmployee
}

var PsEmployeeCols = struct {
	IDEmployee gormcol.Field
	IDProfile gormcol.Field
	IDLang gormcol.Field
	Lastname gormcol.Field
	Firstname gormcol.Field
	Email gormcol.Field
	Passwd gormcol.Field
	LastPasswdGen gormcol.Field
	StatsDateFrom gormcol.Field
	StatsDateTo gormcol.Field
	StatsCompareFrom gormcol.Field
	StatsCompareTo gormcol.Field
	StatsCompareOption gormcol.Field
	PreselectDateRange gormcol.Field
	BoColor gormcol.Field
	BoTheme gormcol.Field
	BoCSS gormcol.Field
	DefaultTab gormcol.Field
	BoWidth gormcol.Field
	BoMenu gormcol.Field
	Active gormcol.Field
	Optin gormcol.Field
	IDLastOrder gormcol.Field
	IDLastCustomerMessage gormcol.Field
	IDLastCustomer gormcol.Field
	LastConnectionDate gormcol.Field
	ResetPasswordToken gormcol.Field
	ResetPasswordValidity gormcol.Field
}{
	IDEmployee: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_employee"),
	IDProfile: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_profile"),
	IDLang: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_lang"),
	Lastname: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "lastname"),
	Firstname: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "firstname"),
	Email: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "email"),
	Passwd: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "passwd"),
	LastPasswdGen: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "last_passwd_gen"),
	StatsDateFrom: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_date_from"),
	StatsDateTo: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_date_to"),
	StatsCompareFrom: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_from"),
	StatsCompareTo: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_to"),
	StatsCompareOption: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "stats_compare_option"),
	PreselectDateRange: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "preselect_date_range"),
	BoColor: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_color"),
	BoTheme: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_theme"),
	BoCSS: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_css"),
	DefaultTab: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "default_tab"),
	BoWidth: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_width"),
	BoMenu: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "bo_menu"),
	Active: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "active"),
	Optin: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "optin"),
	IDLastOrder: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_order"),
	IDLastCustomerMessage: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_customer_message"),
	IDLastCustomer: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "id_last_customer"),
	LastConnectionDate: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "last_connection_date"),
	ResetPasswordToken: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "reset_password_token"),
	ResetPasswordValidity: gormcol.Field{}.Set((&PsEmployee{}).TableName(), "reset_password_validity"),
}
