feat(emoji): 管理用のカスタム絵文字フィールドの追加 (MisskeyIO#397)

This commit is contained in:
まっちゃとーにゅ 2024-02-01 10:22:51 +09:00 committed by GitHub
parent c4cc9dae87
commit 8befa531a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 168 additions and 23 deletions

View file

@ -76,6 +76,16 @@ export class MiEmoji {
})
public isSensitive: boolean;
@Column('varchar', {
length: 1024, nullable: true,
})
public requestedBy: string | null;
@Column('varchar', {
length: 8192, default: '',
})
public memo: string | null;
// TODO: 定期ジョブで存在しなくなったロールIDを除去するようにする
@Column('varchar', {
array: true, length: 128, default: '{}',

View file

@ -60,6 +60,16 @@ export const packedEmojiDetailedSchema = {
optional: false, nullable: false,
format: 'id',
},
createdAt: {
type: 'string',
optional: true, nullable: false,
format: 'date-time',
},
updatedAt: {
type: 'string',
optional: true, nullable: true,
format: 'date-time',
},
aliases: {
type: 'array',
optional: false, nullable: false,
@ -98,6 +108,14 @@ export const packedEmojiDetailedSchema = {
type: 'boolean',
optional: false, nullable: false,
},
requestedBy: {
type: 'string',
optional: true, nullable: true,
},
memo: {
type: 'string',
optional: true, nullable: true,
},
roleIdsThatCanBeUsedThisEmojiAsReaction: {
type: 'array',
optional: true, nullable: false,