Improve artiste and parole schema

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-13 02:37:29 +04:00
parent b1a9e3190b
commit 25e3ef4b46
2 changed files with 9 additions and 7 deletions
@@ -24,7 +24,8 @@
"type": "integer"
},
"slug": {
"type": "string"
"type": "string",
"unique": true
},
"okiMizikID": {
"type": "integer"
@@ -41,10 +42,10 @@
"artistes": {
"type": "relation",
"relation": "manyToMany",
"target": "api::parole.parole",
"target": "api::artiste.artiste",
"mappedBy": "paroles"
},
"admin_user": {
"userAdmin": {
"type": "relation",
"relation": "oneToOne",
"target": "admin::user"