Footprint.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\TinyShop\common\models\member;
  3. use addons\TinyShop\common\traits\HasOneProduct;
  4. /**
  5. * This is the model class for table "{{%addon_tiny_shop_member_footprint}}".
  6. *
  7. * @property int $id
  8. * @property int|null $merchant_id 商户id
  9. * @property int|null $product_id 商品id
  10. * @property int|null $member_id 用户id
  11. * @property int|null $cate_id 商品分类
  12. * @property int|null $num 浏览次数
  13. * @property int|null $status 状态
  14. * @property int|null $created_at 创建时间
  15. * @property int|null $updated_at 更新时间
  16. */
  17. class Footprint extends \common\models\base\BaseModel
  18. {
  19. use HasOneProduct;
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%addon_tiny_shop_member_footprint}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['merchant_id', 'product_id', 'member_id', 'cate_id', 'num', 'status', 'created_at', 'updated_at'], 'integer'],
  34. ];
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'merchant_id' => '商户id',
  44. 'product_id' => '商品id',
  45. 'member_id' => '用户id',
  46. 'cate_id' => '商品分类',
  47. 'num' => '浏览次数',
  48. 'status' => '状态',
  49. 'created_at' => '创建时间',
  50. 'updated_at' => '更新时间',
  51. ];
  52. }
  53. }
粤ICP备19079148号