Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

message.model.js 326B

1234567891011
  1. const mongoose = require('mongoose');
  2. const MessageSchema = mongoose.Schema({
  3. _id: String,
  4. subject: { type: String, required: true },
  5. message: { type: String, required: true },
  6. user: { type: String, required: true },
  7. tag: {type: [String] },
  8. });
  9. module.exports = mongoose.model('Message', MessageSchema);