<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;

#[Fillable(['digital_form_id', 'item_name', 'conditions', 'note', 'evidence_paths', 'delete_after'])]
class DigitalFormItem extends Model
{
    protected function casts(): array
    {
        return [
            'conditions' => 'array',
            'evidence_paths' => 'array',
            'delete_after' => 'datetime',
        ];
    }
}
