add from to notification model (#14102)

This commit is contained in:
Pedro Guzman
2025-11-24 09:24:38 +01:00
committed by GitHub
parent 0cb12021ef
commit f67bfb9f92
9 changed files with 83 additions and 15 deletions

View File

@@ -6,6 +6,8 @@ export const Notification = model.define("notification", {
id: model.id({ prefix: "noti" }).primaryKey(),
// This can be an email, phone number, or username, depending on the channel.
to: model.text().searchable(),
// This can be an email, phone number, or username, depending on the channel.
from: model.text().searchable().nullable(),
channel: model.text(),
// The template name in the provider's system.
template: model.text().nullable(),