introduce a performance backend

This commit is contained in:
Sven Czarnian
2022-10-22 20:25:55 +02:00
parent 31c9739d38
commit 822709f577
14 changed files with 5346 additions and 33 deletions

View File

@@ -0,0 +1,25 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { PerformanceEntry } from './performanceentry.model';
export type PerformanceDocument = Performance & Document;
@Schema()
export class Performance {
@Prop({ required: true })
icaoCode: string;
@Prop({ required: true, type: PerformanceEntry })
aboveFL240: PerformanceEntry;
@Prop({ required: true, type: PerformanceEntry })
aboveFL100: PerformanceEntry;
@Prop({ required: true, type: PerformanceEntry })
belowFL100: PerformanceEntry;
@Prop({ required: true })
minimalApproachSpeed: number;
}
export const PerformanceSchema = SchemaFactory.createForClass(Performance);