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

Non-foreign key relationships #7

Open
jadeleeuw opened this issue Nov 11, 2019 · 0 comments
Open

Non-foreign key relationships #7

jadeleeuw opened this issue Nov 11, 2019 · 0 comments

Comments

@jadeleeuw
Copy link

It seems that it is currently not possible in JOLO to describe a relationship where one of the fields in a table is from another table but is not actually a foreign key. Could this functionality be added?

Use case:

Imagine that you have a table that serves as a log which records all events that have happend. The events in this events table contain an ID of an instance of Foo from the Foo table. Foos can be deleted later on, but the events still have a reference to these Foos which now no longer exist. The reason for not using a foreign key in this case is that since the table serves as a log the events of non-existing Foos should remain in the table and not be deleted if the corresponding Foo is deleted.

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

No branches or pull requests

1 participant