public commit

This commit is contained in:
dswbx
2024-11-16 12:01:47 +01:00
commit 90f80c4280
582 changed files with 49291 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import type { Entity } from "../entities";
export class EntityRelationAnchor {
entity: Entity;
cardinality?: number;
/**
* The name that the other entity will use to reference this entity
*/
reference: string;
constructor(entity: Entity, name: string, cardinality?: number) {
this.entity = entity;
this.cardinality = cardinality;
this.reference = name;
}
toJSON() {
return {
entity: this.entity.name,
cardinality: this.cardinality,
name: this.reference,
};
}
}