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
|
@ -11,11 +11,12 @@ const RouteSchema = new Schema(
|
|||
route: { type: Array, default: [] },
|
||||
stickers: { type: Array, default: [] },
|
||||
owner: { type: Schema.Types.ObjectId, ref: 'User' },
|
||||
logo: { type: String, default: 'DEFAULT' },
|
||||
distance: { type: Number, default: 0 },
|
||||
public: { type: Boolean, default: true },
|
||||
created_at: { type: Date, default: Date.now() },
|
||||
updated_at: { type: Date, default: Date.now() },
|
||||
logo: { type: String, default: 'DEFAULT' },
|
||||
map_style: { type: String, default: 'DEFAULT' },
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
@ -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