<?php

namespace App\Models\atmodels;

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

class CreditTopup extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'credit_topup';
    public $timestamps = false;
    protected  $fillable = [
        'topupid',
        'credit_amount',
        'topup_time',
        'description',
        'shop_id'
    ];
         //Currency_expenditure<>  Shop relationship
         public function Currency_creditShop()
         {
             return $this->belongsTo(Shop::class, 'shopid');
         }
}
