Commit 2fc3d85f by jaymehta

gift card end user

1 parent 9b181c92
...@@ -47,6 +47,12 @@ ...@@ -47,6 +47,12 @@
"relation": "oneToMany", "relation": "oneToMany",
"target": "api::review.review", "target": "api::review.review",
"mappedBy": "endUser" "mappedBy": "endUser"
},
"giftCards": {
"type": "relation",
"relation": "oneToMany",
"target": "api::gift-card.gift-card",
"mappedBy": "endUser"
} }
} }
} }
...@@ -45,6 +45,12 @@ ...@@ -45,6 +45,12 @@
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"required": true "required": true
},
"endUser": {
"type": "relation",
"relation": "manyToOne",
"target": "api::end-user.end-user",
"inversedBy": "giftCards"
} }
} }
} }
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::end-user.end-user", "target": "api::end-user.end-user",
"inversedBy": "user" "mappedBy": "user"
} }
} }
} }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!