| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?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 "{{%food_cart}}".
- *
- * @property int $id
- * @property int $flag_id
- * @property int $user_id 用户id
- * @property int $goods_id 商品id
- * @property int $num 商品数量
- * @property int $created_at
- * @property int $updated_at
- * @property int $is_delete
- * @property string $attr 规格
- */
- class FoodCart extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%food_cart}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['user_id', 'goods_id', 'attr', 'flag_id'], 'required'],
- [['user_id', 'goods_id', 'num', 'created_at', 'is_delete', 'updated_at'], 'integer'],
- [['attr'], 'string'],
- [['food_ext_goods'], 'safe'],
- ];
- }
- }
|