<?php

namespace App\Models\atmodels;

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

class Databandles extends Model
{
    protected $connection = 'mysql_temp';
    protected $table = 'databandles';
    public $primaryKey = 'databandles_id';
    public $timestamps = false;
    protected  $fillable = [
        'databandles_id',
        'data_category_id',
        'databandles_package',
        'whatsup',
        'cost',  
    ];
    // contact <>  group relationship
    public function Databandlescategory()
    {
        return $this->belongsTo(\App\Models\atmodels\Datacategory::class, 'data_category_id','data_category_id');
    }
}
