<?php

namespace App\Models;

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

class Medidor extends Model
{
    use HasFactory;

    protected $table = 'medidor';
    protected $primaryKey = 'id_medidor';

    protected $fillable = [
        'numero_serie',
        'marca',
        'modelo',
        'fecha_instalacion',
        'estado',
    ];

    protected $casts = [
        'fecha_instalacion' => 'date',
    ];
}
