<?php

namespace App\Models\bundles;

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

class Data_Topups extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'data_topups';
    public $primaryKey = 'data_bundles_id';
    public $timestamps = false;
    protected  $fillable = [
        'data_bundles_id',
        'category',
        'clientAccount',
        'description',
        'destination',
        'destinationType',
        'direction',
        'origin',
        'productName',
        'provider',
        'providerChannel',
        'providerRefId',
        'source',
        'sourceType',
        'status',
        'transactionDate',
        'transactionId',
        'value',
    ];
    // contact <>  group relationship
    public function Databandlescategory()
    {
        return $this->hasMany(\App\Models\atmodels\Databandles::class, 'data_category_id');
    }
}
