OpenSlides / openslides-meta

MIT License
0 stars 12 forks source link

Generate relational schema #17

Closed r-peschke closed 7 months ago

r-peschke commented 9 months ago

As agreed let us merge this PR to the feature-branch

r-peschke commented 7 months ago

Small typos or clarifications. The concept itself looks good. I'm missing a list of required attributes for reach relation type, e.g.:

* 1:1 must always contain a `reference` on one side and a `sql` on the other

* similar rules for 1:n and m:n

(just an example because I don't know the actual rules yet)

This can then be validated if we want via the to attributes, which is another reason why I would like to keep them.

This is documented in models.yml as list of implemented from-to-rules.