feat: お知らせの確認待機時間・優先順位機能

b7fd6bf33a835fd73c2a86eb007074d3680f6efd によるリワーク

This reverts commit eeef3965b7
This reverts commit 04fefb2056
This reverts commit 576251200f
This commit is contained in:
まっちゃとーにゅ
2023-08-19 04:48:28 +09:00
parent 3c2b83c3ae
commit 6893e5d60b
27 changed files with 832 additions and 264 deletions

View File

@@ -60,12 +60,26 @@ export class Announcement {
})
public needConfirmationToRead: boolean;
@Column('integer', {
nullable: false,
default: 0,
})
public closeDuration: number;
@Index()
@Column('boolean', {
default: true,
})
public isActive: boolean;
// UIに表示する際の並び順用(大きいほど先頭)
@Index()
@Column('integer', {
nullable: false,
default: 0,
})
public displayOrder: number;
@Index()
@Column('boolean', {
default: false,

View File

@@ -50,6 +50,14 @@ export const packedAnnouncementSchema = {
type: 'boolean',
optional: false, nullable: false,
},
closeDuration: {
type: 'number',
optional: false, nullable: false,
},
displayOrder: {
type: 'number',
optional: false, nullable: false,
},
isRead: {
type: 'boolean',
optional: true, nullable: false,