<?php
namespace App\Models;

use App\Enums\PartyRoleType;
use App\Models\Concerns\HasPublicId;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;

final class PartyRole extends Model
{

protected $fillable = ['party_id','role'];
protected function casts(): array { return ['role'=>PartyRoleType::class]; }
public function party(): BelongsTo { return $this->belongsTo(Party::class); }
}
