Files
movies/database/migrations/2024_12_30_150223_create_videos_table.php
T

38 lines
1013 B
PHP
Raw Normal View History

2024-12-30 18:28:50 +02:00
<?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('videos', function (Blueprint $table) {
$table->id();
$table->string('iso_639', 5)->nullable();
$table->string('iso_3166', 5)->nullable();
$table->string('name', 500)->nullable();
$table->string('key')->nullable();
$table->string('site', 50)->nullable();
$table->integer('size')->nullable();
$table->string('type')->nullable();
$table->boolean('official');
$table->dateTime('published_at');
$table->string('tmdb_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('videos');
}
};