feat: 通報のカテゴリー化 (MisskeyIO#288)
This commit is contained in:
parent
8a8196aa09
commit
1478a6c4ba
10 changed files with 171 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue