// Code generated by gormcol. DO NOT EDIT. package dbmodel import ( "git.ma-al.com/goc_marek/gormcol" "time" ) const TableNamePsStatssearch = "ps_statssearch" // PsStatssearch mapped from table type PsStatssearch struct { IDStatssearch int32 `gorm:"column:id_statssearch;primaryKey;autoIncrement:true" json:"id_statssearch"` IDShop int32 `gorm:"column:id_shop;not null;default:1" json:"id_shop"` IDShopGroup int32 `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"` Keywords string `gorm:"column:keywords;not null" json:"keywords"` Results int32 `gorm:"column:results;not null" json:"results"` DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"` } // TableName PsStatssearch's table name func (*PsStatssearch) TableName() string { return TableNamePsStatssearch } var PsStatssearchCols = struct { IDStatssearch gormcol.Field IDShop gormcol.Field IDShopGroup gormcol.Field Keywords gormcol.Field Results gormcol.Field DateAdd gormcol.Field }{ IDStatssearch: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_statssearch"), IDShop: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_shop"), IDShopGroup: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "id_shop_group"), Keywords: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "keywords"), Results: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "results"), DateAdd: gormcol.Field{}.Set((&PsStatssearch{}).TableName(), "date_add"), }