add all waypoints of the arrival routes
This commit is contained in:
@@ -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],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user