add models generation and josn print
This commit is contained in:
20
app/model/prestadb/ps_hook_module.go
Normal file
20
app/model/prestadb/ps_hook_module.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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
|
||||
|
||||
const TableNamePsHookModule = "ps_hook_module"
|
||||
|
||||
// PsHookModule mapped from table <ps_hook_module>
|
||||
type PsHookModule struct {
|
||||
IDModule int32 `gorm:"column:id_module;primaryKey;index:id_module,priority:1" json:"id_module"`
|
||||
IDShop int32 `gorm:"column:id_shop;primaryKey;index:position,priority:1;default:1" json:"id_shop"`
|
||||
IDHook int32 `gorm:"column:id_hook;primaryKey;index:id_hook,priority:1" json:"id_hook"`
|
||||
Position int32 `gorm:"column:position;not null;index:position,priority:2" json:"position"`
|
||||
}
|
||||
|
||||
// TableName PsHookModule's table name
|
||||
func (*PsHookModule) TableName() string {
|
||||
return TableNamePsHookModule
|
||||
}
|
||||
Reference in New Issue
Block a user