| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%TMP_OLD_NETWORK_ALL}}".
- *
- * @property string $ID
- * @property string $USER_NAME 编号
- * @property string $REAL_NAME 姓名
- * @property string $PARENT_USER_NAME 上级编号
- * @property string $PARENT_REAL_NAME 上级姓名
- * @property string $NET_USER_NAME 安置人编号
- * @property string $NET_REAL_NAME 安置人姓名
- * @property int $SORT 排序
- * @property int $NET_DEEP 安置深度
- * @property int $REC_DEEP 推荐深度
- */
- class TmpOldNetworkAll extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%TMP_OLD_NETWORK_ALL}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['USER_NAME', 'REAL_NAME', 'PARENT_USER_NAME', 'PARENT_REAL_NAME', 'NET_USER_NAME', 'NET_REAL_NAME'], 'required'],
- [['SORT','NET_DEEP','REC_DEEP'], 'integer'],
- [['ID'], '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' => '姓名',
- 'PARENT_USER_NAME' => '上级编号',
- 'PARENT_REAL_NAME' => '上级姓名',
- 'NET_USER_NAME' => '安置人编号',
- 'NET_REAL_NAME' => '安置人姓名',
- 'SORT' => '排序',
- 'NET_DEEP' => '安置深度',
- 'REC_DEEP' => '推荐深度',
- ];
- }
- }
|