<?php

namespace App\Models;

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

class EpbtPelanggan extends Model
{
    use HasFactory;

    protected $connection = 'second_mysql';
    protected $table = 'epbt_pelanggan';
    protected $primaryKey = 'nopelanggan';
    public $incrementing = false;
    protected $keyType = 'string';
    

    public function bilpels(){
        return $this->hasMany(EpbtBpBil::class, 'nopelanggan', 'nopelanggan');
    }

}
