Skip to content
Snippets Groups Projects
Commit a24cc9c4 authored by moon's avatar moon
Browse files

Added "NovelCondensate" in CMS

parent 8eedaf01
No related branches found
No related tags found
No related merge requests found
{
"kind": "collectionType",
"collectionName": "novel_condensates",
"info": {
"singularName": "novel-condensate",
"pluralName": "novel-condensates",
"displayName": "NovelCondensate",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"Name": {
"type": "string",
"required": true
},
"IsExperimental": {
"type": "boolean",
"required": true
},
"SpeciesTaxId": {
"type": "integer",
"required": true
},
"Proteins": {
"type": "json",
"required": true
},
"Synonyms": {
"type": "text"
},
"Status": {
"type": "enumeration",
"enum": [
"requested",
"accepted",
"rejected",
"synced"
]
},
"SubmissionComments": {
"type": "richtext"
},
"submittedBy": {
"type": "relation",
"relation": "manyToOne",
"target": "plugin::users-permissions.user",
"inversedBy": "SubmittedNovelCondensates"
},
"SubmittedAt": {
"type": "datetime"
},
"reviewedBy": {
"type": "relation",
"relation": "oneToMany",
"target": "plugin::users-permissions.user",
"mappedBy": "ReviewedNovelCondensates"
},
"ReviewedAt": {
"type": "datetime"
},
"SyncResponse": {
"type": "string"
},
"SyncedAt": {
"type": "datetime"
}
}
}
'use strict';
/**
* novel-condensate controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::novel-condensate.novel-condensate');
'use strict';
/**
* novel-condensate router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::novel-condensate.novel-condensate');
'use strict';
/**
* novel-condensate service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::novel-condensate.novel-condensate');
......@@ -99,6 +99,18 @@
},
"scientific_discipline": {
"type": "json"
},
"ReviewedNovelCondensates": {
"type": "relation",
"relation": "manyToOne",
"target": "api::novel-condensate.novel-condensate",
"inversedBy": "reviewedBy"
},
"SubmittedNovelCondensates": {
"type": "relation",
"relation": "oneToMany",
"target": "api::novel-condensate.novel-condensate",
"mappedBy": "submittedBy"
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment