diff --git a/src/app/core/cache/models/entities/normalized-relationship-type.model.ts b/src/app/core/cache/models/entities/normalized-relationship-type.model.ts index a7e46a9d1b..ea71e217b9 100644 --- a/src/app/core/cache/models/entities/normalized-relationship-type.model.ts +++ b/src/app/core/cache/models/entities/normalized-relationship-type.model.ts @@ -25,9 +25,15 @@ export class NormalizedRelationshipType extends NormalizedObject { @autoserialize leftLabel: string; + /** + * The maximum amount of Relationships allowed to the left of this RelationshipType + */ @autoserialize leftMaxCardinality: number; + /** + * The minimum amount of Relationships allowed to the left of this RelationshipType + */ @autoserialize leftMinCardinality: number; @@ -37,9 +43,15 @@ export class NormalizedRelationshipType extends NormalizedObject { @autoserialize rightLabel: string; + /** + * The maximum amount of Relationships allowed to the right of this RelationshipType + */ @autoserialize rightMaxCardinality: number; + /** + * The minimum amount of Relationships allowed to the right of this RelationshipType + */ @autoserialize rightMinCardinality: number; diff --git a/src/app/core/cache/models/entities/normalized-relationship.model.ts b/src/app/core/cache/models/entities/normalized-relationship.model.ts index 7c7508d9ef..0f5bb6cf90 100644 --- a/src/app/core/cache/models/entities/normalized-relationship.model.ts +++ b/src/app/core/cache/models/entities/normalized-relationship.model.ts @@ -19,16 +19,13 @@ export class NormalizedRelationship extends NormalizedObject { id: string; /** - * The identifier of the Relationship to the left side of this Relationship + * The identifier of the Entity to the left side of this Relationship */ @autoserialize leftId: string; - @autoserialize - place: number; - /** - * The identifier of the Relationship to the right side of this Relationship + * The identifier of the Entity to the right side of this Relationship */ @autoserialize rightId: string; diff --git a/src/app/core/shared/entities/relationship-type.model.ts b/src/app/core/shared/entities/relationship-type.model.ts index 943a8f94f5..b505d6dddc 100644 --- a/src/app/core/shared/entities/relationship-type.model.ts +++ b/src/app/core/shared/entities/relationship-type.model.ts @@ -35,8 +35,14 @@ export class RelationshipType implements CacheableObject { */ leftLabel: string; + /** + * The maximum amount of Relationships allowed to the left of this RelationshipType + */ leftMaxCardinality: number; + /** + * The minimum amount of Relationships allowed to the left of this RelationshipType + */ leftMinCardinality: number; /** @@ -44,8 +50,14 @@ export class RelationshipType implements CacheableObject { */ rightLabel: string; + /** + * The maximum amount of Relationships allowed to the right of this RelationshipType + */ rightMaxCardinality: number; + /** + * The minimum amount of Relationships allowed to the right of this RelationshipType + */ rightMinCardinality: number; /** diff --git a/src/app/core/shared/entities/relationship.model.ts b/src/app/core/shared/entities/relationship.model.ts index 4df3e32b86..62c204925e 100644 --- a/src/app/core/shared/entities/relationship.model.ts +++ b/src/app/core/shared/entities/relationship.model.ts @@ -26,14 +26,12 @@ export class Relationship implements CacheableObject { id: string; /** - * The identifier of the Relationship to the left side of this Relationship + * The identifier of the Entity to the left side of this Relationship */ leftId: string; - place: string; - /** - * The identifier of the Relationship to the right side of this Relationship + * The identifier of the Entity to the right side of this Relationship */ rightId: string;