Improve artiste and parole schema
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
"target": "api::parole.parole",
|
"target": "api::parole.parole",
|
||||||
"inversedBy": "artistes"
|
"inversedBy": "artistes"
|
||||||
},
|
},
|
||||||
"admin_user": {
|
"userAdmin": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "oneToOne",
|
"relation": "oneToOne",
|
||||||
"target": "admin::user"
|
"target": "admin::user"
|
||||||
@@ -47,11 +47,12 @@
|
|||||||
"target": "plugin::users-permissions.user"
|
"target": "plugin::users-permissions.user"
|
||||||
},
|
},
|
||||||
"foto": {
|
"foto": {
|
||||||
|
"type": "media",
|
||||||
|
"multiple": false,
|
||||||
|
"required": false,
|
||||||
"allowedTypes": [
|
"allowedTypes": [
|
||||||
"images"
|
"images"
|
||||||
],
|
]
|
||||||
"type": "media",
|
|
||||||
"multiple": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"slug": {
|
"slug": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"unique": true
|
||||||
},
|
},
|
||||||
"okiMizikID": {
|
"okiMizikID": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
@@ -41,10 +42,10 @@
|
|||||||
"artistes": {
|
"artistes": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "manyToMany",
|
"relation": "manyToMany",
|
||||||
"target": "api::parole.parole",
|
"target": "api::artiste.artiste",
|
||||||
"mappedBy": "paroles"
|
"mappedBy": "paroles"
|
||||||
},
|
},
|
||||||
"admin_user": {
|
"userAdmin": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "oneToOne",
|
"relation": "oneToOne",
|
||||||
"target": "admin::user"
|
"target": "admin::user"
|
||||||
|
|||||||
Reference in New Issue
Block a user