database and backend for recipe_ingredients and recipe_steps
This commit is contained in:
parent
6af9d8619f
commit
5898ac7779
4 changed files with 61 additions and 11 deletions
|
@ -25,7 +25,7 @@ exports.up = function (knex) {
|
|||
table.increments('id').primary();
|
||||
table.integer('recipe_id');
|
||||
table.integer('step_number');
|
||||
table.string('instructions');
|
||||
table.string('instruction');
|
||||
table.unique(['recipe_id', 'step_number']);
|
||||
table.index(['recipe_id'])
|
||||
table.timestamps(true, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue