33 lines
1.5 KiB
Go
33 lines
1.5 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 prestadb
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const TableNamePsCustomerThread = "ps_customer_thread"
|
|
|
|
// PsCustomerThread mapped from table <ps_customer_thread>
|
|
type PsCustomerThread struct {
|
|
IDCustomerThread int32 `gorm:"column:id_customer_thread;primaryKey;autoIncrement:true" json:"id_customer_thread"`
|
|
IDShop int32 `gorm:"column:id_shop;not null;index:id_shop,priority:1;default:1" json:"id_shop"`
|
|
IDLang int32 `gorm:"column:id_lang;not null;index:id_lang,priority:1" json:"id_lang"`
|
|
IDContact int32 `gorm:"column:id_contact;not null;index:id_contact,priority:1" json:"id_contact"`
|
|
IDCustomer *int32 `gorm:"column:id_customer;index:id_customer,priority:1" json:"id_customer"`
|
|
IDOrder *int32 `gorm:"column:id_order;index:id_order,priority:1" json:"id_order"`
|
|
IDProduct *int32 `gorm:"column:id_product;index:id_product,priority:1" json:"id_product"`
|
|
Status string `gorm:"column:status;not null;default:open" json:"status"`
|
|
Email string `gorm:"column:email;not null" json:"email"`
|
|
Token *string `gorm:"column:token" json:"token"`
|
|
DateAdd time.Time `gorm:"column:date_add;not null" json:"date_add"`
|
|
DateUpd time.Time `gorm:"column:date_upd;not null" json:"date_upd"`
|
|
}
|
|
|
|
// TableName PsCustomerThread's table name
|
|
func (*PsCustomerThread) TableName() string {
|
|
return TableNamePsCustomerThread
|
|
}
|