introduce the database and controller connections for all inbounds

This commit is contained in:
Sven Czarnian
2022-10-23 16:58:00 +02:00
parent 7a41dd0fb2
commit f69e365623
19 changed files with 849 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import {
PredictedWaypoint,
PredictedWaypointSchema,
} from './predictedwaypoint.model';
export type PlanningDocument = Planning & Document;
@Schema()
export class Planning {
@Prop({
required: true,
type: String,
})
arrivalRoute: string;
@Prop({
required: true,
type: String,
})
arrivalRunway: string;
@Prop({
required: true,
type: [PredictedWaypointSchema],
})
plannedRoute: PredictedWaypoint[];
@Prop({
required: true,
type: Boolean,
})
fixedPlan: boolean;
}
export const PlanningSchema = SchemaFactory.createForClass(Planning);