<?php

namespace App\Models\Admin;

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

class Forms extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'slug',
        'description',
        'redirect_page_id',
        'is_active',
        'store_data',
        'send_email',
        'recipient_address',
        'email_subject',
    ];

    public function formFields()
    {
        return $this->hasMany(FormFields::class, 'form_id', 'id');
    }
}
