<?php

namespace App\Models;

use App\Models\Concerns\BelongsToBranch;
use Illuminate\Database\Eloquent\Model;

class SiblingDiscountRule extends Model
{
    use BelongsToBranch;

    protected $fillable = ['branch_id', 'child_order', 'type', 'value', 'is_active'];

    protected function casts(): array
    {
        return ['value' => 'decimal:2', 'is_active' => 'boolean'];
    }
}
