Replace gorm.io/gen header with gormcol

This commit is contained in:
2026-03-29 18:51:45 +02:00
parent 987e55de10
commit e30aa50752
326 changed files with 13511 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
// 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 dbmodel
import "git.ma-al.com/goc_marek/gormcol"
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
}
var PsHookModuleCols = struct {
IDModule gormcol.Field
IDShop gormcol.Field
IDHook gormcol.Field
Position gormcol.Field
}{
IDModule: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_module"),
IDShop: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_shop"),
IDHook: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "id_hook"),
Position: gormcol.Field{}.Set((&PsHookModule{}).TableName(), "position"),
}