//
//  Continent.swift
//  OptolithDatabaseSchema
//

/// Continents are mostly referenced to in languages and scripts that occur on a specific continent.
public struct Continent: LocalizableEntity {
    /// The continent's identifier. An unique, increasing integer.
    public let id: Int

    /// All translations for the entry, identified by IETF language tag (BCP47).
    public let translations: LocaleMap<ContinentTranslation>

    public init(id: Int, translations: LocaleMap<ContinentTranslation>) {
        self.id = id
        self.translations = translations
    }
}

public struct ContinentTranslation: EntitySubtype {
    /// The continent name.
    public let name: String

    public init(name: String) {
        self.name = name
    }
}
