Fewo Mails / Booking Country Services

This commit is contained in:
Kevin Adametz 2020-05-28 19:03:42 +02:00
parent b9c26d06d0
commit 48a6eb2282
154 changed files with 7761 additions and 1643 deletions

View file

@ -21,13 +21,15 @@ class CreateTravelCountryTable extends Migration
$table->string('name')->nullable();
$table->string('slug')->nullable();
$table->string('mail_dir_name')->nullable();
$table->text('html_information')->nullable();
$table->string('text_before')->nullable();
$table->string('text_after')->nullable();
$table->string('contact_lands')->nullable();
$table->string('mail_dirs')->nullable();
$table->string('contact_headline')->nullable();
$table->text('contact_text_1')->nullable();
$table->text('contact_text_2')->nullable();

View file

@ -18,6 +18,7 @@ class CreateCMSContentsTable extends Migration
$table->string('name');
$table->string('slug')->index()->unique();
$table->string('identifier')->nullable()->index();
$table->string('field', 10)->index();
@ -26,6 +27,9 @@ class CreateCMSContentsTable extends Migration
$table->integer('integer')->nullable();
$table->decimal('decimal')->nullable();
$table->unsignedTinyInteger('pos')->default(0);
$table->timestamps();
});
}

View file

@ -33,12 +33,11 @@ class CreateCustomerMailsTable extends Migration
$table->text('message')->nullable();
$table->unsignedTinyInteger('dir')->default(0);
$table->bigInteger('travel_country_id')->nullable();
$table->bigInteger('subdir')->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();
@ -64,12 +63,6 @@ class CreateCustomerMailsTable extends Migration
$table->foreign('reply_id')
->references('id')
->on('customer_mails');
$table->foreign('travel_country_id')
->references('id')
->on('travel_country');
});
}

View file

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmailTemplateDirsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('email_template_dirs', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('color', 10)->nullable();
$table->boolean('active')->default(true);
$table->unsignedTinyInteger('pos')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('email_template_dirs');
}
}

View file

@ -15,10 +15,16 @@ class CreateEmailTemplatesTable extends Migration
{
Schema::create('email_templates', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('subject', 255);
$table->unsignedInteger('email_template_dir_id')->nullable();
$table->string('name', 255);
$table->string('subject', 255)->nullable();
$table->text('message')->nullable();
$table->boolean('active')->default(true);
$table->timestamps();
$table->foreign('email_template_dir_id')
->references('id')
->on('email_template_dirs');
});
}

View file

@ -0,0 +1,74 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomerFewoMailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('customer_fewo_mails', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('travel_user_booking_fewo_id');
$table->unsignedInteger('travel_user_id');
$table->boolean('is_answer')->default(false);
$table->unsignedInteger('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('subdir')->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();
$table->timestamp('sent_at')->nullable();
$table->timestamp('scheduled_at')->nullable();
$table->timestamp('delivered_at')->nullable();
$table->timestamps();
$table->foreign('travel_user_booking_fewo_id')
->references('id')
->on('travel_user_booking_fewos');
$table->foreign('travel_user_id')
->references('id')
->on('travel_users');
$table->foreign('reply_id')
->references('id')
->on('customer_fewo_mails');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('customer_fewo_mails');
}
}

View file

@ -0,0 +1,50 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomerFewoFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('customer_fewo_files', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('travel_user_id')->nullable();
$table->unsignedInteger('customer_fewo_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('travel_user_id')
->references('id')
->on('travel_users');
$table->foreign('customer_fewo_mail_id')
->references('id')
->on('customer_fewo_mails');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('customer_fewo_files');
}
}

View file

@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTravelUserBookingFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('travel_user_booking_files', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('travel_user_booking_fewo_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('travel_user_booking_fewo_id')
->references('id')
->on('travel_user_booking_fewos');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('travel_user_booking_files');
}
}

View file

@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGeneralFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('general_files', function (Blueprint $table) {
$table->increments('id');
$table->bigInteger('travel_country_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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('general_files');
}
}

View file

@ -0,0 +1,41 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTravelCountryServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('travel_country_services', function (Blueprint $table) {
$table->increments('id');
$table->bigInteger('travel_country_id')->nullable()->index();
$table->integer('crm_travel_country_id')->nullable();
$table->string('name')->nullable()->index();
$table->text('description')->nullable();
$table->boolean('active')->default(true);
$table->unsignedTinyInteger('pos')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('travel_country_services');
}
}

View file

@ -0,0 +1,45 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBookingCountryServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('booking_country_services', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedInteger('travel_country_service_id')->index();
$table->bigInteger('booking_id')->index();
$table->unsignedTinyInteger('status')->default(0);
$table->timestamps();
$table->foreign('travel_country_service_id', 'booking_country_services_tcsid')
->references('id')
->on('travel_country_services');
$table->foreign('booking_id')
->references('id')
->on('booking');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('booking_travel_country_services');
}
}

View file

@ -8,7 +8,7 @@ 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 CreateSalutationTable extends Migration
class CreateTravelCountryTable extends Migration
{
/**
* Run the migrations.
@ -17,13 +17,30 @@ class CreateSalutationTable extends Migration
*/
public function up()
{
Schema::create('salutation', function (Blueprint $table) {
Schema::create('travel_country', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->string('mail_dir_name', 255)->nullable();
$table->tinyInteger('is_customer_country')->nullable()->default(0);
$table->tinyInteger('active_backend')->nullable()->default(0);
$table->string('contact_lands', 255)->nullable();
$table->string('mail_dirs', 255)->nullable();
$table->string('contact_headline', 255)->nullable();
$table->text('contact_text_1')->nullable();
$table->text('contact_text_2')->nullable();
$table->text('contact_text_3')->nullable();
$table->text('contact_text_4')->nullable();
$table->text('contact_footer')->nullable();
$table->text('contact_emails')->nullable();
});
}
/**
@ -33,6 +50,6 @@ class CreateSalutationTable extends Migration
*/
public function down()
{
Schema::dropIfExists('salutation');
Schema::dropIfExists('travel_country');
}
}

View file

@ -8,7 +8,7 @@ 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 CreateTravelCountryTable extends Migration
class CreateSalutationTable extends Migration
{
/**
* Run the migrations.
@ -17,13 +17,18 @@ class CreateTravelCountryTable extends Migration
*/
public function up()
{
Schema::create('travel_country', function (Blueprint $table) {
Schema::create('salutation', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->tinyInteger('is_customer_country')->nullable()->default(false);
$table->boolean('active_backend')->nullable()->default(false);
});
}
/**
@ -33,6 +38,6 @@ class CreateTravelCountryTable extends Migration
*/
public function down()
{
Schema::dropIfExists('travel_country');
Schema::dropIfExists('salutation');
}
}