lots of progress

This commit is contained in:
2025-01-26 21:36:05 +02:00
parent bbd082fd8f
commit 6a014c403c
44 changed files with 976 additions and 104 deletions
@@ -19,6 +19,7 @@ return new class extends Migration
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->boolean('is_dummy_account')->default(0);
$table->string('profile_photo')->nullable();
$table->rememberToken();
$table->timestamps();
});
@@ -17,6 +17,7 @@ return new class extends Migration
$table->bigInteger('item_id')->nullable(true);
$table->string('type')->nullable(false);
$table->json('remaining_jobs')->default(null);
$table->set('jobs', \App\Models\ItemToFetchJobs::JOBS)->default(null);
$table->timestamps();
});
}
@@ -15,13 +15,16 @@ return new class extends Migration
$table->id();
$table->text('description')->nullable();
$table->integer('favorites_count')->default(0);
$table->unsignedBigInteger('tmdb_id');
$table->unsignedBigInteger('tmdb_id')->nullable();
$table->integer('item_count')->default(0);
$table->string('iso_639_1', 2);
$table->string('iso_3166_1', 2);
$table->string('list_type', 15);
$table->string('iso_639_1', 2)->nullable();
$table->string('iso_3166_1', 2)->nullable();
$table->string('list_type', 15)->nullable();
$table->string('name', 550);
$table->string('slug', 550);
$table->string('poster_path', 550)->nullable();
$table->unsignedBigInteger('user_id')->nullable();
$table->boolean('public')->default(true);
$table->timestamps();
});
}
@@ -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('movie_production_companies', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('movie_id');
$table->unsignedBigInteger('production_company_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('movie_production_companies');
}
};
@@ -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('movie_production_countries', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('movie_id');
$table->unsignedBigInteger('production_country_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('movie_production_countries');
}
};