<?php

namespace App\Models\Dataset;

use Illuminate\Database\Eloquent\SoftDeletes;

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

class DatasetTable57 extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $table = 'dataset_table57';
    protected $primaryKey = 'DatasetTable57Id';

    protected $guarded = [];

    function dataset() {
        return $this->belongsTo('App\Models\Dataset','dataset_id');
    }

    public static function legend() {
        $html = "
            Penjelasan Isi Tabel:<br>
            (1) dan (2) Cukup Jelas<br>
            (3)-(4) Diisi dengan nilai PDRB Atas Dasar Harga Konstan sektor/sub sektor pada masing-masing daerah yang bersangkutan sesuai publikasi Badan Pusat Statistik selama 2 (dua) tahun<br>
        ";
        return $html;
    }

}
