[#1] watch providers

This commit is contained in:
2024-12-30 03:19:01 +02:00
parent 89f80b7937
commit c16b36a6da
5 changed files with 138 additions and 0 deletions
@@ -0,0 +1,32 @@
<?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('watch_providers', function (Blueprint $table) {
$table->id();
$table->string('type');
$table->string('logo_path');
$table->integer('tmdb_provider_id');
$table->string('provider_name');
$table->integer('display_priority');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('watch_providers');
}
};
@@ -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('movie_watch_providers', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('movie_id');
$table->integer('watch_provider_id');
$table->string('locale');
$table->string('tmdb_url');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('movie_watch_providers');
}
};