# ContactFailedreason
# altes contactfailedreason-Pivot
es gab kein altes contactfailedreason model.
# neues ContactFailedreason-Pivot
Anmerkung:
- 🆕
- es gibt die extra Spalte
commentfür einen Freitext bei gescheitertem Kontakt
Beziehungen:
pivot-model für die Beziehung zwischen Contact & Failedreason
public function up()
{
Schema::create('contact_failedreason', function (Blueprint $table) {
$table->unsignedBigInteger('id')->index();
$table->foreignUuid('contact_id')->index()->constrained()->onDelete('cascade');
$table->foreignUuid('failedreason_id')->index()->constrained()->onDelete('cascade');
$table->string('comment');
$table->timestamps();
$table->softDeletes();
});
}
# übergeordnetes Thema
2.6 Datenstruktur