// 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 TableNameB2bCountry = "b2b_countries" // B2bCountry mapped from table type B2bCountry struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Name string `gorm:"column:name;not null" json:"name"` CurrencyID int32 `gorm:"column:currency_id;not null;index:fk_countries_currency,priority:1" json:"currency_id"` Flag string `gorm:"column:flag;not null" json:"flag"` } // TableName B2bCountry's table name func (*B2bCountry) TableName() string { return TableNameB2bCountry } var B2bCountryCols = struct { ID gormcol.Field Name gormcol.Field CurrencyID gormcol.Field Flag gormcol.Field }{ ID: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "id"), Name: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "name"), CurrencyID: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "currency_id"), Flag: gormcol.Field{}.Set((&B2bCountry{}).TableName(), "flag"), }