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/Subscription.js
Manuel Romero 89c431d651 fix
2020-05-22 13:43:40 +02:00

37 lines
696 B
JavaScript

const mongoose = require('mongoose')
mongoose.set('useFindAndModify', false);
//mongoose.set('debug', true)
const subSchema = new mongoose.Schema({
created: {
type: Date,
default: Date.now,
index : true
},
updated: {
type: Date,
default: Date.now
},
subsId: {
type: String,
required: true
},
description: {
type: String,
required: true
},
vnetExists: {
type: Boolean,
required: true,
default: false
},
subnetId: {
type: String
},
appGwSubnetId: {
type: String
}
});
module.exports = mongoose.model('Subscription', subSchema);