<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class WalletHistory extends LegacyModel
{
    protected $table = 'wallethistory';

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

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