0.12.5
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 2m4s
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 2m4s
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chat_conversation_members",
|
||||
"info": {
|
||||
"singularName": "chat-conversation-member",
|
||||
"pluralName": "chat-conversation-members",
|
||||
"displayName": "ChatConversationMember"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"user": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"role": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"member",
|
||||
"admin",
|
||||
"owner"
|
||||
]
|
||||
},
|
||||
"joinedAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"lastReadAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"conversation": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::chat-conversation.chat-conversation"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation-member service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-conversation-member.chat-conversation-member');
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chat_conversations",
|
||||
"info": {
|
||||
"singularName": "chat-conversation",
|
||||
"pluralName": "chat-conversations",
|
||||
"displayName": "ChatConversation",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"isGroup": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"creator": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"messages": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::chat-message.chat-message"
|
||||
},
|
||||
"users": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "plugin::users-permissions.user"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-conversation.chat-conversation');
|
||||
7
src/api/chat-conversation/routes/chat-conversation.ts
Normal file
7
src/api/chat-conversation/routes/chat-conversation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-conversation.chat-conversation');
|
||||
7
src/api/chat-conversation/services/chat-conversation.ts
Normal file
7
src/api/chat-conversation/services/chat-conversation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-conversation service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-conversation.chat-conversation');
|
||||
31
src/api/chat-message/content-types/chat-message/schema.json
Normal file
31
src/api/chat-message/content-types/chat-message/schema.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
src/api/chat-message/controllers/chat-message.ts
Normal file
7
src/api/chat-message/controllers/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::chat-message.chat-message');
|
||||
7
src/api/chat-message/routes/chat-message.ts
Normal file
7
src/api/chat-message/routes/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::chat-message.chat-message');
|
||||
7
src/api/chat-message/services/chat-message.ts
Normal file
7
src/api/chat-message/services/chat-message.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* chat-message service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::chat-message.chat-message');
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user