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
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 offoreignkeys
,generic
,sql_cross_table
. Describes the implementation on the model levelreverseAssociation
. Name of the reverse association. Can be omitted for codgen of the server. Needed in the SPA.The field
reverseAssocitionType
formany_to_many
via foreign key arrays was removed. If an association is of typemany_to_many
and the implementation isforeignkeys
it will be done via foreignkey arrays.The fields
keyIn
in andkeysIn
were unified to fieldkeysIn