register for sessions. photos with different settings, settings configurable

This commit is contained in:
DigitalInfinity committed 2026-05-30 14:46:56 +02:00
1 parent 5fd29ef5f3
commit 17c1c2a521
14 files changed
+515 -71

No files matched your search

@@ -0,0 +1,31 @@
<?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::table('photo_jobs', function (Blueprint $table) {
$table->foreignId('photo_session_id')->nullable()->constrained('photo_sessions')->nullOnDelete();
$table->foreignId('photo_setting_id')->nullable()->constrained('photo_settings')->nullOnDelete();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('photo_jobs', function (Blueprint $table) {
$table->dropForeign(['photo_session_id']);
$table->dropForeign(['photo_setting_id']);
$table->dropColumn(['photo_session_id', 'photo_setting_id']);
});
}
};
@@ -0,0 +1,29 @@
<?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('photo_sessions', function (Blueprint $table) {
$table->id();
$table->string('original_image_path');
$table->unsignedBigInteger('selected_job_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('photo_sessions');
}
};
@@ -0,0 +1,31 @@
<?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('photo_settings', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('gmic_command');
$table->integer('sort_order')->default(0);
$table->boolean('is_active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('photo_settings');
}
};