Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

one-to-one relations should be to the Entity table #20

Open
turone opened this issue May 20, 2024 · 0 comments
Open

one-to-one relations should be to the Entity table #20

turone opened this issue May 20, 2024 · 0 comments

Comments

@turone
Copy link
Member

turone commented May 20, 2024

entity: '?Identifier',

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant