<?php

namespace App\Models;

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

class M_Kepemilikan extends Model
{
    use HasFactory;

    protected $table = 'tb_kandang';
    protected $primaryKey = 'id_kandang';
    protected $guarded = ['updated_at'];

    protected $fillable = [
        // 'serial_number',
        'id_user',
        'nama_kandang',

    ];
    public function user()
    {
        return $this->belongsTo(User::class, 'id_user', 'id_user');
    }
}
