// Code generated by gormcol. DO NOT EDIT.

package dbmodel

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

const TableNamePsConnectionsSource = "ps_connections_source"

// PsConnectionsSource mapped from table <ps_connections_source>
type PsConnectionsSource struct {
	IDConnectionsSource int32     `gorm:"column:id_connections_source;primaryKey;autoIncrement:true" json:"id_connections_source"`
	IDConnections       int32     `gorm:"column:id_connections;not null;index:connections,priority:1" json:"id_connections"`
	HTTPReferer         *string   `gorm:"column:http_referer;index:http_referer,priority:1" json:"http_referer"`
	RequestURI          *string   `gorm:"column:request_uri;index:request_uri,priority:1" json:"request_uri"`
	Keywords            *string   `gorm:"column:keywords" json:"keywords"`
	DateAdd             time.Time `gorm:"column:date_add;not null;index:orderby,priority:1" json:"date_add"`
}

// TableName PsConnectionsSource's table name
func (*PsConnectionsSource) TableName() string {
	return TableNamePsConnectionsSource
}

var PsConnectionsSourceCols = struct {
	IDConnectionsSource gormcol.Field
	IDConnections gormcol.Field
	HTTPReferer gormcol.Field
	RequestURI gormcol.Field
	Keywords gormcol.Field
	DateAdd gormcol.Field
}{
	IDConnectionsSource: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections_source"),
	IDConnections: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "id_connections"),
	HTTPReferer: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "http_referer"),
	RequestURI: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "request_uri"),
	Keywords: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "keywords"),
	DateAdd: gormcol.Field{}.Set((&PsConnectionsSource{}).TableName(), "date_add"),
}
