ModelRelation
Type Alias: ModelRelation
ModelRelation =
object
Defined in: compiler/src/definition.ts:74
Model relation type definition
Properties
attribute
attribute:
string
Defined in: compiler/src/definition.ts:75
model
model:
string
Defined in: compiler/src/definition.ts:76
onDelete?
optionalonDelete?:DeletePolicy
Defined in: compiler/src/definition.ts:83
Policy applied to this model when the target is deleted, omitted for the default NONE
With ownership: "CONTAINS" it is applied to the listed models when this model is deleted instead.
ownership?
optionalownership?:"CONTAINS"
Defined in: compiler/src/definition.ts:87
CONTAINS for a Contains<T>: this model owns the models it lists
type
type:
"LINK"|"LINKS_MAP"|"LINKS_ARRAY"|"LINKS_SIMPLE_ARRAY"
Defined in: compiler/src/definition.ts:77