define the controller and service for the airport management
This commit is contained in:
27
src/airport/models/arrivalroute.model.ts
Normal file
27
src/airport/models/arrivalroute.model.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
||||
import { Document } from 'mongoose';
|
||||
import { Constraint, ConstraintSchema } from './constraint.model';
|
||||
|
||||
export type ArrivalRouteDocument = ArrivalRoute & Document;
|
||||
|
||||
@Schema()
|
||||
export class ArrivalRoute {
|
||||
@Prop({
|
||||
required: true,
|
||||
type: String,
|
||||
})
|
||||
arrival: string;
|
||||
|
||||
@Prop({
|
||||
required: true,
|
||||
type: String,
|
||||
})
|
||||
runway: string;
|
||||
|
||||
@Prop({
|
||||
type: [ConstraintSchema],
|
||||
})
|
||||
constraints: Constraint[];
|
||||
}
|
||||
|
||||
export const ArrivalRouteSchema = SchemaFactory.createForClass(ArrivalRoute);
|
||||
Reference in New Issue
Block a user