<reponame>arthurcadren/Projet-gestion-des-infrastructures-de-la-faculte-des-sciences<filename>database/migrations/2023_01_09_035307_create_salles_table.php<gh_stars>0<?php


use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSallesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('salles', function (Blueprint $table) {
            //$table->id();
            $table->string('nomSalle')->primary();
            $table->integer('capacite');
            $table->string('emplacement');
            $table->timestamps();
            // $table->integer('Nsalle')->increment();
        });
    }

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

}
