// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsImageType = "ps_image_type"

// PsImageType mapped from table <ps_image_type>
type PsImageType struct {
	IDImageType   int32  `gorm:"column:id_image_type;primaryKey;autoIncrement:true" json:"id_image_type"`
	Name          string `gorm:"column:name;not null;index:image_type_name,priority:1" json:"name"`
	Width         int32  `gorm:"column:width;not null" json:"width"`
	Height        int32  `gorm:"column:height;not null" json:"height"`
	Products      bool   `gorm:"column:products;not null;default:1" json:"products"`
	Categories    bool   `gorm:"column:categories;not null;default:1" json:"categories"`
	Manufacturers bool   `gorm:"column:manufacturers;not null;default:1" json:"manufacturers"`
	Suppliers     bool   `gorm:"column:suppliers;not null;default:1" json:"suppliers"`
	Stores        bool   `gorm:"column:stores;not null;default:1" json:"stores"`
}

// TableName PsImageType's table name
func (*PsImageType) TableName() string {
	return TableNamePsImageType
}

var PsImageTypeCols = struct {
	IDImageType gormcol.Field
	Name gormcol.Field
	Width gormcol.Field
	Height gormcol.Field
	Products gormcol.Field
	Categories gormcol.Field
	Manufacturers gormcol.Field
	Suppliers gormcol.Field
	Stores gormcol.Field
}{
	IDImageType: gormcol.Field{}.Set((&PsImageType{}).TableName(), "id_image_type"),
	Name: gormcol.Field{}.Set((&PsImageType{}).TableName(), "name"),
	Width: gormcol.Field{}.Set((&PsImageType{}).TableName(), "width"),
	Height: gormcol.Field{}.Set((&PsImageType{}).TableName(), "height"),
	Products: gormcol.Field{}.Set((&PsImageType{}).TableName(), "products"),
	Categories: gormcol.Field{}.Set((&PsImageType{}).TableName(), "categories"),
	Manufacturers: gormcol.Field{}.Set((&PsImageType{}).TableName(), "manufacturers"),
	Suppliers: gormcol.Field{}.Set((&PsImageType{}).TableName(), "suppliers"),
	Stores: gormcol.Field{}.Set((&PsImageType{}).TableName(), "stores"),
}
