<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
    public function up(): void
    {
        DB::table('tipologie_documenti')->insert([
            'nome' => 'email_attachment',
            'descrizione' => 'Allegato email',
            'ordine' => 100,
            'attiva' => true,
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    }

    public function down(): void
    {
        DB::table('tipologie_documenti')->where('nome', 'email_attachment')->delete();
    }
};