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.php27
1 files changed, 27 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
new file mode 100644
index 0000000..7c23f58
--- /dev/null
+++ b/workbench/database/migrations/2025_01_18_201725_create_products_table.php
@@ -0,0 +1,27 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ Schema::create('products', function (Blueprint $table) {
+ $table->id();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('products');
+ }
+};