// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import "git.ma-al.com/goc_marek/gormcol"

const TableNamePsModulePreference = "ps_module_preference"

// PsModulePreference mapped from table <ps_module_preference>
type PsModulePreference struct {
	IDModulePreference int32  `gorm:"column:id_module_preference;primaryKey;autoIncrement:true" json:"id_module_preference"`
	IDEmployee         int32  `gorm:"column:id_employee;not null;uniqueIndex:employee_module,priority:1" json:"id_employee"`
	Module             string `gorm:"column:module;not null;uniqueIndex:employee_module,priority:2" json:"module"`
	Interest           *bool  `gorm:"column:interest" json:"interest"`
	Favorite           *bool  `gorm:"column:favorite" json:"favorite"`
}

// TableName PsModulePreference's table name
func (*PsModulePreference) TableName() string {
	return TableNamePsModulePreference
}

var PsModulePreferenceCols = struct {
	IDModulePreference gormcol.Field
	IDEmployee gormcol.Field
	Module gormcol.Field
	Interest gormcol.Field
	Favorite gormcol.Field
}{
	IDModulePreference: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "id_module_preference"),
	IDEmployee: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "id_employee"),
	Module: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "module"),
	Interest: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "interest"),
	Favorite: gormcol.Field{}.Set((&PsModulePreference{}).TableName(), "favorite"),
}
