<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class CollectionCenter extends Model
{
    use SoftDeletes;

    protected $primaryKey = 'CC_Id';

    protected $fillable = [
        'Wrd_Id',
        'CC_Code',
        'CC_Name',
        'CC_Type',
        'Cash_Limit',
        'Address',
        'Contact_No',
        'Is_Active'
    ];

    public function ward()
    {
        return $this->belongsTo(WardMaster::class, 'Wrd_Id', 'Wrd_Id');
    }
}
