Git Product home page Git Product logo

u3_hw_sequelize_associations_and_migrations's Introduction

Sequelize Migrations and Associations

Getting Started

  • Fork and Clone
  • npm install
  • sequelize db:create
  • sequelize db:migrate

Instructions

We've provided you with 3 models:

  • Business
  • Employee
  • Address

Defining Associations

You must associate the models according to this ERD:

You'll need to create migrations to add the foreign key to the associated models.

Note: You'll want to update your models as well.

Once you've created and executed your migrations, run sequelize db:seed:all to check your work. If the seeds fail, your models are not associated correctly or a migration was not executed/defined correctly.

Querying

Once you've successfully seeded your database, work in queries.js. Follow the provided prompts in each function.

Run npm run test to check your work as you go.

Make sure to read the prompts carefully.

Submission

Pull requests are due next day following the PR Submission Guidelines

u3_hw_sequelize_associations_and_migrations's People

Contributors

anpato avatar dwu621 avatar nobodyslackey avatar gophereverett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.