14 lines
291 B
JavaScript
14 lines
291 B
JavaScript
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);
|