Please enable JavaScript.
Coggle requires JavaScript to display documents.
server.js, NO Update feature for now - Coggle Diagram
server.js
Model
UserModel
name:{type:String,required:true.},
password: {type:String,required:true},
Meeting: [{ref:"meetingmodal"}]
meetingModel.js
type: {enum: ["classroom","meeting"];
start: {
type:Number}
,end: {
type:Number}
name: {
type:String,
required:true},
startedBy: {
type:SchemaTypes.ObjectId,required:true}
controller
meetingController
createMeeting req type,start,end,startedBy,name
deleteMeeting req meetingId
-
userController
createUser req name,password
getMeetingByuserId req userId res list of meetingObjects
addMeeting req meetingId , userId
-
redis
{"meetingId": [{userdata}]},
-
-