diff --git a/src/api/blog-post/content-types/blog-post/schema.json b/src/api/blog-post/content-types/blog-post/schema.json index 60a5b90..831f815 100644 --- a/src/api/blog-post/content-types/blog-post/schema.json +++ b/src/api/blog-post/content-types/blog-post/schema.json @@ -58,6 +58,21 @@ "relation": "manyToOne", "target": "api::blog-collection.blog-collection", "inversedBy": "posts" + }, + "teaser_image": { + "allowedTypes": [ + "images", + "files", + "videos", + "audios" + ], + "type": "media", + "multiple": false, + "pluginOptions": { + "i18n": { + "localized": true + } + } } } } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index de70516..10aae36 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -978,6 +978,12 @@ export interface ApiBlogPostBlogPost extends Schema.CollectionType { 'manyToOne', 'api::blog-collection.blog-collection' >; + teaser_image: Attribute.Media<'images' | 'files' | 'videos' | 'audios'> & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;