Lastest objects for post, invite and add cron GNEWS

This commit is contained in:
2025-09-26 13:22:07 +02:00
parent b6d18c2681
commit a84fdbed9a
21 changed files with 16320 additions and 5273 deletions
@@ -0,0 +1,45 @@
{
"kind": "collectionType",
"collectionName": "invites",
"info": {
"singularName": "invite",
"pluralName": "invites",
"displayName": "Invite",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"invitedUser": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"invitedBy": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"type": {
"type": "enumeration",
"enum": [
"group",
"choral"
]
},
"members": {
"type": "integer"
},
"invitedDate": {
"type": "datetime"
}
}
}
+7
View File
@@ -0,0 +1,7 @@
/**
* invite controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::invite.invite');
+7
View File
@@ -0,0 +1,7 @@
/**
* invite router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::invite.invite');
+7
View File
@@ -0,0 +1,7 @@
/**
* invite service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::invite.invite');