introduce a performance backend
This commit is contained in:
25
src/performance/models/performance.model.ts
Normal file
25
src/performance/models/performance.model.ts
Normal 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);
|
||||
Reference in New Issue
Block a user