<?php

namespace App\Models;

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

class AssociationType extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'slug',
        'description',
        'default_profile_fields',
        'is_active',
    ];

    protected $casts = [
        'default_profile_fields' => 'json',
        'is_active' => 'boolean',
    ];

    public function associations()
    {
        return $this->hasMany(Association::class);
    }
}
