Booking, QI Content, Trees, Media

This commit is contained in:
Kevin Adametz 2019-10-02 20:03:55 +02:00
parent 1f340e96fa
commit 7fbac395a9
260 changed files with 27160 additions and 3773 deletions

View file

@ -0,0 +1,51 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIQContentFoldersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('i_q_content_folders', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('folder_id')->nullable()->index();
$table->string('name')->index();
$table->string('slug')->unique()->index();
$table->string('identifier')->nullable();
$table->string('path')->nullable();
$table->unsignedTinyInteger('color')->default(0);
$table->unsignedTinyInteger('pos')->default(0);
$table->boolean('active')->default(true);
$table->timestamps();
$table->foreign('folder_id')
->references('id')
->on('i_q_content_folders')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('i_q_content_folders');
}
}

View file

@ -0,0 +1,55 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIQContentFilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('i_q_content_files', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('folder_id')->nullable()->index();
$table->string('name')->index();
$table->string('identifier')->nullable();
$table->string('slug')->unique()->index();
$table->string('ext', 10)->nullable();
$table->string('mine', 100)->nullable();
$table->unsignedInteger('size')->unsigned();
$table->string('dimensions', 100)->nullable();
$table->text('content')->nullable();
$table->unsignedTinyInteger('color')->default(0);
$table->unsignedTinyInteger('pos')->default(0);
$table->boolean('active')->default(true);
$table->timestamps();
$table->foreign('folder_id')
->references('id')
->on('i_q_content_folders')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('i_q_content_files');
}
}

View file

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

View file

@ -0,0 +1,45 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIQContentTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('i_q_content_tags', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('category_id')->index();
$table->string('name')->index();
$table->string('slug')->unique()->index();
$table->unsignedTinyInteger('pos')->default(0);
$table->boolean('active')->default(true);
$table->timestamps();
$table->foreign('category_id')
->references('id')
->on('i_q_content_categories')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('i_q_content_tags');
}
}

View file

@ -0,0 +1,49 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateIQContentFileTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('i_q_content_file_tags', function (Blueprint $table) {
$table->bigIncrements('id');
$table->unsignedBigInteger('file_id')->index();
$table->unsignedBigInteger('tag_id')->index();
$table->timestamps();
$table->foreign('file_id')
->references('id')
->on('i_q_content_files')
->onDelete('cascade');
$table->foreign('tag_id')
->references('id')
->on('i_q_content_tags')
->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('i_q_content_file_tags');
}
}