<?php

namespace App\Models\bmmodels;

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

class CustomerGroup extends Model
{
    use SoftDeletes;
    protected $connection = 'mysql_bmp';
    protected $primaryKey = 'cust_group_id'; 
    protected $fillable = [
        'cust_group_id',
        'cust_group_name',
        'cust_group_status',
        'customer_cust_id',
        'created_by'
    ];
    //group<>clientgroup relationshiop
    public function GroupClientGroup()
    {
        return $this->hasOne(CustomerClientGroup::class,'customer_group_cust_group_id');
    }
}
