<?php
# ────────────── lee_gwena ──────────────
# Code by: ashley_gwena
# Created: 2026-03-12
# Notes: Client to trust ledger link model
# ───────────────────────────────────────

namespace App\Models;

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

class ClientTrustLink extends Model
{
    use HasFactory;

    protected $table = 'client_trust_links';

    protected $fillable = [
        'client_id',
        'trust_account_id',
        'created_by',
        'updated_by',
    ];

    public function client()
    {
        return $this->belongsTo(Client::class, 'client_id');
    }

    public function trustAccount()
    {
        return $this->belongsTo(TrustAccount::class, 'trust_account_id');
    }
}
