<?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('workflow_setting', function (Blueprint $table) {
            $table->id();
            $table->boolean('workflow_enabled')->default(true);
            $table->string('default_approver')->nullable();
            $table->boolean('workflow_notification')->default(true);
            $table->timestamps();
        });
    }

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