mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-14 08:49:51 -05:00
14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
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); |