/
home
/
corsairdevelopme
/
public_html
/
amplivo-console
/
app
/
Models
/
Upload File
HOME
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CsrPurchase extends Model { const STATUS_NEW = 1; const STATUS_PENDING = 2; const STATUS_DONE = 3; const STATUS_EXPORTED = 4; const STATUS_ERROR = 9; const TYPE_LEGACY = 'legacy'; const TYPE_EXPRESS = 'express'; const TYPE_MANUAL = 'manual'; const GAS_PRICE_SAFE_LOW = 'safe_low'; const GAS_PRICE_AVERAGE = 'average'; const GAS_PRICE_FAST = 'fast'; const GAS_PRICE_FASTEST = 'fastest'; use HasFactory; protected $table = "csr_purchase"; protected $fillable = [ 'reference', 'type', 'wallet_id', 'flp_amount', 'address', 'current_rate', 'token_amount', 'gas_price', 'gas_price_eth', 'fee_eth', 'fee_eur', 'eth_eur_rate', 'status', 'token_api_id', 'exported_at' ]; }