Basic implementation of payment methods

This commit is contained in:
th.guenther committed 2026-07-28 16:09:38 +02:00
1 parent 6c9281516e
commit ab3d526217
13 files changed
+34 -15

No files matched your search

@@ -12,8 +12,11 @@ return new class extends Migration {
Schema::create('event_payment_methods', function (Blueprint $table) {
$table->id();
$table->foreignId('event_id')->constrained('events', 'id')->restrictOnDelete()->cascadeOnUpdate();
$table->foreignId('available_payment_method_id')->constrained('available_payment_methods', 'id')->restrictOnDelete()->cascadeOnUpdate();
$table->string('slug');
$table->timestamps();
$table->foreign('slug')->references('slug')->on('payment_methods')->restrictOnDelete()->cascadeOnUpdate();
$table->unique(['event_id', 'slug']);
});
}