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

Flexible Cardinality #432

Open
pmualaba opened this issue Mar 1, 2016 · 1 comment
Open

Flexible Cardinality #432

pmualaba opened this issue Mar 1, 2016 · 1 comment

Comments

@pmualaba
Copy link

pmualaba commented Mar 1, 2016

Hello, i just succesfully installed structr. I am building a schema, but in the Cardinality fields of the relation, you can only enter 1 or *. This is the typical cardinality we have in relational databases. But now that we have a graph database available, I would like to enter a minimum:maximum:default cardinality.
Simple example: Car-[HAS]->Door i would like to set the cardinality for the Car-[HAS]->Door relation to 0:4:5 indicating that i can remove all doors of a Car instance (min cardinality is 0), and that i cannot create more then 5 Door instances for any given Car (max cardinality is 5). Also when creating a new Car instance (when Automatic Creation of Related Nodes is active) structr should automatically create the 4 Door instances (default cardinality is 4)
Is it possible to model this kind of behaviour in structr?

Kind regards.

@amorgner
Copy link
Member

amorgner commented Mar 1, 2016

Today, Structr only provides 1 or *, but extending this to more complex patterns is an interesting idea. I've added the appropriate labels so it will be tracked on our roadmap.

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

No branches or pull requests

2 participants