Skip to content
Snippets Groups Projects
Commit 68996213 authored by adyanf's avatar adyanf
Browse files

add chat models

parent 6b8fa9cc
1 merge request!43KIA -13515016 - Kevin Erdiza Yogatama
var mongoose = require("mongoose");
var chatSchema = new mongoose.Schema({
idUser : Number,
idDriver : Number,
history : [
{
from : Number,
to : Number,
message : String
}
]
});
module.exports = mongoose.model("Chat", chatSchema);
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment