Add the count field to Item model.

This commit is contained in:
2023-06-19 18:12:57 +03:00
parent 563254c725
commit ada0abd69d
2 changed files with 14 additions and 0 deletions
@@ -20,6 +20,7 @@ return new class extends Migration
$table->string('description');
$table->decimal('price', 8, 2);
$table->string('image')->nullable();
$table->bigInteger('count')->default(0);
$table->foreign('category_id')->references('id')
->on('categories')->onDelete('cascade');