// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsAlias = "ps_alias"

// PsAlias mapped from table <ps_alias>
type PsAlias struct {
	IDAlias int32  `gorm:"column:id_alias;primaryKey;autoIncrement:true" json:"id_alias"`
	Alias   string `gorm:"column:alias;not null;uniqueIndex:alias,priority:1" json:"alias"`
	Search  string `gorm:"column:search;not null" json:"search"`
	Active  bool   `gorm:"column:active;not null;default:1" json:"active"`
}

// TableName PsAlias's table name
func (*PsAlias) TableName() string {
	return TableNamePsAlias
}

var PsAliasCols = struct {
	IDAlias gormcol.Field
	Alias gormcol.Field
	Search gormcol.Field
	Active gormcol.Field
}{
	IDAlias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "id_alias"),
	Alias: gormcol.Field{}.Set((&PsAlias{}).TableName(), "alias"),
	Search: gormcol.Field{}.Set((&PsAlias{}).TableName(), "search"),
	Active: gormcol.Field{}.Set((&PsAlias{}).TableName(), "active"),
}
