<?php

declare(strict_types=1);

namespace PHPMax\Domain;

use PHPMax\Support\Model;

class Session extends Model
{
     
    public $id;
     
    public $deviceId;
     
    public $current;
     
    public $userAgent;
     
    public $appVersion;
     
    public $deviceName;
     
    public $deviceType;
     
    public $platform;
     
    public $ip;
     
    public $location;
     
    public $created;
     
    public $updated;
     
    public $lastActivity;
     
    public $options;

    protected static function schema(): array
    {
        return [
            'id' => ['type' => 'mixed'],
            'deviceId' => ['type' => 'string'],
            'current' => ['type' => 'bool'],
            'userAgent' => ['type' => 'string'],
            'appVersion' => ['type' => 'string'],
            'deviceName' => ['type' => 'string'],
            'deviceType' => ['type' => 'string'],
            'platform' => ['type' => 'string'],
            'ip' => ['type' => 'string'],
            'location' => ['type' => 'string'],
            'created' => ['type' => 'int'],
            'updated' => ['type' => 'int'],
            'lastActivity' => ['type' => 'int'],
            'options' => ['type' => 'mixed'],
        ];
    }
}
