Notif system

This commit is contained in:
Mr Swift
2024-09-28 23:00:10 +03:30
parent 8f63b82236
commit b1f792f493
8 changed files with 130 additions and 0 deletions
+17
View File
@@ -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);