| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%USER_REG}}".
- *
- * @property string $ID
- * @property string $USER_NAME 编号
- * @property string $REAL_NAME 姓名
- * @property string $CON_UID 安置ID
- * @property string $REC_UID 上级ID
- * @property string $PARENT_USER_NAME 上级编号
- * @property string $PARENT_REAL_NAME 上级姓名
- * @property string $NET_USER_NAME 安置人编号
- * @property string $NET_REAL_NAME 安置人姓名
- */
- class UserReg extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%USER_REG}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['USER_NAME', 'REAL_NAME', 'PARENT_USER_NAME', 'PARENT_REAL_NAME', 'NET_USER_NAME', 'NET_REAL_NAME'], 'required'],
- [['ID','CON_UID','REC_UID'], 'string', 'max' => 32],
- [['USER_NAME', 'PARENT_USER_NAME', 'NET_USER_NAME'], 'string', 'max' => 16],
- [['REAL_NAME', 'PARENT_REAL_NAME', 'NET_REAL_NAME'], 'string', 'max' => 128],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_NAME' => '编号',
- 'REAL_NAME' => '姓名',
- 'CON_UID' => '安置人ID',
- 'REC_UID' => '上级ID',
- 'PARENT_USER_NAME' => '上级编号',
- 'PARENT_REAL_NAME' => '上级姓名',
- 'NET_USER_NAME' => '安置人编号',
- 'NET_REAL_NAME' => '安置人姓名',
- ];
- }
- }
|