<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Payroll extends Model
{
    protected $table = 'employee_payroll';
    protected $primaryKey = 'payroll_id';
    public $timestamps = false;

    protected $fillable = [
        'employee_id',
        'payroll_month',
        'basic_salary',
        'bonus',
        'deductions',
        'net_salary',
        'payment_date'
    ];

    public function employee()
    {
        return $this->belongsTo(Employee::class,'employee_id');
    }
}
