// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsAdminFilter = "ps_admin_filter"

// PsAdminFilter mapped from table <ps_admin_filter>
type PsAdminFilter struct {
	ID         int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Employee   int32  `gorm:"column:employee;not null;uniqueIndex:admin_filter_search_id_idx,priority:1" json:"employee"`
	Shop       int32  `gorm:"column:shop;not null;uniqueIndex:admin_filter_search_id_idx,priority:2" json:"shop"`
	Controller string `gorm:"column:controller;not null;uniqueIndex:admin_filter_search_id_idx,priority:3" json:"controller"`
	Action     string `gorm:"column:action;not null;uniqueIndex:admin_filter_search_id_idx,priority:4" json:"action"`
	Filter     string `gorm:"column:filter;not null" json:"filter"`
	FilterID   string `gorm:"column:filter_id;not null;uniqueIndex:admin_filter_search_id_idx,priority:5" json:"filter_id"`
}

// TableName PsAdminFilter's table name
func (*PsAdminFilter) TableName() string {
	return TableNamePsAdminFilter
}

var PsAdminFilterCols = struct {
	ID gormcol.Field
	Employee gormcol.Field
	Shop gormcol.Field
	Controller gormcol.Field
	Action gormcol.Field
	Filter gormcol.Field
	FilterID gormcol.Field
}{
	ID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "id"),
	Employee: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "employee"),
	Shop: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "shop"),
	Controller: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "controller"),
	Action: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "action"),
	Filter: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter"),
	FilterID: gormcol.Field{}.Set((&PsAdminFilter{}).TableName(), "filter_id"),
}
