<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ImportEntity extends Model
{
    protected $fillable = [
        'key',
        'canonical_root',
        'label',
        'fields',
        'field_aliases',
        'aliases',
        'supports_multiple',
        'meta',
        'rules',
        'ui',
        'handler_class',
        'validation_rules',
        'processing_options',
        'is_active',
        'priority',
    ];

    protected $casts = [
        'fields' => 'array',
        'field_aliases' => 'array',
        'aliases' => 'array',
        'supports_multiple' => 'boolean',
        'meta' => 'boolean',
        'rules' => 'array',
        'ui' => 'array',
        'validation_rules' => 'array',
        'processing_options' => 'array',
        'is_active' => 'boolean',
        'priority' => 'integer',
    ];
}
