<?php

namespace App\Models\atmodels;

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

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