1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-03 10:59:13 -05:00
shimapan/app/models/Upload.js

19 lines
360 B
JavaScript
Raw Normal View History

2017-10-09 22:01:02 -04:00
var mongoose = require('mongoose');
var UploadSchema = mongoose.Schema({
name: {
type: String,
unique: true,
required: true
},
2017-10-14 15:13:50 -04:00
views: {
type: Number,
default: 0
},
uploader: String,
2017-10-22 12:19:51 -04:00
uploadKey: String,
2017-10-09 22:01:02 -04:00
date: Date,
file: Object
});
module.exports = mongoose.model('Upload', UploadSchema);