Initial Version
This commit is contained in:
11
server/models/SocketMapping.js
Normal file
11
server/models/SocketMapping.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const mongoose = require('mongoose');
|
||||
const Schema = mongoose.Schema
|
||||
//later we have to do mapping through redis server
|
||||
const socketMappingSchema = new mongoose.Schema({
|
||||
user: {
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: "admin",
|
||||
},
|
||||
socketId: String
|
||||
});
|
||||
module.exports = mongoose.model('socketmapping', socketMappingSchema);
|
||||
Reference in New Issue
Block a user