<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class LeasingDataUpload extends Model
{
    protected $fillable = ['leasing_profile_id', 'filename', 'row_count', 'status'];

    public function leasingProfile()
    {
        return $this->belongsTo(LeasingProfile::class);
    }

    public function records()
    {
        return $this->hasMany(LeasingRecord::class, 'upload_id');
    }
}
