<?php

namespace App\Models\atmodels;

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

class Shop extends Model
{
    protected $connection = 'mysql_temp';
    protected  $table = 'shop';
    protected $primaryKey = 'ShopID';
    public $timestamps = false;
    protected  $fillable = [
        'ShopID',
        'Name',
        'Branch',
        'Mobile',
        'Email',
        'Address',
        'sms_name',
        'tail_message',
        'client_type',
        'county_id',
        'mpesa_account_name',
        'credit_update_status',
    ];
    //shop<>  Airtime API Log
    public function ShopAirtimeAPILog()
    {
        return $this->hasMany(Airtime_api_log::class, 'shopid');
    }
}
