1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-10 15:48:27 -05:00

Remove redundant info in Upload model

This commit is contained in:
Jack Foltz 2018-07-26 16:51:27 -04:00
parent 4887771996
commit 827c4cdbfa
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -1,11 +1,6 @@
var mongoose = require('mongoose');
var UploadSchema = mongoose.Schema({
name: {
type: String,
required: true
},
id: {
type: String,
unique: true,
@ -31,12 +26,7 @@ var UploadSchema = mongoose.Schema({
type: Date,
default: Date.now
},
mime: {
type: String,
required: true,
},
file: {
type: Object,
required: true