// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsLayeredFilter = "ps_layered_filter"

// PsLayeredFilter mapped from table <ps_layered_filter>
type PsLayeredFilter struct {
	IDLayeredFilter int32     `gorm:"column:id_layered_filter;primaryKey;autoIncrement:true" json:"id_layered_filter"`
	Name            string    `gorm:"column:name;not null" json:"name"`
	Filters         *string   `gorm:"column:filters" json:"filters"`
	NCategories     int32     `gorm:"column:n_categories;not null" json:"n_categories"`
	DateAdd         time.Time `gorm:"column:date_add;not null" json:"date_add"`
}

// TableName PsLayeredFilter's table name
func (*PsLayeredFilter) TableName() string {
	return TableNamePsLayeredFilter
}

var PsLayeredFilterCols = struct {
	IDLayeredFilter gormcol.Field
	Name gormcol.Field
	Filters gormcol.Field
	NCategories gormcol.Field
	DateAdd gormcol.Field
}{
	IDLayeredFilter: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "id_layered_filter"),
	Name: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "name"),
	Filters: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "filters"),
	NCategories: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "n_categories"),
	DateAdd: gormcol.Field{}.Set((&PsLayeredFilter{}).TableName(), "date_add"),
}
