[#1] external ids
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user