'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
  Schema = mongoose.Schema;

/**
 * Checkin Schema
 */
var CheckinSchema = new Schema({
  email: {
    type: String,
    required: 'Please fill email',
  },
  dateTimeIn: Date,
  dateTimeOut: Date,
  locationIn: String,
  locationOut: String,
  status: String,
  description: String,
  img: String,
  firstName: String,
  lastName: String,
  Lat: String,
  Long: String,
  remark: String,
  created: {
    type: Date,
    default: Date.now
  },
  user: {
    type: Schema.ObjectId,
    ref: 'User'
  }
});

mongoose.model('Checkin', CheckinSchema);

@@ -457,22 +457,53 @@
 remark: 
-String
+%7B%0A    in: String,%0A    out: String%0A  %7D
 ,%0A  crea

add remark