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
Labels
Comments
Today, Structr only provides |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: