BusinessCart.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. class BusinessCart extends \yii\db\ActiveRecord
  9. {
  10. /**
  11. * @inheritdoc
  12. */
  13. public static function tableName()
  14. {
  15. return '{{%business_cart}}';
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function rules()
  21. {
  22. return [
  23. [['store_id', 'saas_id', 'goods_id', 'attr'], 'required'],
  24. [['store_id', 'saas_id', 'goods_id', 'num', 'created_at', 'is_delete'], 'integer'],
  25. [['attr'], 'string'],
  26. ];
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function attributeLabels()
  32. {
  33. return [
  34. 'id' => 'ID',
  35. 'store_id' => 'Store ID',
  36. 'saas_id' => '用户id',
  37. 'goods_id' => '商品id',
  38. 'num' => '商品数量',
  39. 'created_at' => 'created_at',
  40. 'is_delete' => 'Is Delete',
  41. 'attr' => '规格',
  42. ];
  43. }
  44. }