This commit is contained in:
2025-11-16 18:09:48 +01:00
parent fa993f75b4
commit 95ce447496
14 changed files with 13829 additions and 1 deletions
@@ -0,0 +1,31 @@
{
"kind": "collectionType",
"collectionName": "chat_messages",
"info": {
"singularName": "chat-message",
"pluralName": "chat-messages",
"displayName": "ChatMessage"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"sender": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
},
"content": {
"type": "string",
"required": true
},
"isEdited": {
"type": "boolean",
"default": false
},
"deletedAt": {
"type": "datetime"
}
}
}
@@ -0,0 +1,7 @@
/**
* chat-message controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::chat-message.chat-message');
@@ -0,0 +1,7 @@
/**
* chat-message router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::chat-message.chat-message');
@@ -0,0 +1,7 @@
/**
* chat-message service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::chat-message.chat-message');