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

36 lines
875 B
PHP
Raw Normal View History

2024-12-30 02:42:07 +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('images', function (Blueprint $table) {
$table->id();
$table->decimal('aspect_ratio', 10, 2);
$table->integer('height');
$table->string('iso')->nullable();
2024-12-30 02:42:07 +02:00
$table->text('file_path');
$table->decimal('vote_average', 10, 2);
$table->integer('vote_count');
$table->integer('width');
$table->string('type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('images');
}
};