Files
gormcol/app/model/dbmodel/ps_connections.go

50 lines
2.0 KiB
Go

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. 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{Table: TableNamePsConnection, Column: "id_connections"},
IDShopGroup: gormcol.Field{Table: TableNamePsConnection, Column: "id_shop_group"},
IDShop: gormcol.Field{Table: TableNamePsConnection, Column: "id_shop"},
IDGuest: gormcol.Field{Table: TableNamePsConnection, Column: "id_guest"},
IDPage: gormcol.Field{Table: TableNamePsConnection, Column: "id_page"},
IPAddress: gormcol.Field{Table: TableNamePsConnection, Column: "ip_address"},
DateAdd: gormcol.Field{Table: TableNamePsConnection, Column: "date_add"},
HTTPReferer: gormcol.Field{Table: TableNamePsConnection, Column: "http_referer"},
}