Initialer Laravel Commit für BetiX
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

This commit is contained in:
2026-04-04 18:01:50 +02:00
commit 0280278978
374 changed files with 65210 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?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('kyc_documents', function (Blueprint $table) {
$table->id();
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
$table->string('category', 24); // identity | address | payment
$table->string('type', 32); // passport | driver_license | id_card | bank_statement | utility_bill | other
$table->string('status', 16)->default('pending'); // pending | approved | rejected
$table->string('rejection_reason', 255)->nullable();
$table->string('file_path');
$table->string('mime', 100);
$table->unsignedBigInteger('size');
$table->timestamp('submitted_at')->nullable();
$table->timestamp('reviewed_at')->nullable();
$table->foreignId('reviewed_by')->nullable()->constrained('users')->nullOnDelete();
$table->softDeletes();
$table->timestamps();
$table->index(['user_id', 'status']);
$table->index('category');
});
}
public function down(): void
{
Schema::dropIfExists('kyc_documents');
}
};