<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class WhatsappLog extends Model
{
    public $timestamps = false;

    protected $guarded = [];

    protected $casts = [
        'payload'    => 'array',
        'leido'      => 'boolean',
        'created_at' => 'datetime',
    ];

    public function alumno(): BelongsTo
    {
        return $this->belongsTo(Alumno::class);
    }
}
