GoodsMap.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace addons\WechatMini\common\models\live;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_wechat_mini_live_goods_map}}".
  6. *
  7. * @property int $id id
  8. * @property int|null $merchant_id 商户id
  9. * @property int|null $store_id 店铺ID
  10. * @property int|null $roomid 直播间ID
  11. * @property int|null $goods_id 商品id
  12. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  13. * @property int|null $created_at 创建时间
  14. * @property int|null $updated_at 修改时间
  15. */
  16. class GoodsMap extends \yii\db\ActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%addon_wechat_mini_live_goods_map}}';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['merchant_id', 'store_id', 'roomid', 'goods_id', 'status', 'created_at', 'updated_at'], 'integer'],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'id',
  41. 'merchant_id' => '商户id',
  42. 'store_id' => '店铺ID',
  43. 'roomid' => '直播间ID',
  44. 'goods_id' => '商品id',
  45. 'status' => '状态[-1:删除;0:禁用;1启用]',
  46. 'created_at' => '创建时间',
  47. 'updated_at' => '修改时间',
  48. ];
  49. }
  50. }
粤ICP备19079148号