<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class WalletUser extends LegacyModel
{
    protected $table = 'walletusers';

    protected function casts(): array
    {
        return [
            'walletamount' => 'float',
            'updatedtime' => 'datetime',
        ];
    }

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class, 'userid');
    }
}
