CloudInventoryLog.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class CloudInventoryCash
  10. * @package app\modules\common\models
  11. *
  12. * @property integer $id
  13. * @property integer $saas_id
  14. * @property integer $saas_type
  15. * @property string $saas_name
  16. * @property string $saas_mobile
  17. * @property integer $action_id
  18. * @property integer $goods_id
  19. * @property integer $attr
  20. * @property integer $num
  21. * @property integer $type
  22. * @property integer $status
  23. * @property integer $before_num
  24. * @property integer $after_num
  25. * @property integer $purchase_order_id
  26. * @property string $purchase_order_no
  27. * @property integer $order_type
  28. * @property string $original_order_no
  29. * @property integer $original_order_id
  30. * @property string $desc
  31. * @property integer $created_at
  32. */
  33. class CloudInventoryLog extends \yii\db\ActiveRecord
  34. {
  35. /**
  36. * @return string
  37. */
  38. public static function tableName()
  39. {
  40. return '{{%cloud_inventory_log}}';
  41. }
  42. public function rules()
  43. {
  44. return [
  45. [['id', 'saas_id','saas_type', 'action_id','type','status','purchase_order_id','original_order_id','order_type','created_at'],'integer'],
  46. [['desc','saas_name' ,'saas_mobile','purchase_order_no','original_order_no'], 'string']
  47. ];
  48. }
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'action_id' => '行为用户ID',
  54. 'saas_id' => '商盟用户id',
  55. 'num' => '库存',
  56. 'type' => '变动库存类型',
  57. 'status' => '用户类型',
  58. 'before_num' => '变动之前库存',
  59. 'after_num' => '变动之后的库存',
  60. 'desc' => '备注',
  61. 'purchase_order_id' => '关联订单ID',
  62. 'order_type' => '订单类型',
  63. 'created_at' => '添加时间'
  64. ];
  65. }
  66. }