<?php

namespace App\Models;

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

class Lotizacion extends Model
{
    use HasFactory;

    protected $table = 'lotizacion';
    protected $primaryKey = 'id_lotizacion';
    public $timestamps = true;

    protected $fillable = [
        'nombre_lotizacion',
        'id_urbanizacion',
        'fecha_creacion',
        'estado',
    ];

    public function urbanizacion()
    {
        return $this->belongsTo(Urbanizacion::class, 'id_urbanizacion');
    }
}
