// Code generated by gormcol. DO NOT EDIT.

package dbmodel

import (
	"git.ma-al.com/goc_marek/gormcol"
	"time"
)

const TableNamePsConnection = "ps_connections"

// PsConnection mapped from table <ps_connections>
type PsConnection struct {
	IDConnections int32     `gorm:"column:id_connections;primaryKey;autoIncrement:true" json:"id_connections"`
	IDShopGroup   int32     `gorm:"column:id_shop_group;not null;default:1" json:"id_shop_group"`
	IDShop        int32     `gorm:"column:id_shop;not null;default:1" json:"id_shop"`
	IDGuest       int32     `gorm:"column:id_guest;not null;index:id_guest,priority:1" json:"id_guest"`
	IDPage        int32     `gorm:"column:id_page;not null;index:id_page,priority:1" json:"id_page"`
	IPAddress     *int64    `gorm:"column:ip_address" json:"ip_address"`
	DateAdd       time.Time `gorm:"column:date_add;not null;index:date_add,priority:1" json:"date_add"`
	HTTPReferer   *string   `gorm:"column:http_referer" json:"http_referer"`
}

// TableName PsConnection's table name
func (*PsConnection) TableName() string {
	return TableNamePsConnection
}

var PsConnectionCols = struct {
	IDConnections gormcol.Field
	IDShopGroup gormcol.Field
	IDShop gormcol.Field
	IDGuest gormcol.Field
	IDPage gormcol.Field
	IPAddress gormcol.Field
	DateAdd gormcol.Field
	HTTPReferer gormcol.Field
}{
	IDConnections: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_connections"),
	IDShopGroup: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop_group"),
	IDShop: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_shop"),
	IDGuest: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_guest"),
	IDPage: gormcol.Field{}.Set((&PsConnection{}).TableName(), "id_page"),
	IPAddress: gormcol.Field{}.Set((&PsConnection{}).TableName(), "ip_address"),
	DateAdd: gormcol.Field{}.Set((&PsConnection{}).TableName(), "date_add"),
	HTTPReferer: gormcol.Field{}.Set((&PsConnection{}).TableName(), "http_referer"),
}
