<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%USER_PERF_MONTH_UPDATE}}".
 *
 * @property string $USER_ID 会员ID
 * @property int $CALC_MONTH 更新时的年月
 * @property int $CREATED_AT 创建时间
 */
class UserPerfMonthUpdate extends \common\components\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%USER_PERF_MONTH_UPDATE}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['USER_ID', 'CALC_MONTH', 'CREATED_AT'], 'required'],
            [['CALC_MONTH', 'CREATED_AT'], 'integer'],
            [['USER_ID'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'USER_ID' => '会员ID',
            'CALC_MONTH' => '更新时的年月',
            'CREATED_AT' => '创建时间',
        ];
    }
}
