12 lines
507 B
Go
12 lines
507 B
Go
package model
|
|
|
|
// 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"`
|
|
CurrencyID uint `gorm:"column:id_currency" json:"currency_id"`
|
|
CurrencyISOCode string `gorm:"column:iso_code" json:"currency_iso_code"`
|
|
CurrencyName string `gorm:"column:name" json:"currency_name"`
|
|
}
|