One-to-one relations should be to the Entity table. So line 4 should be:
entity: '?Entity',
in structure.sql file:
|
ALTER TABLE "Identifier" ADD CONSTRAINT "fkIdentifierEntity" FOREIGN KEY ("entityId") REFERENCES "Identifier" ("id"); |
So line 9 should be:
ALTER TABLE "Identifier" ADD CONSTRAINT "fkIdentifierEntity" FOREIGN KEY ("entityId") REFERENCES "Entity" ("id");
But this generates an error - since the Entity table has not yet been created.
NodeJS-Application/schemas/Identifier.js
Line 4 in 5749fec
One-to-one relations should be to the Entity table. So line 4 should be:
entity: '?Entity',
in structure.sql file:
NodeJS-Application/db/structure.sql
Line 9 in 5749fec
So line 9 should be:
ALTER TABLE "Identifier" ADD CONSTRAINT "fkIdentifierEntity" FOREIGN KEY ("entityId") REFERENCES "Entity" ("id");
But this generates an error - since the Entity table has not yet been created.