- Fix: Notifiable-Trait zum User-Model hinzugefuegt (behebt notify()-500er) - Installer: SMTP-Verbindungstest mit EsmtpTransport + Ueberspringen-Link - Admin: Neuer E-Mail-Tab mit SMTP-Konfiguration + Verbindungstest - Admin: Lazy Quill-Initialisierung (nur sichtbare Locale wird geladen) - Uebersetzungen: 17 neue Mail-Keys in allen 6 Sprachen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.3 KiB
PHP
Executable File
39 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('events', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('team_id')->constrained('teams')->restrictOnDelete();
|
|
$table->string('type', 20);
|
|
$table->string('title');
|
|
$table->dateTime('start_at');
|
|
$table->dateTime('end_at')->nullable();
|
|
$table->string('status', 20)->default('published');
|
|
$table->string('location_name')->nullable();
|
|
$table->string('address_text', 500)->nullable();
|
|
$table->decimal('location_lat', 10, 7)->nullable();
|
|
$table->decimal('location_lng', 10, 7)->nullable();
|
|
$table->text('description_html')->nullable();
|
|
$table->foreignId('created_by')->constrained('users')->restrictOnDelete();
|
|
$table->foreignId('updated_by')->nullable()->constrained('users')->nullOnDelete();
|
|
$table->timestamps();
|
|
|
|
$table->index(['team_id', 'start_at']);
|
|
$table->index('start_at');
|
|
$table->index('status');
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('events');
|
|
}
|
|
};
|