Mail and Booking

This commit is contained in:
Kevin Adametz 2020-04-15 12:11:42 +02:00
parent 62e84637b6
commit 5daea268f7
250 changed files with 5377 additions and 1473 deletions

View file

@ -35,9 +35,10 @@ class CreateTravelCountryTable extends Migration
$table->text('contact_text_4')->nullable();
$table->text('contact_footer')->nullable();
$table->text('entry_requirements')->nullable(); //need?
$table->text('contact_emails')->nullable();
$table->boolean('is_customer_country');
$table->boolean('active_frontend')->default(false);
$table->boolean('active_backend')->default(true);

View file

@ -33,6 +33,7 @@ class CreateBookingTable extends Migration
$table->string('title', 255)->nullable();
$table->date('start_date')->nullable();
$table->date('end_date')->nullable();
$table->date('origin_start_date')->nullable();
$table->bigInteger('website_id')->nullable();
$table->string('travel_number', 80)->nullable();
$table->string('participant_name', 255)->nullable();
@ -54,8 +55,11 @@ class CreateBookingTable extends Migration
$table->bigInteger('travelagenda_id')->nullable();
$table->tinyInteger('paying_out')->nullable()->default(0);
$table->tinyInteger('paying_out_status')->nullable()->default(0);
$table->unsignedBigInteger('airline_id')->nullable();
$table->tinyInteger('refund')->nullable()->default(0);
$table->date('refund_date')->nullable();
$table->tinyInteger('hold')->nullable()->default(0);
$table->tinyInteger('xx_tkt')->nullable()->default(0);
$table->dateTime('updated_at');
$table->dateTime('created_at');
@ -88,6 +92,8 @@ class CreateBookingTable extends Migration
')->onUpdate('RESTRICT');
$table->foreign('travelagenda_id', 'booking_travelagenda_id_travel_agenda_id')->references('id')->on('travel_agenda')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('airline_id', 'booking_airline_id_airline_id')->references('id')->on('airline')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
});
}

View file

@ -23,11 +23,22 @@ class CreateCustomerMailsTable extends Migration
$table->boolean('is_answer')->default(false);
$table->unsignedBigInteger('reply_id');
$table->string('email', 255);
$table->text('recipient')->nullable();
$table->text('cc')->nullable();
$table->text('bcc')->nullable();
$table->string('subject', 255);
$table->text('message')->nullable();
$table->unsignedTinyInteger('dir')->default(0);
$table->bigInteger('travel_country_id')->nullable();
$table->boolean('draft')->default(false);
$table->boolean('important')->default(false);
$table->boolean('send')->default(false);
$table->boolean('fail')->default(false);
$table->text('error')->nullable();
@ -54,6 +65,11 @@ class CreateCustomerMailsTable extends Migration
->references('id')
->on('customer_mails');
$table->foreign('travel_country_id')
->references('id')
->on('travel_country');
});
}

View file

@ -23,7 +23,7 @@ class CreateBookingStornoTable extends Migration
$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->binary('binary_data');
$table->tinyInteger('done')->nullable()->default(0);
$table->dateTime('created_at');
$table->dateTime('updated_at');

View file

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAirlinesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('airlines', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->string('name_full', 255);
$table->text('contact_emails')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('airlines');
}
}

View file

@ -0,0 +1,48 @@
<?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 CreateBookingApplicationTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_application', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->decimal('total', 10, 2)->default(0.00);
$table->binary('binary_data');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_application_booking_id_idx');
$table->foreign('booking_id', 'booking_application_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_application');
}
}

View file

@ -0,0 +1,52 @@
<?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 CreateBookingConfirmationTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_confirmation', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->decimal('total', 10, 2)->default(0.00);
$table->decimal('deposit', 10, 2)->default(0.00);
$table->decimal('final_payment', 10, 2)->default(0.00);
$table->date('deposit_payment_date')->nullable();
$table->date('final_payment_date');
$table->binary('binary_data');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_confirmation_booking_id_idx');
$table->foreign('booking_id', 'booking_confirmation_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_confirmation');
}
}

View file

@ -0,0 +1,52 @@
<?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 CreateBookingInvoiceTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_invoice', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->decimal('total', 10, 2)->default(0.00);
$table->decimal('deposit', 10, 2)->default(0.00);
$table->decimal('final_payment', 10, 2)->default(0.00);
$table->date('deposit_payment_date')->nullable();
$table->date('final_payment_date');
$table->binary('binary_data');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_id_idx');
$table->foreign('booking_id', 'booking_invoice_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_invoice');
}
}

View file

@ -0,0 +1,47 @@
<?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 CreateBookingVoucherTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_voucher', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->binary('binary_data');
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_voucher_booking_id_idx');
$table->foreign('booking_id', 'booking_voucher_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_voucher');
}
}

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 CreateTravelInsuranceTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('travel_insurance', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('booking_id');
$table->string('policy_number', 10);
$table->string('ak', 255);
$table->string('an', 255);
$table->string('akt', 255);
$table->decimal('premium', 10, 2);
$table->text('request_data')->nullable();
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->index('booking_id', 'booking_id_idx');
$table->index('booking_id', 'travel_insurance_booking_id_idx');
$table->foreign('booking_id', 'travel_insurance_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('travel_insurance');
}
}

View file

@ -21,6 +21,7 @@ class CreateSalutationTable extends Migration
$table->bigIncrements('id');
$table->string('name', 255);
});
}