feat: 通報のカテゴリー化 (MisskeyIO#288)
This commit is contained in:
@@ -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', {
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user