<reponame>arthurcadren/Projet-gestion-des-infrastructures-de-la-faculte-des-sciences<?php

use App\Models\Spot;
use App\Models\SpotAttribute;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class SpotSpotAttribute extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('spot_spot_attribute', function (Blueprint $table) {
            $table->id();
            $table->foreignIdFor(Spot::class);
            $table->foreignIdFor(SpotAttribute::class);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::dropIfExists('spot_spot_attribute');
    }
}
