<?php

namespace App\Models;

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

class IndicatorEntry extends Model
{
    use SoftDeletes;

    protected $table = 'indicator_entries';
    protected $primaryKey = 'indicator_entry_id';
    protected $fillable = ['user_id', 'office_id', 'indicator_id', 'value', 'year', 'month'];

    public function indicator()
    {
        return $this->belongsTo(Indicator::class, 'indicator_id', 'indicator_id');
    }
}
