<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%IMPORT_SCORE}}".
 *
 * @property string $ID ID
 * @property string $USER_ID 会员ID
 * @property string $USER_NAME 会员编号
 * @property string $REAL_NAME
 * @property string $LEVEL_NAME
 * @property string $EMP_LEVEL_NAME
 * @property string $BONUS_TOTAL
 * @property string $ORI_BONUS_TOTAL
 * @property string $BASE_SCORE 基础分数
 * @property string $LEVEL_SCORE 级别分数
 * @property string $UPGRADE_SCORE 升级分数
 * @property string $TOTAL_SCORE 总分数
 */
class ImportScore extends \common\components\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%IMPORT_SCORE}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['ID', 'USER_ID', 'USER_NAME', 'REAL_NAME', 'LEVEL_NAME', 'EMP_LEVEL_NAME'], 'required'],
            [['BONUS_TOTAL', 'ORI_BONUS_TOTAL', 'BASE_SCORE', 'LEVEL_SCORE', 'UPGRADE_SCORE', 'TOTAL_SCORE'], 'number'],
            [['ID', 'USER_ID', 'USER_NAME', 'REAL_NAME', 'LEVEL_NAME', 'EMP_LEVEL_NAME'], 'string', 'max' => 32],
            [['ID'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'USER_ID' => '会员ID',
            'USER_NAME' => '会员编号',
            'REAL_NAME' => 'Real  Name',
            'LEVEL_NAME' => 'Level  Name',
            'EMP_LEVEL_NAME' => 'Emp  Level  Name',
            'BONUS_TOTAL' => 'Bonus  Total',
            'ORI_BONUS_TOTAL' => 'Ori  Bonus  Total',
            'BASE_SCORE' => '基础分数',
            'LEVEL_SCORE' => '级别分数',
            'UPGRADE_SCORE' => '升级分数',
            'TOTAL_SCORE' => '总分数',
        ];
    }
}
