Natinality, Country, Agenda, search Request. CMS

Magazine Content
This commit is contained in:
Kevin Adametz 2019-03-19 15:47:23 +01:00
parent 30d5ca3b44
commit aebfb0586a
72 changed files with 4636 additions and 590 deletions

View file

@ -15,11 +15,23 @@ class CreateTravelCountryTable extends Migration
{
Schema::connection('mysql_stern')->create('travel_country', function (Blueprint $table) {
$table->increments('id');
$table->integer('crm_id')->nullable()->index();
$table->integer('feedback_page_id')->index();
$table->integer('id')->index();
$table->string('name')->nullable();
$table->string('html_information')->nullable();
$table->text('html_information')->nullable();
$table->text('entry_requirements')->nullable(); //need?
$table->boolean('is_customer_country');
$table->boolean('active_frontend')->default(false);
$table->boolean('active_backend')->default(true);
$table->timestamps();
$table->foreign('feedback_page_id')
->references('id')
->on('page');
});
}

View file

@ -0,0 +1,56 @@
<?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 CreateArrangementTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('arrangement', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('template_id')->nullable();
$table->date('state')->nullable();
$table->date('begin')->nullable();
$table->date('end')->nullable();
$table->string('type_s', 80)->nullable();
$table->text('data_s')->nullable();
$table->bigInteger('view_position')->nullable();
$table->bigInteger('booking_id')->nullable();
$table->bigInteger('type_id');
$table->tinyInteger('in_pdf')->nullable()->default(0);
$table->index('template_id', 'arrangement_template_id_idx');
$table->index('booking_id', 'arrangement_booking_id_idx');
$table->foreign('booking_id', 'arrangement_booking_id_booking_id')->references('id')->on('booking')->onDelete('CASCADE
')->onUpdate('RESTRICT');
$table->foreign('template_id', 'arrangement_template_id_arrangement_template_id')->references('id')->on('arrangement_template')->onDelete('CASCADE
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('arrangement');
}
}

View file

@ -0,0 +1,95 @@
<?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 CreateLeadTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('lead', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('customer_id');
$table->date('request_date');
$table->date('travelperiod_start')->nullable();
$table->date('travelperiod_end')->nullable();
$table->bigInteger('travelperiod_length')->nullable();
$table->bigInteger('travelcountry_id')->nullable();
$table->bigInteger('travelagenda_id')->nullable();
$table->text('remarks')->nullable();
$table->integer('sf_guard_user_id');
$table->tinyInteger('is_closed')->nullable()->default(0);
$table->bigInteger('initialcontacttype_id')->nullable();
$table->bigInteger('searchengine_id')->nullable();
$table->string('searchengine_keywords', 80)->nullable();
$table->bigInteger('status_id');
$table->date('next_due_date')->nullable();
$table->bigInteger('website_id')->nullable();
$table->bigInteger('travelcategory_id')->nullable();
$table->dateTime('created_at');
$table->dateTime('updated_at');
$table->decimal('price', 10, 2)->nullable();
$table->bigInteger('pax')->nullable();
$table->string('participant_name', 80)->nullable();
$table->string('participant_firstname', 80)->nullable();
$table->date('participant_birthdate')->nullable();
$table->bigInteger('participant_salutation_id')->nullable();
$table->index('initialcontacttype_id', 'initialcontacttype_id_idx');
$table->index('searchengine_id', 'searchengine_id_idx');
$table->index('status_id', 'status_id_idx');
$table->index('travelcountry_id', 'travelcountry_id_idx');
$table->index('travelagenda_id', 'travelagenda_id_idx');
$table->index('sf_guard_user_id', 'sf_guard_user_id_idx');
$table->index('website_id', 'website_id_idx');
$table->index('travelcategory_id', 'travelcategory_id_idx');
$table->index('customer_id', 'customer_id_idx');
$table->index('participant_salutation_id', 'lead_participant_salutation_id_idx');
$table->foreign('customer_id', 'lead_customer_id_customer_id')->references('id')->on('customer')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('initialcontacttype_id', 'lead_initialcontacttype_id_initial_contact_type_id')->references('id')->on('initial_contact_type')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('participant_salutation_id', 'lead_participant_salutation_id_salutation_id')->references('id')->on('salutation')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('searchengine_id', 'lead_searchengine_id_searchengine_id')->references('id')->on('searchengine')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('sf_guard_user_id', 'lead_sf_guard_user_id_sf_guard_user_id')->references('id')->on('sf_guard_user')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('status_id', 'lead_status_id_status_id')->references('id')->on('status')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('travelagenda_id', 'lead_travelagenda_id_travel_agenda_id')->references('id')->on('travel_agenda')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('travelcategory_id', 'lead_travelcategory_id_travel_category_id')->references('id')->on('travel_category')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('travelcountry_id', 'lead_travelcountry_id_travel_country_id')->references('id')->on('travel_country')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
$table->foreign('website_id', 'lead_website_id_website_id')->references('id')->on('website')->onDelete('RESTRICT
')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('lead');
}
}

View file

@ -0,0 +1,40 @@
<?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 CreateStatusTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('status', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->bigInteger('handling_days');
$table->string('color', 6)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('status');
}
}

View file

@ -17,7 +17,7 @@ class CreatePageTable extends Migration
*/
public function up()
{
Schema::create('page', function (Blueprint $table) {
Schema::connection('mysql_stern')->create('page', function (Blueprint $table) {
$table->increments('id');
$table->integer('owner')->nullable()->default(0);
$table->string('model', 20)->nullable();
@ -87,6 +87,6 @@ class CreatePageTable extends Migration
*/
public function down()
{
Schema::dropIfExists('page');
Schema::connection('mysql_stern')->dropIfExists('page');
}
}

View file

@ -37,6 +37,4 @@ class CreateSidebarWidgetsTable extends Migration
{
Schema::connection('mysql_stern')->dropIfExists('sidebar_widgets');
}
}
AppBundle:SidebarWidget
}

View file

@ -0,0 +1,43 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCMSContentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('c_m_s_contents', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('slug')->index()->unique();
$table->string('field', 10)->index();
$table->string('text')->nullable();
$table->text('full_text')->nullable();
$table->integer('integer')->nullable();
$table->decimal('decimal')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('c_m_s_contents');
}
}

View file

@ -0,0 +1,34 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTravelNationalityTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('travel_nationality', function (Blueprint $table) {
$table->increments('id');
$table->string('name', 255)->nullable();
$table->boolean('active')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('travel_nationality');
}
}

View file

@ -0,0 +1,46 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTravelNationalityRequirementTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('travel_nationality_requirement', function (Blueprint $table) {
$table->increments('id');
$table->integer('travel_country_id')->nullable();
$table->integer('travel_nationality_id')->nullable();
$table->text('text')->nullable();
$table->index('travel_country_id', 'travel_country_id');
$table->index('travel_nationality_id', 'travel_nationality_id');
$table->foreign('travel_nationality_id', 'travel_nationality_requirement_ibfk_2')->references('id')->on('travel_nationality')
->onDelete('RESTRICT')->onUpdate('RESTRICT');
$table->foreign('travel_country_id', 'travel_nationality_requirement_ibfk_3')->references('id')->on('travel_country')
->onDelete('RESTRICT')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('travel_nationality_requirement');
}
}

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 CreateTravelAgendaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('travel_agenda', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->bigInteger('travelcountry_id')->nullable();
$table->boolean('active')->default(true);
$table->index('travelcountry_id', 'travelcountry_id_idx');
$table->foreign('travelcountry_id', 'travel_agenda_travelcountry_id_travel_country_id')->references('id')->on('travel_country'
)->onDelete('RESTRICT')->onUpdate('RESTRICT');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('travel_agenda');
}
}

View file

@ -0,0 +1,46 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTravelMagazinesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('travel_magazines', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('slug')->index()->unique();
$table->string('text')->nullable();
$table->text('full_text')->nullable();
$table->string('meta_title')->nullable();
$table->string('meta_description')->nullable();
$table->string('meta_keywords')->nullable();
$table->tinyInteger('pos')->unsigned()->nullable();
$table->boolean('scope')->default(true);
$table->boolean('active')->default(true);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('travel_magazines');
}
}

View file

@ -0,0 +1,38 @@
<?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 CreateTravelCountryTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('travel_country', 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);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('travel_country');
}
}