feat(admin): add internal notes to reports (#3510)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-17 05:50:33 +02:00
1 parent 2d8d130be1
commit 49a1ffabbe
30 files changed
+1138 -87

No files matched your search

+8
View File
@@ -245,7 +245,9 @@ import {
type DSAReportTicketRow,
GUILD_REPORT_SUBMISSION_BY_REPORTER_COLUMNS,
type GuildReportSubmissionByReporterRow,
IAR_REPORT_NOTE_COLUMNS,
IAR_SUBMISSION_COLUMNS,
type IARReportNoteRow,
type IARSubmissionRow,
MESSAGE_REPORT_SUBMISSION_BY_REPORTER_COLUMNS,
type MessageReportSubmissionByReporterRow,
@@ -941,6 +943,12 @@ export const IARSubmissions = defineTable<IARSubmissionRow, 'report_id'>({
columns: IAR_SUBMISSION_COLUMNS,
primaryKey: ['report_id'],
});
export const IARReportNotes = defineTable<IARReportNoteRow, 'report_id' | 'note_id', 'report_id'>({
name: 'iar_report_notes',
columns: IAR_REPORT_NOTE_COLUMNS,
primaryKey: ['report_id', 'note_id'],
partitionKey: ['report_id'],
});
export const MessageReportSubmissionsByReporter = defineTable<
MessageReportSubmissionByReporterRow,
'reporter_id' | 'channel_id' | 'message_id',