1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-28 05:26:44 -05:00
shimapan/app/models/Upload.js
2017-10-14 15:13:50 -04:00

18 lines
337 B
JavaScript

var mongoose = require('mongoose');
var UploadSchema = mongoose.Schema({
name: {
type: String,
unique: true,
required: true
},
views: {
type: Number,
default: 0
},
uploader: String,
date: Date,
file: Object
});
module.exports = mongoose.model('Upload', UploadSchema);