@@ -12,6 +12,7 @@ export type AirportDocument = Airport & Document;
export class Airport {
@Prop({
required: true,
+ index: true,
type: String,
})
icao: string;
@@ -7,12 +7,14 @@ export type LogEntryDocument = LogEntry & Document;
export class LogEntry {
component: string;
enum: ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
@@ -10,8 +10,9 @@ export type PerformanceDocument = Performance & Document;
@Schema()
export class Performance {
- type: String,
+ type: String,
icaoCode: string;