From 8a893157eda8f87e0682cb3dbe5dab39ae21eded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 12 May 2022 06:23:03 +0400 Subject: [PATCH] Minimalist schemas --- src/api/awti/content-types/awti/schema.json | 33 +------------ .../komant/content-types/komant/schema.json | 19 +------ src/api/tek/content-types/tek/schema.json | 49 +------------------ 3 files changed, 5 insertions(+), 96 deletions(-) diff --git a/src/api/awti/content-types/awti/schema.json b/src/api/awti/content-types/awti/schema.json index cc39a63..29506b6 100644 --- a/src/api/awti/content-types/awti/schema.json +++ b/src/api/awti/content-types/awti/schema.json @@ -8,15 +8,12 @@ "description": "" }, "options": { - "increments": true, - "timestamps": true, "draftAndPublish": true }, + "pluginOptions": {}, "attributes": { "alias": { - "type": "string", - "unique": true, - "required": true + "type": "string" }, "prenon": { "type": "string" @@ -30,34 +27,8 @@ "nesans": { "type": "date" }, - "foto": { - "collection": "file", - "via": "related", - "allowedTypes": [ - "images" - ], - "plugin": "upload", - "required": false, - "pluginOptions": {} - }, - "teks": { - "type": "relation", - "relation": "manyToMany", - "target": "api::tek.tek", - "inversedBy": "awtis" - }, - "users_permissions_user": { - "type": "relation", - "relation": "oneToOne", - "target": "plugin::users-permissions.user" - }, "slug": { "type": "string" - }, - "admin_user": { - "type": "relation", - "relation": "oneToOne", - "target": "admin::user" } } } diff --git a/src/api/komant/content-types/komant/schema.json b/src/api/komant/content-types/komant/schema.json index 4062a2c..712cd40 100644 --- a/src/api/komant/content-types/komant/schema.json +++ b/src/api/komant/content-types/komant/schema.json @@ -8,29 +8,14 @@ "description": "" }, "options": { - "increments": true, - "timestamps": true, - "draftAndPublish": true, - "privateAttributes": [ - "createdAt", - "updatedAt" - ] + "draftAndPublish": true }, + "pluginOptions": {}, "attributes": { "kontni": { "type": "richtext", "required": true }, - "users_permissions_user": { - "type": "relation", - "relation": "oneToOne", - "target": "plugin::users-permissions.user" - }, - "teks": { - "type": "relation", - "relation": "oneToOne", - "target": "api::tek.tek" - }, "sentAt": { "type": "datetime", "required": true diff --git a/src/api/tek/content-types/tek/schema.json b/src/api/tek/content-types/tek/schema.json index d0d7fba..6bceaf1 100644 --- a/src/api/tek/content-types/tek/schema.json +++ b/src/api/tek/content-types/tek/schema.json @@ -8,10 +8,9 @@ "description": "" }, "options": { - "increments": true, - "timestamps": true, "draftAndPublish": true }, + "pluginOptions": {}, "attributes": { "tit": { "type": "string", @@ -21,69 +20,23 @@ "type": "richtext", "required": true }, - "tradiksyon": { - "type": "component", - "repeatable": false, - "component": "trad.traductions" - }, "lanne": { "type": "integer" }, - "lyen": { - "type": "component", - "repeatable": true, - "component": "url.liens" - }, - "awtis": { - "type": "relation", - "relation": "manyToMany", - "target": "api::awti.awti", - "mappedBy": "teks" - }, - "kouteyAchtey": { - "type": "component", - "repeatable": true, - "component": "store.store" - }, "slug": { "type": "string" }, - "kouveti": { - "model": "file", - "via": "related", - "allowedTypes": [ - "images" - ], - "plugin": "upload", - "required": false, - "pluginOptions": {} - }, "okiMizikID": { "type": "integer" }, - "users_permissions_user": { - "type": "relation", - "relation": "oneToOne", - "target": "plugin::users-permissions.user" - }, "eksplisit": { "type": "boolean" }, - "komante": { - "type": "relation", - "relation": "oneToOne", - "target": "api::komant.komant" - }, "forceSlug": { "type": "boolean" }, "tradiksyonOtomatik": { "type": "boolean" - }, - "admin_user": { - "type": "relation", - "relation": "oneToOne", - "target": "admin::user" } } }