Replace gorm.io/gen header with gormcol
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// 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 TableNameB2bTranslation = "b2b_translations"
|
||||
|
||||
// B2bTranslation mapped from table <b2b_translations>
|
||||
type B2bTranslation struct {
|
||||
LangID int32 `gorm:"column:lang_id;primaryKey" json:"lang_id"`
|
||||
ScopeID int32 `gorm:"column:scope_id;primaryKey;index:fk_translations_scope,priority:1" json:"scope_id"`
|
||||
ComponentID int32 `gorm:"column:component_id;primaryKey;index:fk_translations_component,priority:1" json:"component_id"`
|
||||
Key string `gorm:"column:key;primaryKey" json:"key"`
|
||||
Data *string `gorm:"column:data" json:"data"`
|
||||
}
|
||||
|
||||
// TableName B2bTranslation's table name
|
||||
func (*B2bTranslation) TableName() string {
|
||||
return TableNameB2bTranslation
|
||||
}
|
||||
|
||||
var B2bTranslationCols = struct {
|
||||
LangID gormcol.Field
|
||||
ScopeID gormcol.Field
|
||||
ComponentID gormcol.Field
|
||||
Key gormcol.Field
|
||||
Data gormcol.Field
|
||||
}{
|
||||
LangID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "lang_id"),
|
||||
ScopeID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "scope_id"),
|
||||
ComponentID: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "component_id"),
|
||||
Key: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "key"),
|
||||
Data: gormcol.Field{}.Set((&B2bTranslation{}).TableName(), "data"),
|
||||
}
|
||||
Reference in New Issue
Block a user