| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhUnionUser".
- *
- * @property integer $id
- * @property string $unionId
- * @property string $realName
- * @property string $nickName
- * @property string $mobile
- * @property integer $createTime
- * @property string $updateTime
- */
- class xhUnionUser extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUnionUser';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['createTime'], 'integer'],
- [['updateTime'], 'safe'],
- [['unionId'], 'string', 'max' => 100],
- [['realName', 'nickName'], 'string', 'max' => 50],
- [['mobile'], 'string', 'max' => 15],
- [['unionId'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'unionId' => 'Union ID',
- 'realName' => 'Real Name',
- 'nickName' => 'Nick Name',
- 'mobile' => 'Mobile',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|