[#2] tv processing progress, credits

This commit is contained in:
2025-01-04 04:02:10 +02:00
parent cbb7b79c69
commit 8f2c48d847
6 changed files with 301 additions and 4 deletions
@@ -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');
}
};