<?php

namespace App\Models\atmodels;

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

class Currency_expenditure extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'currency_expenditure';
    public $timestamps = false;
    protected  $fillable = [
        'shopid',
        'amount',
        'date_time',
        'description',
        'destination',
        'sms',
        'source',
        'origin',
        'sms_size',
        'unit_cost',
        'price',
        'status',
        'messageid',
    ];
              //Currency_expenditure<>  Shop relationship
              public function Currency_expenditureShop()
              {
                  return $this->belongsTo(\App\Models\atmodels\Shop::class, 'shopid');
              }
}
