[#1] external ids

This commit is contained in:
2024-12-30 03:11:14 +02:00
parent fcca3d032c
commit 89f80b7937
3 changed files with 83 additions and 0 deletions
@@ -0,0 +1,35 @@
<?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('external_ids', function (Blueprint $table) {
$table->id();
$table->integer('entity_id');
$table->string('entity_type');
$table->integer('tmdb_id');
$table->string('imdb_id');
$table->string('wikidata_id');
$table->string('facebook_id');
$table->string('instagram_id');
$table->string('twitter_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('external_ids');
}
};