diff --git a/src/api/parole/content-types/parole/schema.json b/src/api/parole/content-types/parole/schema.json index 3716ce8..031fbaa 100644 --- a/src/api/parole/content-types/parole/schema.json +++ b/src/api/parole/content-types/parole/schema.json @@ -85,6 +85,11 @@ }, "prioriteArtistes": { "type": "string" + }, + "difference": { + "type": "component", + "repeatable": true, + "component": "difference.paroles-diff" } } } diff --git a/src/components/difference/paroles-diff.json b/src/components/difference/paroles-diff.json new file mode 100644 index 0000000..544e2ce --- /dev/null +++ b/src/components/difference/paroles-diff.json @@ -0,0 +1,33 @@ +{ + "collectionName": "components_diff_paroles_diffs", + "info": { + "displayName": "Paroles diff", + "icon": "american-sign-language-interpreting", + "description": "" + }, + "options": {}, + "attributes": { + "paroles": { + "type": "richtext" + }, + "date": { + "type": "datetime" + }, + "sources": { + "type": "enumeration", + "enum": [ + "transcription", + "francais", + "anglais", + "espagnol", + "allemand", + "italien" + ] + }, + "admin_user": { + "type": "relation", + "relation": "oneToOne", + "target": "admin::user" + } + } +}