Mails etc. in Lead finish
This commit is contained in:
parent
66ca252bfa
commit
b362b93bca
45 changed files with 1460 additions and 418 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue