Skip to content

RelationDefinition

Defined in: definition/relation.ts:15

A relation between two templates with defined cardinality. See: https://www.notion.so/pynhq/Relations-79955450f72a4e03877b212e8605ca7d?pvs=4

readonly cardinality: RelationCardinality

Defined in: definition/relation.ts:19

Cardinality of the from-to relation.


readonly eventPrn: string | undefined

Defined in: definition/relation.ts:24

Flags that setting, updating, and removing this relation will fire an event.


readonly fromKey: string

Defined in: definition/relation.ts:29

The key on the “from” template.


readonly fromTemplatePrn: string

Defined in: definition/relation.ts:41

The PRN of the “from” template. This is also implied in the PRN of the relation itself, as the relation root if the from template.


readonly prn: string

Defined in: definition/relation.ts:51

The PRN of this relation itself.


readonly toKey: string

Defined in: definition/relation.ts:34

The key on the “to” template.


readonly toPrn: string

Defined in: definition/relation.ts:46

The PRN of the “to” template or union.