<?php

declare(strict_types=1);

namespace PHPMax\Domain\Events;

use PHPMax\Support\Model;

class MessageReadEvent extends Model
{
     
    public $setAsUnread;
     
    public $chatId;
     
    public $userId;
     
    public $mark;

    protected static function schema(): array
    {
        return [
            'setAsUnread' => ['type' => 'bool', 'required' => true],
            'chatId' => ['type' => 'int', 'required' => true],
            'userId' => ['type' => 'int', 'required' => true],
            'mark' => ['type' => 'int', 'required' => true],
        ];
    }
}
