<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class WalletAddress extends Model {
 protected $fillable=['wallet_id','merchant_id','invoice_id','network','address','derivation_index','provider_ref','environment','alias','status','provider_balance_atomic','balance_synced_at','last_collected_at'];
 protected function casts():array{return ['balance_synced_at'=>'datetime','last_collected_at'=>'datetime'];}
 public function invoice(){return $this->belongsTo(Invoice::class);}
 public function collections(){return $this->hasMany(AddressCollection::class);}
}
