| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- /**
- * Class CloudInventoryCash
- * @package app\modules\common\models
- *
- * @property integer $id
- * @property integer $saas_id
- * @property integer $saas_type
- * @property string $saas_name
- * @property string $saas_mobile
- * @property integer $action_id
- * @property integer $goods_id
- * @property integer $attr
- * @property integer $num
- * @property integer $type
- * @property integer $status
- * @property integer $before_num
- * @property integer $after_num
- * @property integer $purchase_order_id
- * @property string $purchase_order_no
- * @property integer $order_type
- * @property string $original_order_no
- * @property integer $original_order_id
- * @property string $desc
- * @property integer $created_at
- */
- class CloudInventoryLog extends \yii\db\ActiveRecord
- {
- /**
- * @return string
- */
- public static function tableName()
- {
- return '{{%cloud_inventory_log}}';
- }
- public function rules()
- {
- return [
- [['id', 'saas_id','saas_type', 'action_id','type','status','purchase_order_id','original_order_id','order_type','created_at'],'integer'],
- [['desc','saas_name' ,'saas_mobile','purchase_order_no','original_order_no'], 'string']
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'action_id' => '行为用户ID',
- 'saas_id' => '商盟用户id',
- 'num' => '库存',
- 'type' => '变动库存类型',
- 'status' => '用户类型',
- 'before_num' => '变动之前库存',
- 'after_num' => '变动之后的库存',
- 'desc' => '备注',
- 'purchase_order_id' => '关联订单ID',
- 'order_type' => '订单类型',
- 'created_at' => '添加时间'
- ];
- }
- }
|