<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%INVOICE_BALANCE_AUDIT}}".
 *
 * @property string $ID
 * @property string $USER_ID 会员ID
 * @property string $AMOUNT 调整金额
 * @property int $AUDIT_STATUS 审核状态
 * @property string $CREATE_ADMIN 创建管理员
 * @property string $AUDIT_ADMIN 审核管理员
 * @property string $CREATE_REMARK 申请备注
 * @property string $AUDIT_REMARK 审核备注
 * @property int $CREATED_AT 创建时间
 * @property int $AUDITED_AT 审核时间
 */
class InvoiceBalanceAudit extends \common\components\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%INVOICE_BALANCE_AUDIT}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['USER_ID', 'CREATE_ADMIN', 'CREATED_AT'], 'required'],
            [['AMOUNT'], 'number'],
            [['AUDIT_STATUS', 'CREATED_AT', 'AUDITED_AT'], 'integer'],
            [['ID', 'USER_ID', 'CREATE_ADMIN', 'AUDIT_ADMIN'], 'string', 'max' => 32],
            [['CREATE_REMARK', 'AUDIT_REMARK'], 'string', 'max' => 4000],
            [['ID'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'USER_ID' => '会员ID',
            'AMOUNT' => '调整金额',
            'AUDIT_STATUS' => '审核状态',
            'CREATE_ADMIN' => '创建管理员',
            'AUDIT_ADMIN' => '审核管理员',
            'CREATE_REMARK' => '申请备注',
            'AUDIT_REMARK' => '审核备注',
            'CREATED_AT' => '创建时间',
            'AUDITED_AT' => '审核时间',
        ];
    }
}