Commit a7e91666 by sujata

chnage in event tag

1 parent 9311cbd0
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
"type": "uid", "type": "uid",
"targetField": "Name" "targetField": "Name"
}, },
"events": { "event": {
"type": "relation", "type": "relation",
"relation": "oneToMany", "relation": "manyToOne",
"target": "api::event.event", "target": "api::event.event",
"mappedBy": "event_category" "inversedBy": "event_categories"
} }
} }
} }
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
"type": "uid", "type": "uid",
"targetField": "Name" "targetField": "Name"
}, },
"events": { "event": {
"type": "relation", "type": "relation",
"relation": "oneToMany", "relation": "manyToOne",
"target": "api::event.event", "target": "api::event.event",
"mappedBy": "event_tag" "inversedBy": "event_tags"
} }
} }
} }
...@@ -53,20 +53,20 @@ ...@@ -53,20 +53,20 @@
"component": "dynamic-zone.image-slider", "component": "dynamic-zone.image-slider",
"repeatable": false "repeatable": false
}, },
"event_category": { "event_categories": {
"type": "relation", "type": "relation",
"relation": "manyToOne", "relation": "oneToMany",
"target": "api::event-category.event-category", "target": "api::event-category.event-category",
"inversedBy": "events" "mappedBy": "event"
},
"event_tag": {
"type": "relation",
"relation": "manyToOne",
"target": "api::event-tag.event-tag",
"inversedBy": "events"
}, },
"smalldescription": { "smalldescription": {
"type": "text" "type": "text"
},
"event_tags": {
"type": "relation",
"relation": "oneToMany",
"target": "api::event-tag.event-tag",
"mappedBy": "event"
} }
} }
} }
...@@ -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;
events: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>; event: Schema.Attribute.Relation<'manyToOne', '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;
events: Schema.Attribute.Relation<'oneToMany', 'api::event.event'>; event: Schema.Attribute.Relation<'manyToOne', '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_category: Schema.Attribute.Relation< event_categories: Schema.Attribute.Relation<
'manyToOne', 'oneToMany',
'api::event-category.event-category' 'api::event-category.event-category'
>; >;
event_tag: Schema.Attribute.Relation< event_tags: Schema.Attribute.Relation<
'manyToOne', 'oneToMany',
'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!