<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class VisitChecklist extends Model
{
    protected $fillable = ['visit_id','user_id','data','completed','completed_at','signature_path'];

    protected $casts = [
        'data' => 'array',
        'completed' => 'boolean',
        'completed_at' => 'datetime',
    ];

    public function visit() { return $this->belongsTo(Visit::class); }
    public function user() { return $this->belongsTo(User::class); }
}
