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: config, migrations, and models.
Now that we know a little bit about creating migrations, let's use Sequelize to create a couple migration files.
- Using
sequelize model:createto create model and migration files for aDrawingtable. - The only requirement for the
Drawingtable is that it must have adatacolumn, with the data typejson. - 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.