Viewing File: /htdocs/atito2/database/migrations/2023_11_10_000009_create_salles_table.php

<?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->bigIncrements('id');
            $table->string('type');
            $table->string('nom_salle');
            $table->string('adresse_salle');
            $table->text('presentation_salle');
            $table->integer('capacite_salle');
            $table->string('tarif_salle');
            $table->string('acces_salle');
            $table->string('logistique_salle');
            $table->string('telephone');
            $table->string('tel_whatsapp')->nullable();
            $table->string('email_salle')->nullable();
            $table->string('facebook_salle')->nullable();
            $table->string('site_internet')->nullable();
            $table->string('photo_salle');
            $table->dateTime('date_salle');
            $table->unsignedBigInteger('commune_id');
            $table->unsignedBigInteger('ville_id');
            $table->unsignedBigInteger('quartier_id');

            $table->timestamps();
        });
    }

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