xhUserByMonth.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhUserByMonth".
  5. *
  6. * @property int $id
  7. * @property int $year 年
  8. * @property int $month 月份
  9. * @property int $riseNum 增减人数,可能是负数,如取消关注
  10. * @property int $totalNum 总人数
  11. * @property int $merchantId 商家id
  12. * @property string $createTime 创建时间
  13. * @property string $updateTime
  14. */
  15. class xhUserByMonth extends xhBaseModel
  16. {
  17. /**
  18. * @inheritdoc
  19. */
  20. public static function tableName()
  21. {
  22. return 'xhUserByMonth';
  23. }
  24. /**
  25. * @inheritdoc
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['year', 'month', 'riseNum', 'totalNum', 'merchantId'], 'integer'],
  31. [['createTime'], 'required'],
  32. [['createTime', 'updateTime'], 'safe'],
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'year' => 'Year',
  43. 'month' => 'Month',
  44. 'riseNum' => 'Rise Num',
  45. 'totalNum' => 'Total Num',
  46. 'merchantId' => 'Merchant ID',
  47. 'createTime' => 'Create Time',
  48. 'updateTime' => 'Update Time',
  49. ];
  50. }
  51. }