<?php

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

class CreateBanneradsTable extends Migration
{
    public function up()
    {
        Schema::create('bannerads', function (Blueprint $table) {
            $table->id(); // auto-incrementing ID
            $table->string('image'); // path to the image
            $table->string('title'); // title of the banner
            $table->text('description'); // description of the banner
            $table->enum('status', ['active', 'inactive'])->default('active'); // status
            $table->timestamps(); // created_at and updated_at
        });
    }

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