This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/server/models/Notification.js
Manuel Romero 356e1a3827 Notifications
2020-04-16 17:01:35 +02:00

28 lines
520 B
JavaScript

const mongoose = require('mongoose');
mongoose.set('useFindAndModify', false);
//mongoose.set('debug', true)
const sc = new mongoose.Schema({
created: {
type: Date,
default: Date.now
},
updated: {
type: Date,
default: Date.now
},
type: {
type: String
},
message: {
type: String
},
provision: {
type: mongoose.Types.ObjectId, ref: 'Provision',
index: true
}
});
module.exports = mongoose.model('Notification', sc)