Type alias RelationDefinitionRawSchema<ESchemas, Final>

RelationDefinitionRawSchema<ESchemas, Final>: Readonly<{ cardinality: CardinalityPair; description: string; subject: ESchemas[number]["type"]; type: string } & (Final extends true ? BuildObj & { constraints: AttributeConstraint[]; final: true; options: AttributeOptions } : { constraints: RelationConstraint[]; final: false; object: EntityRawSchema["type"]; options: RelationOptions })>

Type representing a relation definition schema. It can represent both attributes and relations depending on the value of Final.

It can infer default values type depending on the object type if the relation is final.

Type Parameters

Generated using TypeDoc