From f410b9409b44d41211d32c9980b8958c08eda54e Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 11 Mar 2022 10:13:49 +0100 Subject: [PATCH] Added categories to library items --- src/api/library-item/content-types/library-item/schema.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/library-item/content-types/library-item/schema.json b/src/api/library-item/content-types/library-item/schema.json index 5ef02c3..6963b72 100644 --- a/src/api/library-item/content-types/library-item/schema.json +++ b/src/api/library-item/content-types/library-item/schema.json @@ -127,6 +127,11 @@ "relation": "manyToMany", "target": "api::merch-item.merch-item", "mappedBy": "library_items" + }, + "categories": { + "type": "relation", + "relation": "oneToMany", + "target": "api::category.category" } } }