Files
b2b/app/model/dbmodel/ps_customer_message.go
2026-03-30 01:02:02 +02:00

60 lines
2.7 KiB
Go

// Code generated by gormcol. 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{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_message"),
IDCustomerThread: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_customer_thread"),
IDEmployee: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "id_employee"),
Message: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "message"),
FileName: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "file_name"),
IPAddress: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "ip_address"),
UserAgent: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "user_agent"),
DateAdd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_add"),
DateUpd: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "date_upd"),
Private: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "private"),
Read: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "read"),
Product: gormcol.Field{}.Set((&PsCustomerMessage{}).TableName(), "product"),
}