const mongoose = require('mongoose'); const Schema = mongoose.Schema; const Photo = new Schema({ frame_id: Schema.ObjectId, contentType: String, user: Schema.ObjectId, photo: Buffer, // thumbnail: Buffer, timestamp: Number }); module.exports = mongoose.model('Photo', Photo);