PurchaseImportCart.php 1.3 KB

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