uLicense/uLicense-1.2.6/dashboard/models/licensehistoryModel.js

57 lines
738 B
JavaScript
Raw Normal View History

2022-09-15 04:43:05 +02:00
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);