full
This commit is contained in:
@@ -27,6 +27,27 @@ const notificationSchema = new mongoose.Schema({
|
||||
read: {
|
||||
type: Boolean,
|
||||
default: false // وضعیت خوانده شده یا نشده
|
||||
},
|
||||
actor_id: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'User',
|
||||
required: false
|
||||
},
|
||||
// فقط برای اعلانهای همگانی پنل — جدا از read (که یعنی صفحه اعلانها باز شده)،
|
||||
// seen یعنی پوش واقعاً به دستگاه رسیده و clicked یعنی کاربر روش ضربه زده
|
||||
broadcast_id: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'AdminBroadcast',
|
||||
required: false,
|
||||
index: true
|
||||
},
|
||||
push_delivered_seen: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
push_clicked: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user