<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LockerPricing extends Model
{
    protected $fillable = [
        'category_id', 'duration_label', 'duration_days', 'price', 'is_active',
    ];

    protected $casts = [
        'price'     => 'decimal:2',
        'is_active' => 'boolean',
    ];

    public function category()
    {
        return $this->belongsTo(LockerCategory::class, 'category_id');
    }
}
