<?php

namespace App\Models\atmodels;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
 
class DataBandle_Contact_Group extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'databandle_contact_groups';
    public $primaryKey = 'group_id';
    public $timestamps = false;
    protected  $fillable = [
        'group_id',
        'customer_id',
        'name',
        'description',
    ];
    //rlshp
    // contact group
    public function groupContacts()
    {
        return $this->hasMany(\App\Models\atmodels\DataBandles_Customer::class, 'group_id','group_id');
    }
}
