Skip to content

Conversation

@coeit
Copy link
Member

@coeit coeit commented Jun 17, 2021

Summary

This PR implements a change in the zendro domain specific language to define data models, specifically their associations between each other.

Changes

  • With this PR there are 4 types of possible association types:

    • one_to_one
    • many_to_one
    • one_to_many
    • many_to_many
  • Additionally two additional fields were added.

    • implementation. Can be one of foreignkeys, generic, sql_cross_table. Describes the implementation on the model level
    • reverseAssociation. Name of the reverse association. Can be omitted for codgen of the server. Needed in the SPA.
  • The field reverseAssocitionType for many_to_many via foreign key arrays was removed. If an association is of type many_to_many and the implementation is foreignkeys it will be done via foreignkey arrays.

  • The fields keyIn in and keysIn were unified to field keysIn

@coeit coeit added the refactor Non-functional changes to the code label Jun 17, 2021
@coeit coeit self-assigned this Jun 17, 2021
@coeit coeit changed the title refactor: associon types refactor: association types Jun 17, 2021
@coeit coeit merged commit c52fdb2 into master Jun 17, 2021
@coeit coeit deleted the refactor-assoc-types branch June 17, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Non-functional changes to the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant