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