GoodsSpecMap.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Models\Goods;
  3. use App\Base\BaseModel;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * App\Models\Goods\GoodsSpecMap
  7. *
  8. * @property int $id
  9. * @property int $goods_id
  10. * @property int $spec_id
  11. * @property string $value
  12. * @property \Illuminate\Support\Carbon|null $created_at
  13. * @property \Illuminate\Support\Carbon|null $updated_at
  14. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereCreatedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereGoodsId($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereId($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereSpecId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereUpdatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSpecMap whereValue($value)
  23. * @mixin \Eloquent
  24. * @property-read \App\Models\Goods\Spec|null $spec
  25. */
  26. class GoodsSpecMap extends BaseModel
  27. {
  28. protected $table = "goods_spec_map";
  29. public function spec()
  30. {
  31. return $this->belongsTo(Spec::class);
  32. }
  33. }