<?php

namespace App\Models;

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

class PtwMapChecklistOption extends Model
{
    use HasFactory;
    protected $primaryKey = 'MAP_CHECKLIST_OPTION_ID';

    protected $table = 'PTW_MAP_CHECKLIST_OPTION';
    public $timestamps = false;

    public $fillable = ["CHECKLIST_ID","CHECKLIST_OPTION_ID"];

    public function option()
    {
        return $this->belongsTo(PtwMstChecklistOption::class, 'CHECKLIST_OPTION_ID', 'CHECKLIST_OPTION_ID');
    }
}
