summaryrefslogtreecommitdiff
path: root/workbench/database/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'workbench/database/migrations')
-rw-r--r--workbench/database/migrations/2025_01_18_201725_create_products_table.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/workbench/database/migrations/2025_01_18_201725_create_products_table.php b/workbench/database/migrations/2025_01_18_201725_create_products_table.php
index 7ee7127..4396485 100644
--- a/workbench/database/migrations/2025_01_18_201725_create_products_table.php
+++ b/workbench/database/migrations/2025_01_18_201725_create_products_table.php
@@ -14,8 +14,9 @@ return new class extends Migration
Schema::create('products', function (Blueprint $table) {
$table->id();
$table->string('name');
- $table->string('descripton');
+ $table->string('description');
$table->decimal('price', total: 8, places: 2);
+ $table->unsignedInteger('stock');
$table->timestamps();
$table->softDeletes();
});