uLicense/uLicense-1.2.6/dashboard/models/licensehistoryModel.js
2022-09-15 03:43:05 +01:00

57 lines
738 B
JavaScript

const mongoose = require('mongoose');
const licensehistorySchema = new mongoose.Schema({
year: {
type: Number,
},
january: {
type: Number,
default: 0,
},
february: {
type: Number,
default: 0,
},
march: {
type: Number,
default: 0,
},
april: {
type: Number,
default: 0,
},
may: {
type: Number,
default: 0,
},
june: {
type: Number,
default: 0,
},
july: {
type: Number,
default: 0,
},
august: {
type: Number,
default: 0,
},
september: {
type: Number,
default: 0,
},
october: {
type: Number,
default: 0,
},
november: {
type: Number,
default: 0,
},
december: {
type: Number,
default: 0,
},
});
module.exports = mongoose.model('Licensehistory', licensehistorySchema);