// 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 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"), }