From 380742ad7722e8b3f38173a4d49b4f5f1a4913d7 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Tue, 26 May 2026 22:45:29 +0200 Subject: [PATCH] added model and migration for jobs --- app/Models/PhotoJob.php | 10 +++++++ ...6_05_26_200632_create_photo_jobs_table.php | 29 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 app/Models/PhotoJob.php create mode 100644 database/migrations/2026_05_26_200632_create_photo_jobs_table.php diff --git a/app/Models/PhotoJob.php b/app/Models/PhotoJob.php new file mode 100644 index 0000000..7df7754 --- /dev/null +++ b/app/Models/PhotoJob.php @@ -0,0 +1,10 @@ +id(); + $table->string('image_path'); + $table->string('status')->default('pending'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('photo_jobs'); + } +};