<?php

namespace App\Models;

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

class Ranking extends Model
{
    use HasFactory;
    protected $table = 'tbl_rangking';
    protected $primaryKey = 'id';
    protected $fillable = [
        'skor_bobot',
        'alternatif'
    ];

    public $timestamps = false;

    public function account()
    {
        return $this->hasOne(Alternatif::class, 'id_alternatif', 'alternatif');
    }
}
