package model import "git.ma-al.com/goc_daniel/b2b/app/model/dbmodel" // Represents a country together with its associated currency type Country struct { ID uint `gorm:"primaryKey;column:id" json:"id"` Name string `gorm:"column:name" json:"name"` Flag string `gorm:"size:16;not null;column:flag" json:"flag"` PSCurrencyID uint `gorm:"column:currency_id" json:"currency_id"` PSCurrency *dbmodel.PsCurrency `gorm:"foreignKey:PSCurrencyID;references:IDCurrency" json:"ps_currency"` } func (Country) TableName() string { return "b2b_countries" }