<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class DailyFundMemo extends Model
{
    protected $table = 'daily_fund_memos';

    protected $fillable = [
        'tenant_id',
        'memo_date',
        'memo',
        'author',
    ];

    protected $casts = [
        'memo_date' => 'date',
    ];

    public function scopeForTenant($query, $tenantId)
    {
        return $query->where('tenant_id', $tenantId);
    }
}
