performance.model.ts 832 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
  2. import { Document } from 'mongoose';
  3. import {
  4. PerformanceEntry,
  5. PerformanceEntrySchema,
  6. } from './performanceentry.model';
  7. export type PerformanceDocument = Performance & Document;
  8. @Schema()
  9. export class Performance {
  10. @Prop({
  11. type: String,
  12. required: true,
  13. })
  14. icaoCode: string;
  15. @Prop({
  16. required: true,
  17. type: PerformanceEntrySchema,
  18. })
  19. aboveFL240: PerformanceEntry;
  20. @Prop({
  21. required: true,
  22. type: PerformanceEntrySchema,
  23. })
  24. aboveFL100: PerformanceEntry;
  25. @Prop({
  26. required: true,
  27. type: PerformanceEntrySchema,
  28. })
  29. belowFL100: PerformanceEntry;
  30. @Prop({
  31. required: true,
  32. type: Number,
  33. })
  34. minimalApproachSpeed: number;
  35. }
  36. export const PerformanceSchema = SchemaFactory.createForClass(Performance);