changed quantity to float to allow for fractions and added recipe maintainer

This commit is contained in:
Beth Parker 2022-02-07 18:43:41 -06:00
parent d4391bd5ec
commit 1820587580
2 changed files with 4 additions and 2 deletions

View file

@ -16,13 +16,15 @@ class CreateRecipesTable extends Migration
Schema::create('recipes', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->unsignedInteger('maintainer');
$table->string('author');
$table->unsignedInteger('servings');
$table->datetime('date_entered');
$table->datetime('date_modified');
$table->longtext('instructions');
$table->timestamps();
$table->foreign('maintainer')->references('id')->on('users');
});
}

View file

@ -18,7 +18,7 @@ class CreateRecipeIngredientTable extends Migration
$table->unsignedInteger('recipe_id');
$table->unsignedInteger('ingredient_id');
$table->string('name');
$table->unsignedInteger('quantity');
$table->float('quantity');
$table->string('measurement');
$table->longText('special_notes');
$table->timestamps();