<?php

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

return new class extends Migration
{
    public function up()
    {
        Schema::create('eventos', function (Blueprint $table) {
            $table->id();
            $table->string('nombre');
            $table->date('fecha');
            $table->time('hora');
            $table->integer('id_sucursal');
            $table->string('espacio');
            $table->integer('id_layout');
            $table->integer('capacidad');
            $table->double('costo');
            $table->string('costo_tipo_deduccion');
            $table->text('imagen');
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('eventos');
    }
};
