feat: 通報のカテゴリー化 (MisskeyIO#288)

This commit is contained in:
CyberRex
2023-12-28 12:16:34 +09:00
committed by GitHub
parent 8a8196aa09
commit 1478a6c4ba
10 changed files with 171 additions and 9 deletions

View File

@@ -67,6 +67,13 @@ export class MiAbuseUserReport {
})
public comment: string;
@Index()
@Column('varchar', {
length: 20, nullable: false,
default: 'other',
})
public category: string;
//#region Denormalized fields
@Index()
@Column('varchar', {

View File

@@ -12,6 +12,10 @@ export const packedAbuseUserReportSchema = {
format: 'id',
example: 'xxxxxxxxxx',
},
category: {
type: 'string',
optional: false, nullable: false,
},
createdAt: {
type: 'string',
optional: false, nullable: false,