<?php

namespace App\Models;

use App\Models\Kriteria;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class TipeKriteria extends Model
{
    use HasFactory;

    protected $table = 'tipe_kriteria';
    protected $primaryKey = 'id';
    protected $fillable = [
        'nama',
    ];
    public function kriteria() {
        return $this->hasMany(Kriteria::class, 'id');
    }
}
