Airport Schema Instructions

You are in charge of implementing the schema found in database-schema.png. You will implement the database using SQL. After it, you will drop the database and implement it again using Sequelize.

Before you start, create a user called “airports_app” with a password and CREATEDB privileges.

const { Airport, Flight, Airplane } = require('models');

Using the Sequelize query syntax, prepare three functions that will return the values specified in these queries:

- Find all Flights departing before July 1, 2020
- Find all airports, that have flights departing after before July 1, 2020
- Find the model of all planes that will be departing from the airport with airportCode 'YYC'