<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class FormField extends Model
{
    use HasUuids, HasFactory;

    protected $guarded = [];

    protected $casts = [
        'source_config' => 'array',
    ];

    public function template()
    {
        return $this->belongsTo(FormTemplate::class);
    }
}
