Travel Guide Frontend Backend

This commit is contained in:
Kevin Adametz 2020-08-07 16:00:55 +02:00
parent e6cc042aee
commit 0857a34766
681 changed files with 6680 additions and 1689 deletions

View file

@ -34,6 +34,7 @@ class CreateIQContentTreeNodesTable extends Migration
$table->text('settings')->nullable();
$table->text('image')->nullable();
$table->unsignedTinyInteger('pos')->default(0);
$table->boolean('active')->default(true);

View file

@ -18,6 +18,8 @@ class CreateIQContentSitesTable extends Migration
$table->unsignedBigInteger('tree_node_id');
$table->unsignedInteger('travel_guide_id');
$table->string('identifier', 100)->index()->nullable();
$table->timestamps();
$table->foreign('tree_node_id')

View file

@ -19,7 +19,7 @@ class CreateIQContentFilesTable extends Migration
$table->unsignedBigInteger('folder_id')->nullable()->index();
$table->string('name')->index();
$table->string('identifier')->nullable();
$table->string('identifier')->nullable()->index();
$table->string('slug')->unique()->index();
$table->string('ext', 10)->nullable();

View file

@ -13,11 +13,13 @@ class CreateIQContentCategoriesTable extends Migration
*/
public function up()
{
Schema::connection('mysql_stern')->create('i_q_content_categories', function (Blueprint $table) {
Schema::connection('mysql_stern')->create('i_q_content_categories', function (Blueprint $table) {y
$table->bigIncrements('id');
$table->string('name')->index();
$table->string('identifier', 100)->index();
$table->string('slug')->unique()->index();
$table->unsignedTinyInteger('pos')->default(0);
$table->boolean('active')->default(true);

View file

@ -16,6 +16,7 @@ class CreateCMSAuthorsTable extends Migration
Schema::connection('mysql_stern')->create('c_m_s_authors', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->text('description')->nullable();
$table->timestamps();
});
}

View file

@ -0,0 +1,46 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAnswerQuestionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('answer_questions', function (Blueprint $table) {
$table->increments('id');
$table->unsignedBigInteger('i_q_content_category_id');
$table->string('question');
$table->text('question_text')->nullable();
$table->string('answer')->nullable();
$table->text('answer_text')->nullable();
$table->boolean('active')->default(true);
$table->timestamps();
$table->foreign('i_q_content_category_id')
->references('id')
->on('i_q_content_categories');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('answer_questions');
}
}

View file

@ -0,0 +1,45 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateIQContentFaqsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('mysql_stern')->create('i_q_content_faqs', function (Blueprint $table) {
$table->increments('id');
$table->unsignedBigInteger('tree_node_id');
$table->unsignedInteger('faq_id');
$table->timestamps();
$table->foreign('tree_node_id')
->references('id')
->on('i_q_content_tree_nodes')
->onDelete('CASCADE');
$table->foreign('faq_id')
->references('id')
->on('answer_questions')
->onDelete('CASCADE');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection('mysql_stern')->dropIfExists('i_q_content_faqs');
}
}