xhUnionUser.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhUnionUser".
  5. *
  6. * @property integer $id
  7. * @property string $unionId
  8. * @property string $realName
  9. * @property string $nickName
  10. * @property string $mobile
  11. * @property integer $createTime
  12. * @property string $updateTime
  13. */
  14. class xhUnionUser extends xhBaseModel
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return 'xhUnionUser';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['createTime'], 'integer'],
  30. [['updateTime'], 'safe'],
  31. [['unionId'], 'string', 'max' => 100],
  32. [['realName', 'nickName'], 'string', 'max' => 50],
  33. [['mobile'], 'string', 'max' => 15],
  34. [['unionId'], 'unique'],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'unionId' => 'Union ID',
  45. 'realName' => 'Real Name',
  46. 'nickName' => 'Nick Name',
  47. 'mobile' => 'Mobile',
  48. 'createTime' => 'Create Time',
  49. 'updateTime' => 'Update Time',
  50. ];
  51. }
  52. }