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/Subscription.js
Manuel Romero b1535d74a1 UI enhancements
2020-09-01 10:32:43 +02:00

46 lines
840 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
},
location: {
type: String
},
wafPolicyName: {
type: String
},
wafPolicyRgName: {
type: String
}
});
module.exports = mongoose.model('Subscription', subSchema);