mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-13 00:26:55 -05:00
22 lines
404 B
JavaScript
22 lines
404 B
JavaScript
|
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);
|