62 lines
2.8 KiB
Go
62 lines
2.8 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 TableNamePsCustomerMessage = "ps_customer_message"
|
|
|
|
// PsCustomerMessage mapped from table <ps_customer_message>
|
|
type PsCustomerMessage struct {
|
|
IDCustomerMessage int32 `gorm:"column:id_customer_message;primaryKey;autoIncrement:true" json:"id_customer_message"`
|
|
IDCustomerThread *int32 `gorm:"column:id_customer_thread;index:id_customer_thread,priority:1" json:"id_customer_thread"`
|
|
IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"`
|
|
Message string `gorm:"column:message;not null" json:"message"`
|
|
FileName *string `gorm:"column:file_name" json:"file_name"`
|
|
IPAddress *string `gorm:"column:ip_address" json:"ip_address"`
|
|
UserAgent *string `gorm:"column:user_agent" json:"user_agent"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
|
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
|
Private int32 `gorm:"column:private;not null" json:"private"`
|
|
Read bool `gorm:"column:read;not null" json:"read"`
|
|
Product *string `gorm:"column:product" json:"product"`
|
|
}
|
|
|
|
// TableName PsCustomerMessage's table name
|
|
func (*PsCustomerMessage) TableName() string {
|
|
return TableNamePsCustomerMessage
|
|
}
|
|
|
|
var PsCustomerMessageCols = struct {
|
|
IDCustomerMessage gormcol.Field
|
|
IDCustomerThread gormcol.Field
|
|
IDEmployee gormcol.Field
|
|
Message gormcol.Field
|
|
FileName gormcol.Field
|
|
IPAddress gormcol.Field
|
|
UserAgent gormcol.Field
|
|
DateAdd gormcol.Field
|
|
DateUpd gormcol.Field
|
|
Private gormcol.Field
|
|
Read gormcol.Field
|
|
Product gormcol.Field
|
|
}{
|
|
IDCustomerMessage: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_customer_message"},
|
|
IDCustomerThread: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_customer_thread"},
|
|
IDEmployee: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "id_employee"},
|
|
Message: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "message"},
|
|
FileName: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "file_name"},
|
|
IPAddress: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "ip_address"},
|
|
UserAgent: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "user_agent"},
|
|
DateAdd: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "date_add"},
|
|
DateUpd: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "date_upd"},
|
|
Private: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "private"},
|
|
Read: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "read"},
|
|
Product: gormcol.Field{Table: TableNamePsCustomerMessage, Column: "product"},
|
|
}
|