Improve artiste and parole schema
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"target": "api::parole.parole",
|
||||
"inversedBy": "artistes"
|
||||
},
|
||||
"admin_user": {
|
||||
"userAdmin": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "admin::user"
|
||||
@@ -47,11 +47,12 @@
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"foto": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user