Files
gormcol/app/model/dbmodel/ps_employee.go

110 lines
6.1 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 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{Table: TableNamePsEmployee, Column: "id_employee"},
IDProfile: gormcol.Field{Table: TableNamePsEmployee, Column: "id_profile"},
IDLang: gormcol.Field{Table: TableNamePsEmployee, Column: "id_lang"},
Lastname: gormcol.Field{Table: TableNamePsEmployee, Column: "lastname"},
Firstname: gormcol.Field{Table: TableNamePsEmployee, Column: "firstname"},
Email: gormcol.Field{Table: TableNamePsEmployee, Column: "email"},
Passwd: gormcol.Field{Table: TableNamePsEmployee, Column: "passwd"},
LastPasswdGen: gormcol.Field{Table: TableNamePsEmployee, Column: "last_passwd_gen"},
StatsDateFrom: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_date_from"},
StatsDateTo: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_date_to"},
StatsCompareFrom: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_from"},
StatsCompareTo: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_to"},
StatsCompareOption: gormcol.Field{Table: TableNamePsEmployee, Column: "stats_compare_option"},
PreselectDateRange: gormcol.Field{Table: TableNamePsEmployee, Column: "preselect_date_range"},
BoColor: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_color"},
BoTheme: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_theme"},
BoCSS: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_css"},
DefaultTab: gormcol.Field{Table: TableNamePsEmployee, Column: "default_tab"},
BoWidth: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_width"},
BoMenu: gormcol.Field{Table: TableNamePsEmployee, Column: "bo_menu"},
Active: gormcol.Field{Table: TableNamePsEmployee, Column: "active"},
Optin: gormcol.Field{Table: TableNamePsEmployee, Column: "optin"},
IDLastOrder: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_order"},
IDLastCustomerMessage: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_customer_message"},
IDLastCustomer: gormcol.Field{Table: TableNamePsEmployee, Column: "id_last_customer"},
LastConnectionDate: gormcol.Field{Table: TableNamePsEmployee, Column: "last_connection_date"},
ResetPasswordToken: gormcol.Field{Table: TableNamePsEmployee, Column: "reset_password_token"},
ResetPasswordValidity: gormcol.Field{Table: TableNamePsEmployee, Column: "reset_password_validity"},
}