summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/schema
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/models/schema')
-rw-r--r--packages/backend/src/models/schema/messaging-message.ts73
-rw-r--r--packages/backend/src/models/schema/user.ts4
2 files changed, 0 insertions, 77 deletions
diff --git a/packages/backend/src/models/schema/messaging-message.ts b/packages/backend/src/models/schema/messaging-message.ts
deleted file mode 100644
index b1ffa45955..0000000000
--- a/packages/backend/src/models/schema/messaging-message.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-export const packedMessagingMessageSchema = {
- type: 'object',
- properties: {
- id: {
- type: 'string',
- optional: false, nullable: false,
- format: 'id',
- example: 'xxxxxxxxxx',
- },
- createdAt: {
- type: 'string',
- optional: false, nullable: false,
- format: 'date-time',
- },
- userId: {
- type: 'string',
- optional: false, nullable: false,
- format: 'id',
- },
- user: {
- type: 'object',
- ref: 'UserLite',
- optional: true, nullable: false,
- },
- text: {
- type: 'string',
- optional: false, nullable: true,
- },
- fileId: {
- type: 'string',
- optional: true, nullable: true,
- format: 'id',
- },
- file: {
- type: 'object',
- optional: true, nullable: true,
- ref: 'DriveFile',
- },
- recipientId: {
- type: 'string',
- optional: false, nullable: true,
- format: 'id',
- },
- recipient: {
- type: 'object',
- optional: true, nullable: true,
- ref: 'UserLite',
- },
- groupId: {
- type: 'string',
- optional: false, nullable: true,
- format: 'id',
- },
- group: {
- type: 'object',
- optional: true, nullable: true,
- ref: 'UserGroup',
- },
- isRead: {
- type: 'boolean',
- optional: true, nullable: false,
- },
- reads: {
- type: 'array',
- optional: true, nullable: false,
- items: {
- type: 'string',
- optional: false, nullable: false,
- format: 'id',
- },
- },
- },
-} as const;
diff --git a/packages/backend/src/models/schema/user.ts b/packages/backend/src/models/schema/user.ts
index 1fc9352539..c390018b46 100644
--- a/packages/backend/src/models/schema/user.ts
+++ b/packages/backend/src/models/schema/user.ts
@@ -311,10 +311,6 @@ export const packedMeDetailedOnlySchema = {
type: 'boolean',
nullable: false, optional: false,
},
- hasUnreadMessagingMessage: {
- type: 'boolean',
- nullable: false, optional: false,
- },
hasUnreadNotification: {
type: 'boolean',
nullable: false, optional: false,