Stat.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. namespace common\models\member;
  3. use common\models\base\BaseModel;
  4. use common\traits\HasOneMember;
  5. /**
  6. * This is the model class for table "{{%addon_tiny_vision_member_stat}}".
  7. *
  8. * @property int $id
  9. * @property int|null $merchant_id 商户id
  10. * @property int|null $store_id 店铺id
  11. * @property int|null $member_id 用户id
  12. * @property int|null $nice_num 点赞数量
  13. * @property int|null $disagree_num 不赞同数量
  14. * @property int|null $transmit_num 转发数量
  15. * @property int|null $comment_num 评论数量
  16. * @property int|null $collect_num 收藏
  17. * @property int|null $report_num 举报数量
  18. * @property int|null $recommend_num 推荐数量
  19. * @property int|null $follow_num 关注人数
  20. * @property int|null $allowed_num 被关注人数
  21. * @property int|null $view 浏览量
  22. * @property int $status 状态[-1:删除;0:禁用;1启用]
  23. * @property int $created_at 创建时间
  24. * @property int $updated_at 更新时间
  25. */
  26. class Stat extends BaseModel
  27. {
  28. use HasOneMember;
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%member_stat}}';
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [
  43. [
  44. 'merchant_id',
  45. 'store_id',
  46. 'member_id',
  47. 'nice_num',
  48. 'disagree_num',
  49. 'transmit_num',
  50. 'comment_num',
  51. 'collect_num',
  52. 'report_num',
  53. 'recommend_num',
  54. 'follow_num',
  55. 'allowed_num',
  56. 'view',
  57. 'status',
  58. 'created_at',
  59. 'updated_at',
  60. ],
  61. 'integer',
  62. ],
  63. ];
  64. }
  65. /**
  66. * {@inheritdoc}
  67. */
  68. public function attributeLabels()
  69. {
  70. return [
  71. 'id' => 'ID',
  72. 'merchant_id' => '商户id',
  73. 'store_id' => '店铺id',
  74. 'member_id' => '用户id',
  75. 'nice_num' => '点赞数量',
  76. 'disagree_num' => '不赞同数量',
  77. 'transmit_num' => '转发数量',
  78. 'comment_num' => '评论数量',
  79. 'collect_num' => '收藏',
  80. 'report_num' => '举报数量',
  81. 'recommend_num' => '推荐数量',
  82. 'follow_num' => '关注人数',
  83. 'allowed_num' => '被关注人数',
  84. 'view' => '浏览量',
  85. 'status' => '状态',
  86. 'created_at' => '创建时间',
  87. 'updated_at' => '更新时间',
  88. ];
  89. }
  90. }
粤ICP备19079148号