V2.1: Kommunikation nach Medium, Absicht und Wirkung (Fälle E/F)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8442d0a3d8
commit
8026eceab4
13 files changed
+633
-2
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
/**
|
||||
* V2.1 (docs/Prozessarchitektur/V2.1/02 §6): medium, intent and the decision of a message are kept next to it; existing
|
||||
* rows are e-mails. The landlord's narrowing of the communication rules is a column of the tenant.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('inbound_messages', function (Blueprint $table) {
|
||||
$table->string('medium', 20)->default('email')->after('message_id');
|
||||
$table->string('intent', 30)->nullable();
|
||||
$table->json('decision')->nullable();
|
||||
});
|
||||
Schema::table('tenants', function (Blueprint $table) {
|
||||
$table->json('communication_rules')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('tenants', function (Blueprint $table) {
|
||||
$table->dropColumn('communication_rules');
|
||||
});
|
||||
Schema::table('inbound_messages', function (Blueprint $table) {
|
||||
$table->dropColumn(['medium', 'intent', 'decision']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user