summaryrefslogtreecommitdiff
path: root/workbench/database
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-01-18 20:32:33 +0000
committerSam Light <samlight1994@gmail.com>2025-01-18 20:32:33 +0000
commit9d30930460156a7e86cee2d4b8f0520e2086fac2 (patch)
tree9ab9ac2d89d1e6149d20ad1c1975d9fb173db136 /workbench/database
parent3dfb91da7ef8b1ab5322667fb7e407770fee79e1 (diff)
Create products table migration
Diffstat (limited to 'workbench/database')
-rw-r--r--workbench/database/migrations/2025_01_18_201725_create_products_table.php4
1 files changed, 4 insertions, 0 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 7c23f58..7ee7127 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
@@ -13,7 +13,11 @@ return new class extends Migration
{
Schema::create('products', function (Blueprint $table) {
$table->id();
+ $table->string('name');
+ $table->string('descripton');
+ $table->decimal('price', total: 8, places: 2);
$table->timestamps();
+ $table->softDeletes();
});
}