add models generation and josn print

This commit is contained in:
2026-03-26 02:22:14 +01:00
parent 7c5a993623
commit af2b276599
319 changed files with 7394 additions and 27 deletions

View 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
}