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 TableNameB2bScope = "b2b_scopes"
// B2bScope mapped from table <b2b_scopes>
type B2bScope struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
Name string `gorm:"column:name;not null;uniqueIndex:uk_scopes_name,priority:1" json:"name"`
}
// TableName B2bScope's table name
func (*B2bScope) TableName() string {
return TableNameB2bScope
}
var B2bScopeCols = struct {
ID gormcol.Field
Name gormcol.Field
}{
ID: gormcol.Field{}.Set((&B2bScope{}).TableName(), "id"),
Name: gormcol.Field{}.Set((&B2bScope{}).TableName(), "name"),
}