Correct model.json for composite keys database relationships? #2131
-
Firstly really enjoying Drogons ORM model and tools, but I have got a little stuck. QuizQuestion has a composite key of
Understandably drogon_ctl create model using the model.json below creates a function entry for each relationship which causes a redefinition error in the source, but more importantly the incorrect logic. excerpt from my model.json
Anyone know how composite keys should be declared in model.json ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If I remember correctly, this usage is not currently supported. You will need to modify the source code of drogon_ctl. The part related to creating the model is mainly in a .csp file. |
Beta Was this translation helpful? Give feedback.
If I remember correctly, this usage is not currently supported. You will need to modify the source code of drogon_ctl. The part related to creating the model is mainly in a .csp file.