diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index 14d9dc5..5525b5a 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -29,7 +29,7 @@ "type": "relation", "relation": "manyToMany", "target": "api::store.store", - "inversedBy": "products" + "inversedBy": "events" }, "usd_price": { "pluginOptions": { diff --git a/src/api/store/content-types/store/schema.json b/src/api/store/content-types/store/schema.json index e3ddf5b..8d4dfb3 100644 --- a/src/api/store/content-types/store/schema.json +++ b/src/api/store/content-types/store/schema.json @@ -55,6 +55,12 @@ "target": "api::product.product", "mappedBy": "stores" }, + "events": { + "type": "relation", + "relation": "manyToMany", + "target": "api::event.event", + "mappedBy": "stores" + }, "Description": { "pluginOptions": { "i18n": { diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index dfdbf01..7cb36a1 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -1041,6 +1041,7 @@ export interface ApiStoreStore extends Struct.CollectionTypeSchema { localized: true; }; }>; + events: Schema.Attribute.Relation<'manyToMany', 'api::event.event'>; Favicon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'> & Schema.Attribute.SetPluginOptions<{ i18n: {