add all waypoints of the arrival routes

This commit is contained in:
Sven Czarnian
2022-10-23 13:36:10 +02:00
parent a21eddda93
commit 229c11915b
7 changed files with 131 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { Constraint, ConstraintSchema } from './constraint.model';
import { Waypoint, WaypointSchema } from './waypoint.model';
export type ArrivalRouteDocument = ArrivalRoute & Document;
@@ -18,6 +19,12 @@ export class ArrivalRoute {
})
runway: string;
@Prop({
required: true,
type: [WaypointSchema],
})
waypoints: Waypoint[];
@Prop({
type: [ConstraintSchema],
})