@Description("Master data other scenario types")
scenarioType MasterData {
}
@Description("Define a country by an ID and a name")
entity Country {
// DOM [primary.keys] : [id]
@Description("ISO 3166-1 alpha-3 codes")
id String required length(3),
@Description("Country full name")
name String
}
entity Plant {
// DOM [primary.keys] : [plantId]
plantId String required,
latitude Double,
longitude Double
@DefaultValue("true")
online Boolean
}
relationship ManyToOne {
// DOM [affects.primary.key] : [true]
Plant{country} to Country{plants}
}