[#2] work on tv series processing
This commit is contained in:
@@ -21,6 +21,9 @@ return new class extends Migration
|
||||
$table->string('facebook_id')->nullable();
|
||||
$table->string('instagram_id')->nullable();
|
||||
$table->string('twitter_id')->nullable();
|
||||
$table->string('tvdb_id')->nullable();
|
||||
$table->string('freebase_id')->nullable();
|
||||
$table->string('tvrage_id')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->date('air_date')->nullable();
|
||||
$table->integer('episode_count')->nullable();
|
||||
$table->bigInteger('tmdb_id');
|
||||
$table->bigInteger('tmdb_id')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('slug')->nullable();
|
||||
$table->text('overview')->nullable();
|
||||
|
||||
@@ -23,7 +23,7 @@ return new class extends Migration
|
||||
$table->string('production_code')->nullable();
|
||||
$table->integer('runtime')->nullable();
|
||||
$table->integer('season_number')->nullable();
|
||||
$table->show_id('tmdb_show_id')->nullable();
|
||||
$table->bigInteger('tmdb_show_id')->nullable();
|
||||
$table->string('still_path', 500)->nullable();
|
||||
$table->decimal('vote_average', 10, 2)->nullable();
|
||||
$table->integer('vote_count')->nullable();
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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_images', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('show_id');
|
||||
$table->unsignedBigInteger('image_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('show_images');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?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_videos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('show_id');
|
||||
$table->unsignedBigInteger('video_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('show_videos');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user