- 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>
32 lines
958 B
PHP
32 lines
958 B
PHP
<?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('files', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('file_category_id')->constrained('file_categories')->cascadeOnDelete();
|
|
$table->string('original_name');
|
|
$table->string('stored_name');
|
|
$table->string('mime_type', 100);
|
|
$table->unsignedBigInteger('size');
|
|
$table->string('disk', 20)->default('private');
|
|
$table->foreignId('uploaded_by')->constrained('users')->cascadeOnDelete();
|
|
$table->timestamps();
|
|
|
|
$table->index('file_category_id');
|
|
$table->index('uploaded_by');
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('files');
|
|
}
|
|
};
|