var mongoose = require("mongoose"); // connect Mongoose (MongoDB ODM library)
var Schema = mongoose.Schema; // create Mongoose Schema
//
mongoose.Promise = global.Promise;
// atm scheme definition
var ATMScheme = new Schema({
  bank: {
    type: String,
    required: true,
  },
  address: {
    type: String,
    required: true,
  },
  latitude: {
    type: Number,
    unique: true,
    required: true,
  },
  longitude: {
    type: Number,
    unique: true,
    required: true,
  },
  er: {
    values_list: {
      type: [Schema.ObjectId],
      ref: 'exchange_rate',
      required: true,
    },
    time: {
      type: Date,
      required: true,
    }
  }
});

module.exports = mongoose.model('ATM', ATMScheme); // export model

@@ -72,16 +72,49 @@
 brary)%0D%0A
+var moment = require(%22moment%22);%0D%0A
 var Sche
@@ -162,16 +162,53 @@
 Schema%0D%0A
+// set region%0D%0Amoment.locale('ru');%0D%0A
 //%0D%0Among
@@ -723,12 +723,14 @@
 pe: 
-Date
+String
 ,%0D%0A 
@@ -770,16 +770,150 @@
 %0A%7D);%0D%0A%0D%0A
+ATMScheme%0D%0A.virtual('currencies_rate_time_formatted')%0D%0A.get(function () %7B%0D%0A  return moment(this.er.time, 'HH:mm DD.MM.YYYY');%0D%0A%7D);%0D%0A%0D%0A
 module.e

Add time value