57 lines
738 B
JavaScript
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);
|