<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class WithdrawHistory extends LegacyModel
{
    protected $table = 'withdrawhistory';

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

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