CartOffline.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 "{{%cart}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $user_id
  15. * @property integer $goods_id
  16. * @property integer $num
  17. * @property integer $addtime
  18. * @property integer $is_delete
  19. * @property string $attr
  20. */
  21. class CartOffline extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%cart_offline}}';
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['store_id', 'user_id', 'goods_id', 'attr'], 'required'],
  37. [['store_id', 'user_id', 'goods_id', 'num', 'addtime', 'is_delete'], 'integer'],
  38. [['attr'], 'string'],
  39. ];
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'store_id' => 'Store ID',
  49. 'user_id' => '用户id',
  50. 'goods_id' => '商品id',
  51. 'num' => '商品数量',
  52. 'addtime' => 'Addtime',
  53. 'is_delete' => 'Is Delete',
  54. 'attr' => '规格',
  55. ];
  56. }
  57. }