mirror of
https://github.com/Foltik/Shimapan
synced 2024-12-10 21:48:03 -05:00
19 lines
360 B
JavaScript
19 lines
360 B
JavaScript
var mongoose = require('mongoose');
|
|
|
|
var UploadSchema = mongoose.Schema({
|
|
name: {
|
|
type: String,
|
|
unique: true,
|
|
required: true
|
|
},
|
|
views: {
|
|
type: Number,
|
|
default: 0
|
|
},
|
|
uploader: String,
|
|
uploadKey: String,
|
|
date: Date,
|
|
file: Object
|
|
});
|
|
|
|
module.exports = mongoose.model('Upload', UploadSchema); |