// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsCm = "ps_cms"

// PsCm mapped from table <ps_cms>
type PsCm struct {
	IDCms         int32 `gorm:"column:id_cms;primaryKey;autoIncrement:true" json:"id_cms"`
	IDCmsCategory int32 `gorm:"column:id_cms_category;not null" json:"id_cms_category"`
	Position      int32 `gorm:"column:position;not null" json:"position"`
	Active        bool  `gorm:"column:active;not null" json:"active"`
	Indexation    bool  `gorm:"column:indexation;not null;default:1" json:"indexation"`
}

// TableName PsCm's table name
func (*PsCm) TableName() string {
	return TableNamePsCm
}

var PsCmCols = struct {
	IDCms gormcol.Field
	IDCmsCategory gormcol.Field
	Position gormcol.Field
	Active gormcol.Field
	Indexation gormcol.Field
}{
	IDCms: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms"),
	IDCmsCategory: gormcol.Field{}.Set((&PsCm{}).TableName(), "id_cms_category"),
	Position: gormcol.Field{}.Set((&PsCm{}).TableName(), "position"),
	Active: gormcol.Field{}.Set((&PsCm{}).TableName(), "active"),
	Indexation: gormcol.Field{}.Set((&PsCm{}).TableName(), "indexation"),
}
