1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-10 23:53:31 -05:00
shimapan/app/models/Upload.js

14 lines
273 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
},
oname: String,
date: Date,
file: Object
});
module.exports = mongoose.model('Upload', UploadSchema);