<?php

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

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('combustibles', function (Blueprint $table) {
            $table->id();
            $table->string('titulo');
            $table->string('slug');
            $table->string('eslogan')->comment('texto del hero')->nullable();
            //$table->string('texto_hero')->nullable();
            $table->integer('tipo_hero')->comment('1 es tipo imagen y 2 es tipo video');
            $table->string('video_url')->nullable();
            $table->text('descripcion');
            $table->text('descripcion_corto')->nullable();
            $table->string('color');
            $table->integer('orden')->nullable();
            $table->boolean('estado')->default(true);
            //fk caracteristicas
            //imagen ficha tecnica
            //pdf

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

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