introduce the database and controller connections for all inbounds

This commit is contained in:
Sven Czarnian
2022-10-23 16:58:00 +02:00
parent 7a41dd0fb2
commit f69e365623
19 changed files with 849 additions and 4 deletions

View File

@@ -0,0 +1,42 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type AircraftDocument = Aircraft & Document;
@Schema()
export class Aircraft {
@Prop({
required: true,
type: String,
})
type: string;
@Prop({
required: true,
type: String,
enum: ['L', 'M', 'H', 'S'],
})
wtc: string;
@Prop({
required: true,
type: String,
enum: ['A', 'B', 'C', 'D', 'E', 'F'],
})
wakeRecat: string;
@Prop({
required: true,
type: Number,
})
engineCount: number;
@Prop({
required: true,
type: String,
enum: ['ELECTRIC', 'TURBOPROP', 'JET'],
})
engineType: string;
}
export const AircraftSchema = SchemaFactory.createForClass(Aircraft);