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

12 lines
356 B
JavaScript

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
module.exports.schema = new Schema({
message: {type: String, required: true},
date: {type: Number, required: true},
expires: {type: Number, required: true},
type: {type: String, default: "info"}
});
module.exports.model = mongoose.model('ImportantMessage', module.exports.schema);