<?php

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

return new class extends Migration
{
    public function up(): void
    {
        Schema::create('document_settings', function (Blueprint $table) {
            $table->id();
            $table->string('file_name_pattern')->nullable();
            $table->string('date_format')->nullable();
            $table->string('unresolved_policy')->nullable();
            $table->boolean('preview_enabled')->default(true);
            $table->json('whitelist')->nullable();
            $table->timestamps();
        });
    }

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