{"size": 357, "ext": "js", "max_stars_repo_path": "src/models/chatsM.js", "max_stars_repo_name": "camquipc/chat-real-time-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/models/chatsM.js", "max_issues_repo_name": "camquipc/chat-real-time-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/models/chatsM.js", "max_forks_repo_name": "camquipc/chat-real-time-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.7894736842, "max_line_length": 55, "alphanum_fraction": 0.649859944}
const mongoose = require("mongoose");
const Usuario = require('./usersM');
const Schema = mongoose.Schema;



//modelo simple de la sala de chat
const Chat = new Schema({

    message: { type:String , require: true },
    userId : { type: Schema.ObjectId, ref: "Usuario" },
    
},
{
   timestamps: true
});

 
module.exports = mongoose.model("Chat", Chat);