<?php

namespace App\Models\Solicitor;

use App\Trait\BelongsToSolicitor;
use Illuminate\Database\Eloquent\Model;

class SolicitorEmailSender extends Model {
    use BelongsToSolicitor;

    protected $table = 'solicitor_email_senders';

    protected $fillable = [
        'solicitor_id',
        'display_name',
        'email_address',
        'purpose',
        'is_default',
        'signature',
    ];

    protected $casts = [
        'is_default' => 'boolean',
    ];

    public function solicitor() {
        return $this->belongsTo(Solicitor::class);
    }
}
