GoodsSku.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace App\Models\Goods;
  3. use App\Base\BaseModel;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. /**
  6. * App\Models\Goods\GoodsSku
  7. *
  8. * @property int $id
  9. * @property int $goods_id
  10. * @property string $sn 型号
  11. * @property string $url_3d 3D的跳转地址
  12. * @property array $spec_attr_list 规格数据
  13. * @property int $is_use 是否使用
  14. * @property \Illuminate\Support\Carbon|null $created_at
  15. * @property \Illuminate\Support\Carbon|null $updated_at
  16. * @property \Illuminate\Support\Carbon|null $deleted_at
  17. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku newModelQuery()
  18. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku newQuery()
  19. * @method static \Illuminate\Database\Query\Builder|GoodsSku onlyTrashed()
  20. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku query()
  21. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereCreatedAt($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereDeletedAt($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereGoodsId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereId($value)
  25. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereIsUse($value)
  26. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereSn($value)
  27. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereSpecAttrList($value)
  28. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereUpdatedAt($value)
  29. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSku whereUrl3d($value)
  30. * @method static \Illuminate\Database\Query\Builder|GoodsSku withTrashed()
  31. * @method static \Illuminate\Database\Query\Builder|GoodsSku withoutTrashed()
  32. * @mixin \Eloquent
  33. * @deprecated
  34. */
  35. class GoodsSku extends BaseModel
  36. {
  37. use SoftDeletes;
  38. protected $table = "goods_sku";
  39. protected $casts = [
  40. "spec_attr_list" => "array",
  41. ];
  42. public function format(...$options)
  43. {
  44. }
  45. public function specAttr()
  46. {
  47. }
  48. }