Skip to content

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

Description

@turone

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions