database and backend for recipe_ingredients and recipe_steps

This commit is contained in:
fred 2025-07-08 17:26:02 -07:00
parent 6af9d8619f
commit 5898ac7779
4 changed files with 61 additions and 11 deletions

View file

@ -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);