<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%TMP_FREEZE_USER}}".
 *
 * @property string $ID
 * @property string $USER_NAME 编号
 * @property string $REAL_NAME 名称
 */
class TmpFreezeUser extends \common\components\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%TMP_FREEZE_USER}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['USER_NAME', 'REAL_NAME'], 'required'],
            [['ID'], 'string', 'max' => 32],
            [['ID'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'USER_NAME' => '编号',
            'REAL_NAME' => '名称',
        ];
    }
}
