<?php

namespace app\model;

use support\Model;

/**
 * Withdraw - 用户提现记录模型
 *
 * @property int $id 用户提现记录唯一标识符
 * @property int $user_id 用户 ID
 * @property float $amount 转账金额
 * @property string|null $status 状态码 1申请中 2 已到账 3已驳回 4等待银行打款 5支付失败
 * @property string|null $createtime2 创建时间
 * @property string|null $username 账号
 * @property string|null $status_text 状态解释
 * @property string|null $created_at 创建时间
 * @property string|null $updated_at 更新时间
 * @property string|null $order_number 订单编号
 * @property string $account 提现银行账户
 * @property string $bank_name 提现银行
 * @property string $bank_username 提现银行用户名
 * @property int $accumulated 积分
 * @property int $fee 手续费
 */
class Withdraw extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'withdraw';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';


    // public $timestamps = false;
    protected $fillable = [
        'user_id',
        'amount',
        'status',
        'createtime2',
        'username',
        'status_text',
        'order_number',
        'account',
        'bank_name',
        'bank_username',
        'accumulated',
        'fee',
    ];
}