introduce the database and controller connections for all inbounds
This commit is contained in:
37
src/inbound/models/planning.model.ts
Normal file
37
src/inbound/models/planning.model.ts
Normal 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);
|
||||
Reference in New Issue
Block a user