Mails, Strono, filter

This commit is contained in:
Kevin Adametz 2020-03-26 09:48:19 +01:00
parent f53f17f9c1
commit 62e84637b6
99 changed files with 2409 additions and 474 deletions

View file

@ -22,7 +22,7 @@ class CreateBookingTable extends Migration
$table->date('booking_date')->nullable();
$table->bigInteger('customer_id');
$table->bigInteger('lead_id')->nullable();
$table->tinyInteger('new_drafts')->nullable();
$table->tinyInteger('new_drafts')->nullable()->default(0);
$table->integer('sf_guard_user_id');
$table->bigInteger('branch_id');
$table->decimal('service_fee', 10, 2)->nullable()->default(0.00);
@ -30,13 +30,11 @@ class CreateBookingTable extends Migration
$table->bigInteger('travel_category_id')->nullable();
$table->bigInteger('pax')->nullable();
$table->bigInteger('coupon_id')->nullable();
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->string('title', 255)->nullable();
$table->date('start_date')->nullable();
$table->date('end_date')->nullable();
$table->bigInteger('website_id')->nullable();
$table->string('travel_number', 30)->nullable();
$table->string('travel_number', 80)->nullable();
$table->string('participant_name', 255)->nullable();
$table->string('participant_firstname', 255)->nullable();
$table->date('participant_birthdate')->nullable();
@ -45,12 +43,22 @@ class CreateBookingTable extends Migration
$table->string('merlin_knr', 255)->nullable();
$table->string('merlin_order_number', 255)->nullable();
$table->bigInteger('travel_company_id')->nullable();
$table->tinyInteger('travel_documents')->nullable()->default(0);
$table->decimal('canceled', 5, 2)->nullable()->default(0.00);
$table->decimal('price', 10, 2)->nullable();
$table->decimal('price_canceled', 10, 2)->nullable();
$table->decimal('price_total', 10, 2)->nullable();
$table->decimal('deposit_total', 10, 2)->nullable();
$table->decimal('final_payment', 10, 2)->nullable();
$table->date('final_payment_date')->nullable();
$table->bigInteger('travelagenda_id')->nullable();
$table->tinyInteger('paying_out')->nullable()->default(0);
$table->tinyInteger('paying_out_status')->nullable()->default(0);
$table->tinyInteger('refund')->nullable()->default(0);
$table->date('refund_date')->nullable();
$table->tinyInteger('xx_tkt')->nullable()->default(0);
$table->dateTime('updated_at');
$table->dateTime('created_at');
$table->index('lead_id', 'lead_id_idx');
$table->index('sf_guard_user_id', 'sf_guard_user_id_idx');
@ -82,9 +90,6 @@ class CreateBookingTable extends Migration
')->onUpdate('RESTRICT');
});
}
/**

View file

@ -29,6 +29,7 @@ class CreateLeadTable extends Migration
$table->text('remarks')->nullable();
$table->integer('sf_guard_user_id');
$table->tinyInteger('is_closed')->nullable()->default(0);
$table->tinyInteger('is_rebook')->nullable()->default(0);
$table->bigInteger('initialcontacttype_id')->nullable();
$table->bigInteger('searchengine_id')->nullable();
$table->string('searchengine_keywords', 255)->nullable();

View file

@ -27,6 +27,7 @@ class CreateCouponTable extends Migration
$table->date('valid_date');
$table->tinyInteger('is_redeemed')->default(0);
$table->date('redeem_date')->nullable();
$table->text('text')->nullable();
$table->dateTime('created_at');
$table->dateTime('updated_at');
@ -38,6 +39,7 @@ class CreateCouponTable extends Migration
$table->foreign('customer_id', 'coupon_customer_id_customer_id')->references('id')->on('customer')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
});

View file

@ -20,6 +20,10 @@ class CreateCustomerMailsTable extends Migration
$table->bigInteger('customer_id');
$table->bigInteger('lead_id')->nullable();
$table->boolean('is_answer')->default(false);
$table->unsignedBigInteger('reply_id');
$table->string('email', 255);
$table->string('subject', 255);
$table->text('message')->nullable();
@ -46,6 +50,10 @@ class CreateCustomerMailsTable extends Migration
->references('id')
->on('lead');
$table->foreign('reply_id')
->references('id')
->on('customer_mails');
});
}

View file

@ -0,0 +1,53 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
* Migration auto-generated by Sequel Pro Laravel Export (1.4.1)
* @see https://github.com/cviebrock/sequel-pro-laravel-export
*/
class CreateBookingStornoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_storno', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->decimal('total', 10, 2)->default(0.00);
$table->decimal('storno', 10, 2)->default(0.00);
$table->date('storno_date')->nullable();
//$table->UNKNOWN:longblob('binary_data');
$table->tinyInteger('done')->nullable()->default(0);
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_storno_booking_id_idx');
$table->foreign('booking_id', 'booking_storno_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_storno');
}
}

View file

@ -0,0 +1,51 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomerFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('customer_files', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('customer_id')->nullable();
$table->unsignedBigInteger('customer_mail_id')->nullable();
$table->string('identifier')->index();
$table->string('filename');
$table->string('dir');
$table->string('original_name');
$table->string('ext');
$table->string('mine');
$table->unsignedInteger('size');
$table->timestamps();
$table->foreign('customer_id')
->references('id')
->on('customer');
$table->foreign('customer_mail_id')
->references('id')
->on('customer_mails');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('customer_files');
}
}