lots of progress

This commit is contained in:
2025-02-01 15:31:47 +02:00
parent 1362ceb642
commit 83b90aa7a0
40 changed files with 1046 additions and 44 deletions
@@ -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('ratings', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('item_id');
$table->enum('item_type', ['movie', 'show']);
$table->decimal('rate', 10, 2);
$table->unsignedBigInteger('user_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('ratings');
}
};