legal/web: Zustimmungsgate je Dokumentversion (aus bis AGB 0.7), OG-Variante mit eingebranntem Bildnachweis, Nachweis in Teasern (Bildkennzeichnung Blöcke G und H)
- legal_document_acceptances (insert-only), LegalAcceptanceGate, Pflicht-Schalter im Einreichungs-Modal über den gemeinsamen Trait; API: GET/POST /api/v1/legal/acceptances, submit antwortet 428 mit den geforderten Fassungen; LEGAL_ACCEPTANCE_GATE - ImageService: og-Variante (1200×630) mit halbtransparentem Balken und Inter SemiBold, regenerateOgVariant() für Korrekturen und Bestand; Fokuspunkt/Letterbox getestet - Uploader brennt den Nachweis beim Upload ein, ImageCorrectionService baut die OG-Variante nach einer Korrektur neu; Artikelseite nutzt og für og:image - Teaser: Nachweis in alt/title (Feed, Hero, Kategorie, Newsroom), Unterschrift am Hero-Bild; PressRelease::cardImageCredit() Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
b5b70416f2
commit
075d0d931f
27 changed files with 866 additions and 15 deletions
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* Zustimmungsgate (Bildkennzeichnung Block G, Decision-Update E12/S12):
|
||||
* Wer welche Fassung von AGB und Richtlinien wann aktiv angenommen hat.
|
||||
* Insert-only; eine neue Fassung verlangt eine neue Annahme. Die
|
||||
* bestehenden booking_confirmations bleiben unverändert daneben.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('legal_document_acceptances', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
||||
$table->foreignId('legal_document_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->string('type', 30);
|
||||
$table->string('version', 10);
|
||||
$table->string('context', 20);
|
||||
$table->string('ip_hmac', 80)->nullable();
|
||||
$table->string('user_agent', 255)->nullable();
|
||||
$table->timestamp('accepted_at');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
|
||||
$table->index(['user_id', 'type', 'version'], 'lda_user_type_version_idx');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('legal_document_acceptances');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue