add models generation and josn print
This commit is contained in:
28
app/model/prestadb/ps_connections.go
Normal file
28
app/model/prestadb/ps_connections.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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 prestadb
|
||||
|
||||
import (
|
||||
"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
|
||||
}
|
||||
Reference in New Issue
Block a user