BelongTo
Type Alias: BelongTo<T>
BelongTo<
T> =ModelParent<T>
Defined in: packages/models/src/relations.ts:1280
Define the parent of the model, alias of ModelParent
Deleting the parent deletes the model (CASCADE) unless the attribute declares @OnDelete RESTRICT or
@OnDelete NONE
Type Parameters
T
T extends Storable