Create awtis & mizik routes & models
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks)
|
||||
* to customize this model
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "awtis",
|
||||
"info": {
|
||||
"name": "awtis",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": true,
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"attributes": {
|
||||
"alias": {
|
||||
"type": "string",
|
||||
"unique": true,
|
||||
"required": true
|
||||
},
|
||||
"prenom": {
|
||||
"type": "string"
|
||||
},
|
||||
"nom": {
|
||||
"type": "string"
|
||||
},
|
||||
"bio": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"naissance": {
|
||||
"type": "date"
|
||||
},
|
||||
"photo": {
|
||||
"collection": "file",
|
||||
"via": "related",
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"plugin": "upload",
|
||||
"required": false
|
||||
},
|
||||
"miziks": {
|
||||
"via": "awtis",
|
||||
"collection": "mizik",
|
||||
"dominant": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user