Replace gorm.io/gen header with gormcol
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
Reference in New Issue
Block a user