| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- /**
- *
- * @property integer $id
- * @property integer $cat_id
- * @property integer $store_cat_id
- * @property integer $store_id
- * @property integer $saas_id
- * @property integer $goods_id
- * @property integer $num
- * @property string $attr
- * @property integer $created_at
- * @property integer $is_delete
- */
- class CloudInventory extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%cloud_inventory}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- // [['cat_id', 'goods_id', 'num','saas_id', 'attr'], 'required'],
- [[ 'cat_id', 'store_cat_id', 'goods_id','saas_id', 'num', 'is_delete'], 'integer'],
- [['attr'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'cat_id' => '分类id',
- 'store_cat_id' => '店铺分类id',
- 'saas_id' => '商盟用户id',
- 'goods_id' => '商品id',
- 'num' => '商品数量',
- 'attr' => '商品规格',
- 'is_delete' => 'Is Delete',
- ];
- }
- }
|