StoreTracking.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace addons\Store\common\models;
  3. use common\enums\StatusEnum;
  4. use common\models\base\BaseActiveRecord;
  5. use Yii;
  6. /**
  7. * This is the model class for table "qimall_addons_store_cate".
  8. *
  9. * @property int $id
  10. * @property int $mall_id
  11. * @property int $store_id 门店id
  12. * @property int $user_id 用户id
  13. * @property int $browse_num 浏览次数
  14. * @property int $track_date 日期,格式ymd[20240826]
  15. * @property int $status 状态[0禁用 1启用 -1删除]
  16. * @property int $created_at 创建时间
  17. * @property int $updated_at 修改时间
  18. */
  19. class StoreTracking extends BaseActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%addons_store_tracking}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['mall_id', 'store_id', 'user_id', 'browse_num', 'track_date', 'created_at', 'updated_at','status'], 'integer']
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'mall_id' => 'Mall ID',
  45. 'store_id' => '门店ID',
  46. 'user_id' => '用户ID',
  47. 'browse_num' => '浏览次数',
  48. 'track_date' => '日期,格式ymd[20240826]',
  49. 'status' => '状态[0禁用 1启用 -1删除]',
  50. 'created_at' => '创建时间',
  51. 'updated_at' => '修改时间',
  52. ];
  53. }
  54. }