システム管理者から全組織・全ユーザーに向けたお知らせの発信・受信・既読管理を行う機能。
運営(システム管理者)が、メンテナンス告知・機能追加・重要なご連絡などを 全ユーザーに一斉に届けるための機能。特定の組織やユーザーに絞った配信は行わない。
| アクター | アプリ | 役割 |
|---|---|---|
| システム管理者 | system-manager | お知らせの作成・編集・削除(発信) |
| ユーザー | user | 公開中お知らせの閲覧・既読(受信) |
| 組織管理者 | organization-manager | 公開中お知らせの閲覧・既読(受信) |
| (対象外) | www | お知らせ表示なし |
SystemNotification
prisma/schema/system-notification.prisma
title タイトルbody 本文(JSON / 段落・画像のリッチテキスト)publishedAt? 公開開始日(null=未公開)expiredAt? 公開終了日(null=無期限)deletedAt? 論理削除SystemNotificationRead
prisma/schema/system-notification-read.prisma
systemNotificationId お知らせIDuserId ユーザーIDdeletedAt is null かつ
publishedAt <= now かつ
(expiredAt is null または
expiredAt > now)。apps/user/actions/system-notification/list-system-notification.ts
— { isRead?: boolean } で未読/既読を絞り込み可能apps/user/actions/system-notification-read/create-system-notification-read.ts.../system-notifications/[systemNotificationId]/_components/published/_components/mark-as-read/index.tsxapps/system-manager/actions/system-notification/*