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
+28
View 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 dbmodel
import "git.ma-al.com/goc_marek/gormcol"
const TableNameB2bComponent = "b2b_components"
// B2bComponent mapped from table <b2b_components>
type B2bComponent struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;uniqueIndex:uk_components_name,priority:2" json:"id"`
Name string `gorm:"column:name;not null;uniqueIndex:uk_components_name,priority:1" json:"name"`
}
// TableName B2bComponent's table name
func (*B2bComponent) TableName() string {
return TableNameB2bComponent
}
var B2bComponentCols = struct {
ID gormcol.Field
Name gormcol.Field
}{
ID: gormcol.Field{}.Set((&B2bComponent{}).TableName(), "id"),
Name: gormcol.Field{}.Set((&B2bComponent{}).TableName(), "name"),
}