Files
misskey/packages/backend/src/models/schema/muting.ts
2022-01-14 19:55:09 +09:00

28 lines
510 B
TypeScript

export const packedMutingSchema = {
type: 'object',
optional: false, nullable: false,
properties: {
id: {
type: 'string',
optional: false, nullable: false,
format: 'id',
example: 'xxxxxxxxxx',
},
createdAt: {
type: 'string',
optional: false, nullable: false,
format: 'date-time',
},
muteeId: {
type: 'string',
optional: false, nullable: false,
format: 'id',
},
mutee: {
type: 'object',
optional: false, nullable: false,
ref: 'User',
},
},
} as const;