<?php

namespace App\Models\atmodels;

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

class Airtime_group extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'airtime_groups';
    public $primaryKey = 'group_id';
    public $timestamps = false;
    protected  $fillable = [
        'group_id',
        'customer_id',
        'name',
        'description',
        'ShopID',
    ];
    //rlshp
    // contact group
    public function groupContacts()
    {
        return $this->hasMany(\App\Models\atmodels\Airtime_contact::class, 'group_id','group_id');
    }
}
