Mails etc. in Lead finish

This commit is contained in:
Kevin Adametz 2021-05-11 17:07:20 +02:00
parent 66ca252bfa
commit b362b93bca
45 changed files with 1460 additions and 418 deletions

View file

@ -21,7 +21,7 @@ class CreateCustomerMailsTable extends Migration
$table->bigInteger('lead_id')->nullable();
$table->boolean('is_answer')->default(false);
$table->unsignedBigInteger('reply_id');
$table->unsignedBigInteger('reply_id')->nullable();
$table->string('email', 255);

View file

@ -20,7 +20,7 @@ class CreateCustomerFewoMailsTable extends Migration
$table->unsignedInteger('travel_user_id');
$table->boolean('is_answer')->default(false);
$table->unsignedInteger('reply_id');
$table->unsignedInteger('reply_id')->nullable();
$table->string('email', 255);

View file

@ -20,7 +20,7 @@ class CreateLeadMailsTable extends Migration
$table->bigInteger('customer_id');
$table->boolean('is_answer')->default(false);
$table->unsignedBigInteger('reply_id');
$table->unsignedBigInteger('reply_id')->nullable();
$table->string('email', 255);
@ -60,7 +60,7 @@ class CreateLeadMailsTable extends Migration
$table->foreign('reply_id')
->references('id')
->on('customer_mails')
->on('lead_mails')
->onDelete('CASCADE');
});
}

View file

@ -16,7 +16,7 @@ class CreateLeadFilesTable extends Migration
Schema::create('lead_files', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('lead_id');
$table->bigInteger('lead_id')->nullable();
$table->unsignedBigInteger('lead_mail_id')->nullable();
$table->string('identifier')->index();