mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
import: working solution
This commit is contained in:
parent
aa581b1a77
commit
fc5b6009cb
8 changed files with 257 additions and 13 deletions
|
@ -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' }]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue