<aside>

</aside>

Table notifications {
  id             uuid      [pk, note: 'Khóa chính của bản ghi thông báo gửi đến user']
  user_id        uuid      [not null, ref: > users.id, note: 'Người nhận thông báo']
  type_id        int       [not null, ref: > notification_types.id, note: 'Loại thông báo']
  title          varchar   [not null, note: 'Tiêu đề hiển thị của thông báo']
  message        text      [not null, note: 'Nội dung chi tiết thông báo (có thể chứa HTML hoặc markdown)']
  target_url     varchar   [note: 'Đường dẫn khi user click vào thông báo (URL trong hệ thống hoặc external)']
  is_read        bool      [default: false, note: 'Đánh dấu đã đọc/chưa đọc']
  created_at     timestamp [default: `now()`, note: 'Thời điểm tạo thông báo']
  read_at        timestamp [null, note: 'Thời điểm user đánh dấu đã đọc']
}

Create Notification Command

Mark Notification As Read Command

Remove Notification Command

List Notifications By User Query

Get Notification Detail Query

List Unread Notifications By User Query

Count Unread Notifications By User Query