GoodsSearch.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace App\Models;
  3. use DateTimeInterface;
  4. use Illuminate\Database\Eloquent\Model;
  5. /**
  6. * 会员搜索表
  7. *
  8. * @property int $id 会员搜索表
  9. * @property int $m_id 会员ID
  10. * @property int $search_id 关键词ID
  11. * @property int $shop_id 所属商户ID
  12. * @property int|null $num 查询次数
  13. * @property \Illuminate\Support\Carbon|null $created_at
  14. * @property \Illuminate\Support\Carbon|null $updated_at
  15. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch newModelQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch newQuery()
  17. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch query()
  18. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereCreatedAt($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereId($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereMId($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereNum($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereSearchId($value)
  23. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereShopId($value)
  24. * @method static \Illuminate\Database\Eloquent\Builder|GoodsSearch whereUpdatedAt($value)
  25. * @mixin \Eloquent
  26. */
  27. class GoodsSearch extends Model
  28. {
  29. /**
  30. * The table associated with the model.
  31. *
  32. * @var string
  33. */
  34. protected $table = 'goods_search';
  35. /**
  36. * The primary key associated with the table.
  37. *
  38. * @var string
  39. */
  40. protected $primaryKey = 'id';
  41. /**
  42. * Indicates if the model should be timestamped.
  43. *
  44. * @var bool
  45. */
  46. public $timestamps = true;
  47. /**
  48. * 不能被批量赋值的属性
  49. *
  50. * @var array
  51. */
  52. protected $guarded = ['id', 'updated_at', 'created_at'];
  53. }