<?php
namespace App\Models;
class Collect extends BaseModel
{
    protected $table = 'collects';
    // ✅ 允许批量赋值的字段
    protected $fillable = [
        'from_address',
        'to_address',
        'amount',
        'coin',
        'net',
        'status',
        'txid',
        'fee',
        'confirmations',
        'block_number',
        'remark',
    ];

    const STATUS_STAY = 0;
    const STATUS_START = 1;
    const STATUS_SUCCESS = 2;
    const STATUS_FAIL = 3;

    public static $STATUS = [
        0 => '待处理',
        1 => '已发起',
        2 => '已确认',
        3 => '失败',
    ];
}
