FeWo Mail, Booking Services
This commit is contained in:
parent
730832c8e1
commit
e6cc042aee
62 changed files with 1766 additions and 284 deletions
|
|
@ -20,6 +20,7 @@ class CreateFewoReservationTable extends Migration
|
|||
Schema::connection('mysql_stern')->create('fewo_reservation', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('lodging_id')->nullable();
|
||||
|
||||
$table->date('from_date');
|
||||
$table->date('to_date');
|
||||
$table->integer('status');
|
||||
|
|
|
|||
|
|
@ -47,9 +47,13 @@ class CreateCustomerFewoMailsTable extends Migration
|
|||
|
||||
$table->timestamps();
|
||||
|
||||
$table->softDeletes();
|
||||
|
||||
|
||||
$table->foreign('travel_user_booking_fewo_id')
|
||||
->references('id')
|
||||
->on('travel_user_booking_fewos');
|
||||
->on('travel_user_booking_fewos')
|
||||
->onDelete('CASCADE');
|
||||
|
||||
$table->foreign('travel_user_id')
|
||||
->references('id')
|
||||
|
|
|
|||
|
|
@ -28,13 +28,16 @@ class CreateCustomerFewoFilesTable extends Migration
|
|||
$table->unsignedInteger('size');
|
||||
$table->timestamps();
|
||||
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('travel_user_id')
|
||||
->references('id')
|
||||
->on('travel_users');
|
||||
|
||||
$table->foreign('customer_fewo_mail_id')
|
||||
->references('id')
|
||||
->on('customer_fewo_mails');
|
||||
->on('customer_fewo_mails')
|
||||
->onDelete('CASCADE');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,13 @@ class CreateTravelCountryServicesTable extends Migration
|
|||
$table->string('name')->nullable()->index();
|
||||
$table->text('description')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->unsignedTinyInteger('pos')->default(0);
|
||||
$table->unsignedTinyInteger('pos')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
$table->foreign('crm_travel_country_id')
|
||||
->references('id')
|
||||
->on('travel_country');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class CreateBookingCountryServicesTable extends Migration
|
|||
$table->unsignedInteger('travel_country_service_id')->index();
|
||||
$table->bigInteger('booking_id')->index();
|
||||
|
||||
$table->unsignedTinyInteger('status')->default(0);
|
||||
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTravelCompanyServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('travel_company_services', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->bigInteger('travel_company_id')->index();
|
||||
|
||||
$table->string('name')->nullable()->index();
|
||||
$table->text('description')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->unsignedTinyInteger('pos')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('travel_company_id')
|
||||
->references('id')
|
||||
->on('travel_company');
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('travel_company_services');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateBookingCompanyServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('booking_company_services', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->unsignedInteger('travel_company_service_id')->index();
|
||||
$table->bigInteger('booking_id')->index();
|
||||
|
||||
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('travel_company_service_id')
|
||||
->references('id')
|
||||
->on('travel_company_services');
|
||||
|
||||
$table->foreign('booking_id')
|
||||
->references('id')
|
||||
->on('booking');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('booking_company_services');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateServiceProviderServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('service_provider_services', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->bigInteger('service_provider_id')->index();
|
||||
|
||||
$table->string('name')->nullable()->index();
|
||||
$table->text('description')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->unsignedTinyInteger('pos')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('service_provider_id')
|
||||
->references('id')
|
||||
->on('service_provider');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('service_provider_services');
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateBookingProviderServicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('booking_provider_services', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
|
||||
$table->unsignedInteger('service_provider_service_id')->index();
|
||||
$table->bigInteger('booking_id')->index();
|
||||
|
||||
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('service_provider_service_id')
|
||||
->references('id')
|
||||
->on('service_provider_services');
|
||||
|
||||
$table->foreign('booking_id')
|
||||
->references('id')
|
||||
->on('booking');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('booking_provider_services');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue