VideoShopGoodsBind.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\jobs\storeSync\DiyCommon;
  9. use yii\db\ActiveRecord;
  10. use yii\behaviors\TimestampBehavior;
  11. use Yii;
  12. /**
  13. * This is the model class for table "{{%video_goods}}".
  14. *
  15. * @property int $id
  16. * @property int $store_id 店铺id
  17. * @property int $goods_id 商品id
  18. * @property int $mini_id 视频号小店/小程序id
  19. * @property string $attr_no 商品规格编号
  20. * @property string video_shop_product_id 视频号小店商品id
  21. * @property string video_shop_sku_id 视频号小店商品sku_id
  22. */
  23. class VideoShopGoodsBind extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%video_shop_goods_bind}}';
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['store_id', 'goods_id', 'mini_id'], 'integer'],
  39. [[ 'attr_no', 'video_shop_sku_id', 'video_shop_product_id'], 'string'],
  40. ];
  41. }
  42. }