<?php

namespace App\Models;

class ThirdGameRecycle extends BaseModel
{
    public const STATUS_PENDING = 'pending';
    public const STATUS_PROVIDER_SUCCEEDED = 'provider_succeeded';
    public const STATUS_COMPLETED = 'completed';
    public const STATUS_FAILED = 'failed';
    public const STATUS_UNCERTAIN = 'uncertain';

    protected $table = 'third_game_recycles';

    protected $hidden = [];

    protected $fillable = [
        'operation_id',
        'member_id',
        'player_id',
        'status',
        'game_balance',
        'wallet_balance',
        'error',
        'resolution_remark',
        'credited_at',
    ];

    protected $casts = [
        'game_balance' => 'decimal:10',
        'wallet_balance' => 'decimal:10',
        'credited_at' => 'datetime',
    ];
}
