im profil kann ein nutzer nun seine daten exportieren. man kann seinen account löschen. nach 2 jahren werden inaktive accounts gelöscht, 1 monat vorher wird eine email geschickt. Hilfetexte und Legal Pages in der Guest PWA korrigiert und vom layout her optimiert (dark mode).
This commit is contained in:
@@ -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
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('data_exports', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('tenant_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->string('status', 32)->default('pending');
|
||||
$table->string('path')->nullable();
|
||||
$table->unsignedBigInteger('size_bytes')->nullable();
|
||||
$table->timestamp('expires_at')->nullable();
|
||||
$table->text('error_message')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['status']);
|
||||
$table->index(['expires_at']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('data_exports');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,42 @@
|
||||
<?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::table('tenants', function (Blueprint $table) {
|
||||
if (! Schema::hasColumn('tenants', 'anonymized_at')) {
|
||||
$table->timestamp('anonymized_at')->nullable()->after('last_activity_at');
|
||||
}
|
||||
|
||||
if (! Schema::hasColumn('tenants', 'pending_deletion_at')) {
|
||||
$table->timestamp('pending_deletion_at')->nullable()->after('anonymized_at');
|
||||
}
|
||||
|
||||
if (! Schema::hasColumn('tenants', 'deletion_warning_sent_at')) {
|
||||
$table->timestamp('deletion_warning_sent_at')->nullable()->after('pending_deletion_at');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
if (app()->environment('local', 'testing')) {
|
||||
Schema::table('tenants', function (Blueprint $table) {
|
||||
if (Schema::hasColumn('tenants', 'deletion_warning_sent_at')) {
|
||||
$table->dropColumn('deletion_warning_sent_at');
|
||||
}
|
||||
if (Schema::hasColumn('tenants', 'pending_deletion_at')) {
|
||||
$table->dropColumn('pending_deletion_at');
|
||||
}
|
||||
if (Schema::hasColumn('tenants', 'anonymized_at')) {
|
||||
$table->dropColumn('anonymized_at');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user