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
+40
View File
@@ -0,0 +1,40 @@
// 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 TableNameB2bRoute = "b2b_routes"
// B2bRoute mapped from table <b2b_routes>
type B2bRoute struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;not null;uniqueIndex:name,priority:1" json:"name"`
Path *string `gorm:"column:path" json:"path"`
Component string `gorm:"column:component;not null;comment:path to component file" json:"component"` // path to component file
Meta *string `gorm:"column:meta;default:{}" json:"meta"`
Active *bool `gorm:"column:active;default:1" json:"active"`
}
// TableName B2bRoute's table name
func (*B2bRoute) TableName() string {
return TableNameB2bRoute
}
var B2bRouteCols = struct {
ID gormcol.Field
Name gormcol.Field
Path gormcol.Field
Component gormcol.Field
Meta gormcol.Field
Active gormcol.Field
}{
ID: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "id"),
Name: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "name"),
Path: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "path"),
Component: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "component"),
Meta: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "meta"),
Active: gormcol.Field{}.Set((&B2bRoute{}).TableName(), "active"),
}