This repository has been archived on 2026-05-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
chatless/backend/service-privateroom/models/Message.js
2021-05-30 20:55:00 +02:00

21 lines
No EOL
407 B
JavaScript

const mongoose = require("mongoose")
const MessageSchema = new mongoose.Schema(
{
conversationId: {
type: String
},
sender: {
type: String
},
text: {
type: String
},
date:{
type: Date,
},
},
{ timestamps: true }
);
module.exports = mongoose.model("PrivatedMessage", MessageSchema);