<?php

namespace App\Models;

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

class CompensationPlan extends Model
{
    use HasFactory;

    protected $fillable = [
        'binary_percentage',
        'pair_income',
        'daily_cap',
        'weekly_cap',
        'is_active',
        'updated_by',
    ];

    protected $casts = [
        'binary_percentage' => 'decimal:4',
        'pair_income' => 'decimal:2',
        'daily_cap' => 'decimal:2',
        'weekly_cap' => 'decimal:2',
        'is_active' => 'boolean',
    ];
}

