<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%EXCEL_WITHDRAW_PAID_FALSE}}".
 *
 * @property string $ID
 * @property string $EXCEL_IMPORT_ID 导入记录表ID
 * @property string $SN 提现流水号
 * @property int $WITHDRAW_PERIOD_NUM 提现期数
 * @property string $PAID_AT 付款日期
 * @property string $PAID_FAIL_REMARK 付款失败原因
 * @property string $USER_NAME 会员编号
 * @property string $REAL_NAME 会员姓名
 * @property string $AMOUNT 实付金额
 * @property string $BANK_REAL_NAME 实时开户名
 * @property string $BANK_NO 实时银行账户
 * @property int $SORT 序号
 * @property int $STATUS 状态
 * @property string $ERROR_REMARK 错误记录
 * @property int $CREATED_AT 创建时间
 */
class ExcelWithdrawPaidFalse extends \common\components\ActiveRecord {
    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%EXCEL_WITHDRAW_PAID_FALSE}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['EXCEL_IMPORT_ID', 'SN', 'USER_NAME', 'REAL_NAME', 'BANK_REAL_NAME', 'BANK_NO'], 'required'],
            [['WITHDRAW_PERIOD_NUM', 'SORT', 'STATUS', 'CREATED_AT'], 'integer'],
            [['AMOUNT'], 'number'],
            [['ID', 'EXCEL_IMPORT_ID', 'SN', 'REAL_NAME', 'BANK_NO'], 'string', 'max' => 32],
            [['PAID_FAIL_REMARK', 'ERROR_REMARK'], 'string', 'max' => 1000],
            [['USER_NAME'], 'string', 'max' => 16],
            [['PAID_AT'], 'string', 'max' => 32],
            [['BANK_REAL_NAME'], 'string', 'max' => 255],
            [['ID'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'ID' => 'ID',
            'EXCEL_IMPORT_ID' => '导入记录表ID',
            'SN' => '提现流水号',
            'WITHDRAW_PERIOD_NUM' => '提现期数',
            'PAID_AT' => '付款日期',
            'PAID_FAIL_REMARK' => '付款失败原因',
            'USER_NAME' => '会员编号',
            'REAL_NAME' => '会员姓名',
            'AMOUNT' => '实付金额',
            'BANK_REAL_NAME' => '实时开户名',
            'BANK_NO' => '实时银行账户',
            'SORT' => '序号',
            'STATUS' => '状态',
            'ERROR_REMARK' => '错误记录',
            'CREATED_AT' => '创建时间',
        ];
    }
}
