The following does not fill in the relationship fields for any entities in the .json files that are generated.
entity Organization {
name String required,
description String,
createdDate ZonedDateTime,
lastModifiedDate ZonedDateTime
}
entity Region {
name String required,
description String,
createdDate ZonedDateTime,
lastModifiedDate ZonedDateTime
}
entity Location {
name String required,
description String,
latitude Float,
longitude Float,
altitude Float,
createdDate ZonedDateTime,
lastModifiedDate ZonedDateTime,
markerIcon String
}
entity FormOutline {
title String required,
description String,
createdDate ZonedDateTime,
lastModifiedDate ZonedDateTime
}
entity FormComplete {
createdDate ZonedDateTime,
lastModifiedDate ZonedDateTime
}
entity FormOutlineString {
label String required
}
entity FormOutlineFloat {
label String required
}
entity FormOutlineDatetime {
label String required
}
entity FormCompleteString {
value String required
}
entity FormCompleteFloat {
value Float required
}
entity FormCompleteDatetime {
value ZonedDateTime required
}
relationship OneToMany {
FormOutline{formoutlinestring(label)} to FormOutlineString{formoutline(title)},
FormOutline{formoutlinefloat(label)} to FormOutlineFloat{formoutline(title)},
FormOutline{formoutlinedatetime(label)} to FormOutlineDatetime{formoutline(title)},
FormOutline{formcomplete} to FormComplete{formoutline(title)},
FormComplete{formcompletestring(value)} to FormCompleteString{formcomplete},
FormComplete{formcompletefloat(value)} to FormCompleteFloat{formcomplete},
FormComplete{formcompletedatetime(value)} to FormCompleteDatetime{formcomplete},
FormOutlineDatetime{formcompletedatetime} to FormCompleteDateTime{formoutlinedatetime(label)},
FormOutlineString{formcompletestring} to FormCompleteString{formoutlinestring(label)},
FormOutlineFloat{formcompletefloat} to FormCompleteFloat{formoutlinefloat(label)}
}
relationship ManyToMany {
Region{location(name)} to Location{region(name)}
}