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/qmi-cloud-common/models/Notification.js
2023-05-09 16:23:45 +02:00

26 lines
470 B
JavaScript

const mongoose = require('mongoose');
const sc = new mongoose.Schema({
created: {
type: Date,
default: Date.now,
index : true
},
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)