<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ChainTransaction extends Model { protected $fillable=['network','tx_hash','asset_id','from_address','to_address','contract_address','token_decimals','amount_atomic','block_height','confirmations','finality_status','transfer_index','detected_at']; protected function casts():array{return ['detected_at'=>'datetime'];} public function asset(){return $this->belongsTo(Asset::class);} public function invoiceLinks(){return $this->hasMany(InvoiceTransaction::class);} }
