<?php

namespace App\Models;

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

class Salary extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id',
        'month',
        'year',
        'base_amount',
        'bonus',
        'deductions',
        'net_salary',
        'payment_status',
        'payment_date',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
