StoreGoodsTracking.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 $goods_id 商品id
  13. * @property int $user_id 用户id
  14. * @property int $browse_num 浏览次数
  15. * @property int $track_date 日期,格式ymd[20240826]
  16. * @property int $status 状态[0禁用 1启用 -1删除]
  17. * @property int $created_at 创建时间
  18. * @property int $updated_at 修改时间
  19. */
  20. class StoreGoodsTracking extends BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addons_store_goods_tracking}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'store_id', 'goods_id', 'user_id', 'browse_num', 'track_date', 'created_at', 'updated_at','status'], 'integer']
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'mall_id' => 'Mall ID',
  46. 'store_id' => '门店ID',
  47. 'goods_id' => '商品ID',
  48. 'user_id' => '用户ID',
  49. 'browse_num' => '浏览次数',
  50. 'track_date' => '日期,格式ymd[20240826]',
  51. 'status' => '状态[0禁用 1启用 -1删除]',
  52. 'created_at' => '创建时间',
  53. 'updated_at' => '修改时间',
  54. ];
  55. }
  56. }