import: working solution

This commit is contained in:
muerwre 2018-12-06 18:36:28 +07:00
parent aa581b1a77
commit fc5b6009cb
8 changed files with 257 additions and 13 deletions

View file

@ -1,5 +1,4 @@
const mongoose = require('mongoose');
const { Schema } = mongoose;
// Schemas
@ -17,6 +16,7 @@ const UserSchema = new Schema(
first_name: { type: String },
last_name: { type: String },
photo: { type: String },
version: { type: Number, default: 2 },
routes: [{ type: Schema.Types.ObjectId, ref: 'Route' }]
},
{