summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/schema
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-15 13:06:06 +0900
committerGitHub <noreply@github.com>2023-02-15 13:06:06 +0900
commit8f2049bcd261c3fb10afdc8c15cf4edffe1baa71 (patch)
treedc5aa1cefc24d3f6eb36bb1723d7433f8a19e5a2 /packages/backend/src/models/schema
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.tar.gz
sharkey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.tar.bz2
sharkey-8f2049bcd261c3fb10afdc8c15cf4edffe1baa71.zip
drop messaging (#9919)
* drop messaging (from backend) * wip
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,