add models generation and josn print
This commit is contained in:
28
app/model/prestadb/ps_message.go
Normal file
28
app/model/prestadb/ps_message.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 TableNamePsMessage = "ps_message"
|
||||
|
||||
// PsMessage mapped from table <ps_message>
|
||||
type PsMessage struct {
|
||||
IDMessage int32 `gorm:"column:id_message;primaryKey;autoIncrement:true" json:"id_message"`
|
||||
IDCart *int32 `gorm:"column:id_cart;index:id_cart,priority:1" json:"id_cart"`
|
||||
IDCustomer int32 `gorm:"column:id_customer;not null;index:id_customer,priority:1" json:"id_customer"`
|
||||
IDEmployee *int32 `gorm:"column:id_employee;index:id_employee,priority:1" json:"id_employee"`
|
||||
IDOrder int32 `gorm:"column:id_order;not null;index:message_order,priority:1" json:"id_order"`
|
||||
Message string `gorm:"column:message;not null" json:"message"`
|
||||
Private bool `gorm:"column:private;not null;default:1" json:"private"`
|
||||
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
||||
}
|
||||
|
||||
// TableName PsMessage's table name
|
||||
func (*PsMessage) TableName() string {
|
||||
return TableNamePsMessage
|
||||
}
|
||||
Reference in New Issue
Block a user