FugouCart.php 919 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use Yii;
  10. /**
  11. * This is the model class for table "{{%fugou_cart}}".
  12. *
  13. * @property integer $id
  14. * @property integer $user_id
  15. * @property float $price
  16. * @property integer $store_id
  17. * @property integer $num
  18. * @property integer $goods_id
  19. * @property string $attr
  20. */
  21. class FugouCart extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%fugou_cart}}';
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['user_id', 'store_id', 'goods_id', 'num'], 'integer'],
  37. [['price'], 'number'],
  38. [['attr'], 'string'],
  39. ];
  40. }
  41. }