// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsModuleHistory = "ps_module_history"

// PsModuleHistory mapped from table <ps_module_history>
type PsModuleHistory struct {
	ID         int32     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	IDEmployee int32     `gorm:"column:id_employee;not null" json:"id_employee"`
	IDModule   int32     `gorm:"column:id_module;not null" json:"id_module"`
	DateAdd    time.Time `gorm:"column:date_add;not null" json:"date_add"`
	DateUpd    time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
}

// TableName PsModuleHistory's table name
func (*PsModuleHistory) TableName() string {
	return TableNamePsModuleHistory
}

var PsModuleHistoryCols = struct {
	ID gormcol.Field
	IDEmployee gormcol.Field
	IDModule gormcol.Field
	DateAdd gormcol.Field
	DateUpd gormcol.Field
}{
	ID: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id"),
	IDEmployee: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id_employee"),
	IDModule: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "id_module"),
	DateAdd: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "date_add"),
	DateUpd: gormcol.Field{}.Set((&PsModuleHistory{}).TableName(), "date_upd"),
}
