[#2] tv processing progress, credits
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('show_alternative_titles', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('iso', 5)->nullable();
|
||||
$table->string('title', 500)->nullable();
|
||||
$table->integer('show_id')->unsigned()->nullable();
|
||||
$table->string('type', 255)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('show_alternative_titles');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('show_cast', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('show_id')->nullable(false);
|
||||
$table->bigInteger('person_id')->nullable(false);
|
||||
$table->string('known_for_department', 500)->nullable();
|
||||
$table->string('character', 500)->nullable();
|
||||
$table->string('tmdb_cast_id', 500);
|
||||
$table->integer('order')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('show_cast');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('show_crew', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('show_id')->nullable(false);
|
||||
$table->unsignedBigInteger('person_id')->nullable(false);
|
||||
$table->string('known_for_department', 500);
|
||||
$table->string('job', 500);
|
||||
$table->string('department', 500);
|
||||
$table->string('tmdb_cast_id', 500);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('show_crew');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user