1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-09-22 03:39:30 -04:00
shimapan/app/models/Key.js

22 lines
404 B
JavaScript
Raw Normal View History

2017-10-18 13:31:08 -04:00
var mongoose = require('mongoose');
var KeySchema = mongoose.Schema({
key: String,
identifier: {
type: String,
required: true
},
scope: [String],
uploadCount: {
type: Number,
default: 0
},
uploadSize: {
type: Number,
default: 0
},
username: String,
date: Date
});
module.exports = mongoose.model('Key', KeySchema);