From 70fbc02918c056007d0069ad628304a896d70524 Mon Sep 17 00:00:00 2001 From: Dayamond Date: Tue, 14 Oct 2025 22:38:01 +0200 Subject: [PATCH] Migrations --- .../2025_10_13_213713_create_jobs_table.php | 32 +++++++++++++++++++ .../2025_10_13_215246_create_users_table.php | 30 +++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 database/migrations/2025_10_13_213713_create_jobs_table.php create mode 100644 database/migrations/2025_10_13_215246_create_users_table.php diff --git a/database/migrations/2025_10_13_213713_create_jobs_table.php b/database/migrations/2025_10_13_213713_create_jobs_table.php new file mode 100644 index 0000000..6098d9b --- /dev/null +++ b/database/migrations/2025_10_13_213713_create_jobs_table.php @@ -0,0 +1,32 @@ +bigIncrements('id'); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + } +}; diff --git a/database/migrations/2025_10_13_215246_create_users_table.php b/database/migrations/2025_10_13_215246_create_users_table.php new file mode 100644 index 0000000..1325688 --- /dev/null +++ b/database/migrations/2025_10_13_215246_create_users_table.php @@ -0,0 +1,30 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->string('password'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('users'); + } +};