some progress

This commit is contained in:
2024-12-30 01:51:28 +02:00
parent 71701e19bf
commit 7436b95f15
53 changed files with 5610 additions and 180 deletions
@@ -0,0 +1,46 @@
<?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('movies', function (Blueprint $table) {
$table->id();
$table->bigInteger('tmdb_id')->unsigned()->nullable(false);
$table->unsignedTinyInteger('adult')->default(0);
$table->unsignedInteger('runtime')->default(0);
$table->string('backdrop_path', 500)->nullable();
$table->decimal('budget', 10, 2)->nullable();
$table->decimal('revenue', 10, 2)->nullable();
$table->string('homepage', 500)->nullable();
$table->string('imdb_id', 25)->nullable();
$table->string('status', 50)->nullable();
$table->string('original_language', 5)->nullable();
$table->string('original_title', 500)->nullable();
$table->string('title', 500);
$table->string('slug', 500)->unique();
$table->text('overview')->nullable();
$table->text('tagline')->nullable();
$table->string('poster_path', 500)->nullable();
$table->date('release_date')->nullable();
$table->decimal('vote_average', 10, 2)->default(0);
$table->unsignedSmallInteger('vote_count')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('movies');
}
};