id('rating_id'); $table->timestamps(); $table->decimal('rating_value', 3, 1); $table->foreignId('movie_id')->constrained('movies', 'movie_id'); $table->foreignId('user_id')->constrained('users', 'user_id'); $table->unique(['movie_id', 'user_id']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('ratings'); } };