Pixel Painter Schema + Migrations
Using your existing Pixel Painter project, we're going to upgrade it to use Express (if it isn't already).
In addition, intialize the project with
sequelize, to create the folders:
Now that we know a little bit about creating migrations, let's use Sequelize to create a couple migration files.
sequelize model:createto create model and migration files for a
- The only requirement for the
Drawingtable is that it must have a
datacolumn, with the data type
- After creating your migration files, create a
seedfolder and create a script to add atleast one drawing to your database! (remember to run migrations) before you seed your database.