| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- /*
- * @Author: your name
- * @Date: 2021-03-02 09:50:20
- * @LastEditTime: 2021-05-15 11:49:19
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: \admin_php\models\Cart.php
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%cart}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $user_id 用户id
- * @property int $goods_id 商品id
- * @property int $num 商品数量
- * @property int $created_at
- * @property int $is_delete
- * @property string $attr 规格
- * @property int $mch_id 入驻商id
- * @property int $md_id 门店id
- */
- class Cart extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%cart}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'goods_id', 'attr'], 'required'],
- [['store_id', 'user_id', 'goods_id', 'num', 'created_at', 'is_delete', 'mch_id', 'md_id'], 'integer'],
- [['attr'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'user_id' => '用户id',
- 'goods_id' => '商品id',
- 'num' => '商品数量',
- 'created_at' => 'created_at',
- 'is_delete' => 'Is Delete',
- 'attr' => '规格',
- 'mch_id' => '入驻商id',
- ];
- }
- }
|