<?php

namespace App\Models;

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

class SocBlock extends Model
{
    use HasFactory;

    protected $table = 'soc_block';
    protected $primaryKey = 'SB_Id';
    public $timestamps = true;

    protected $fillable = [
        'SB_Name',
        'Sd_Id',
    ];

    public function division()
    {
        return $this->belongsTo(SociDivision::class, 'Sd_Id', 'Sd_Id');
    }
}
