CloudInventory.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. *
  10. * @property integer $id
  11. * @property integer $cat_id
  12. * @property integer $store_cat_id
  13. * @property integer $store_id
  14. * @property integer $saas_id
  15. * @property integer $goods_id
  16. * @property integer $num
  17. * @property string $attr
  18. * @property integer $created_at
  19. * @property integer $is_delete
  20. */
  21. class CloudInventory extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%cloud_inventory}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. // [['cat_id', 'goods_id', 'num','saas_id', 'attr'], 'required'],
  37. [[ 'cat_id', 'store_cat_id', 'goods_id','saas_id', 'num', 'is_delete'], 'integer'],
  38. [['attr'], 'string'],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'cat_id' => '分类id',
  49. 'store_cat_id' => '店铺分类id',
  50. 'saas_id' => '商盟用户id',
  51. 'goods_id' => '商品id',
  52. 'num' => '商品数量',
  53. 'attr' => '商品规格',
  54. 'is_delete' => 'Is Delete',
  55. ];
  56. }
  57. }