framez-server/Server/Schemas/Photo.js

15 lines
291 B
JavaScript
Raw Normal View History

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);