<aside>

</aside>

Table notification_preferences {
  user_id        uuid      [pk, ref: > users.id, note: 'Người dùng tùy chỉnh']
  type_id        int       [pk, ref: > notification_types.id, note: 'Loại thông báo']
  via_email      bool      [default: true, note: 'Cho phép nhận qua email?']
  via_push       bool      [default: true, note: 'Cho phép nhận qua push notification?']
  via_sms        bool      [default: false, note: 'Cho phép nhận qua SMS?']
  updated_at     timestamp [default: `now()`, note: 'Thời điểm cập nhật cài đặt']
}

Create Notification Preference Command

Update Notification Preference Command

Get Notification Preferences By User Query

Get Notification Preference Detail Query