Notif system
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const notificationSchema = new mongoose.Schema(
|
||||
{
|
||||
userID: {
|
||||
type: String,
|
||||
ref: 'UserGPS'
|
||||
},
|
||||
content: String,
|
||||
read: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("Notification", notificationSchema);
|
||||
Reference in New Issue
Block a user