Update Company and Item models to have image as nullable field.

This commit is contained in:
2023-06-18 11:23:57 +03:00
parent 70f2173976
commit 07a5ec44cc
2 changed files with 2 additions and 2 deletions
@@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->string('uuid');
$table->string('name');
$table->string('image');
$table->string('image')->nullable();
$table->string('description');
$table->timestamps();
});
@@ -19,7 +19,7 @@ return new class extends Migration
$table->string('url');
$table->string('description');
$table->decimal('price', 8, 2);
$table->string('image');
$table->string('image')->nullable();
$table->foreign('category_id')->references('id')
->on('categories')->onDelete('cascade');