Commit 9311cbd0 by sujata

chnage in event tag

1 parent 06399497
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
"type": "uid", "type": "uid",
"targetField": "Name" "targetField": "Name"
}, },
"event": { "events": {
"type": "relation", "type": "relation",
"relation": "manyToOne", "relation": "oneToMany",
"target": "api::event.event", "target": "api::event.event",
"inversedBy": "event_categories" "mappedBy": "event_category"
} }
} }
} }
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
"type": "uid", "type": "uid",
"targetField": "Name" "targetField": "Name"
}, },
"event": { "events": {
"type": "relation", "type": "relation",
"relation": "manyToOne", "relation": "oneToMany",
"target": "api::event.event", "target": "api::event.event",
"inversedBy": "event_tags" "mappedBy": "event_tag"
} }
} }
} }
...@@ -53,17 +53,17 @@ ...@@ -53,17 +53,17 @@
"component": "dynamic-zone.image-slider", "component": "dynamic-zone.image-slider",
"repeatable": false "repeatable": false
}, },
"event_categories": { "event_category": {
"type": "relation", "type": "relation",
"relation": "oneToMany", "relation": "manyToOne",
"target": "api::event-category.event-category", "target": "api::event-category.event-category",
"mappedBy": "event" "inversedBy": "events"
}, },
"event_tags": { "event_tag": {
"type": "relation", "type": "relation",
"relation": "oneToMany", "relation": "manyToOne",
"target": "api::event-tag.event-tag", "target": "api::event-tag.event-tag",
"mappedBy": "event" "inversedBy": "events"
}, },
"smalldescription": { "smalldescription": {
"type": "text" "type": "text"
......
...@@ -1328,7 +1328,7 @@ export interface ApiEventCategoryEventCategory ...@@ -1328,7 +1328,7 @@ export interface ApiEventCategoryEventCategory
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private; Schema.Attribute.Private;
event: Schema.Attribute.Relation<'manyToOne', 'api::event.event'>; events: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation< localizations: Schema.Attribute.Relation<
'oneToMany', 'oneToMany',
...@@ -1387,7 +1387,7 @@ export interface ApiEventTagEventTag extends Struct.CollectionTypeSchema { ...@@ -1387,7 +1387,7 @@ export interface ApiEventTagEventTag extends Struct.CollectionTypeSchema {
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private; Schema.Attribute.Private;
event: Schema.Attribute.Relation<'manyToOne', 'api::event.event'>; events: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation< localizations: Schema.Attribute.Relation<
'oneToMany', 'oneToMany',
...@@ -1425,12 +1425,12 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema { ...@@ -1425,12 +1425,12 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema {
preset: 'defaultHtml'; preset: 'defaultHtml';
} }
>; >;
event_categories: Schema.Attribute.Relation< event_category: Schema.Attribute.Relation<
'oneToMany', 'manyToOne',
'api::event-category.event-category' 'api::event-category.event-category'
>; >;
event_tags: Schema.Attribute.Relation< event_tag: Schema.Attribute.Relation<
'oneToMany', 'manyToOne',
'api::event-tag.event-tag' 'api::event-tag.event-tag'
>; >;
ImageSlider: Schema.Attribute.Component<'dynamic-zone.image-slider', false>; ImageSlider: Schema.Attribute.Component<'dynamic-zone.image-slider', false>;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!