<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CryptoPaymentTransaction extends Model
{
    use HasFactory;

    protected $fillable = [
        'user_id',
        'order_id',
        'currency_code',
        'network',
        'wallet_address',
        'tx_hash',
        'amount_crypto',
        'amount_inr',
        'status',
        'payload',
        'confirmed_at',
    ];

    protected $casts = [
        'amount_crypto' => 'decimal:8',
        'amount_inr' => 'decimal:2',
        'payload' => 'array',
        'confirmed_at' => 'datetime',
    ];
}
