'use strict' const mongoose = require('mongoose') const PomodoroSchema = new mongoose.Schema({ startTime: { type: Date, required: true }, endTime: { type: Date, required: true }, name: String, location: String, user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }, ip: { type: String, required: true }, userAgent: { type: String, required: true }, }) module.exports = mongoose.model('Pomodoro', PomodoroSchema)