UserViews.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%user_views}}".
  11. *
  12. * @property int $id
  13. * @property int|null $store_id
  14. * @property int|null $user_id
  15. * @property int|null $goods_id 商品id
  16. * @property int|null $visitors 访客数
  17. * @property int|null $views 浏览量
  18. * @property string|null $goods_type 秒杀ms拼团pt预约yy砍价bargain
  19. * @property int|null $updated_at 更新时间
  20. */
  21. class UserViews extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%user_views}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['store_id', 'user_id', 'goods_id', 'visitors', 'views', 'updated_at'], 'integer'],
  37. [['goods_type'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'store_id' => 'Store ID',
  48. 'user_id' => 'User ID',
  49. 'goods_id' => '商品id',
  50. 'visitors' => '访客数',
  51. 'views' => '浏览量',
  52. 'goods_type' => '秒杀ms拼团pt预约yy砍价bargain',
  53. 'updated_at' => '更新时间',
  54. ];
  55. }
  56. }