| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%TMP_OLD_USER}}".
- *
- * @property string $ID
- * @property string $USER_NAME 编号
- * @property string $REAL_NAME 名称
- * @property string $REC_USER_NAME 推荐人编号
- * @property string $REC_REAL_NAME 推荐人姓名
- * @property string $NET_USER_NAME 安置人编号
- * @property string $NET_REAL_NAME 安置人姓名
- * @property int $SORT 排序
- */
- class TmpOldUser extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%TMP_OLD_USER}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['USER_NAME', 'REAL_NAME', 'REC_USER_NAME', 'REC_REAL_NAME', 'NET_USER_NAME', 'NET_REAL_NAME'], 'required'],
- [['SORT'], 'integer'],
- [['ID'], 'string', 'max' => 32],
- [['USER_NAME', 'REC_USER_NAME', 'NET_USER_NAME'], 'string', 'max' => 16],
- [['REAL_NAME', 'REC_REAL_NAME', 'NET_REAL_NAME'], 'string', 'max' => 128],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_NAME' => '编号',
- 'REAL_NAME' => '名称',
- 'REC_USER_NAME' => '推荐人编号',
- 'REC_REAL_NAME' => '推荐人姓名',
- 'NET_USER_NAME' => '安置人编号',
- 'NET_REAL_NAME' => '安置人姓名',
- 'SORT' => '排序',
- ];
- }
- }
|