SearchStr.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 $shop_id 所属商户ID
  10. * @property string $search_str 搜索关键词
  11. * @property int $num 搜索次数
  12. * @property \Illuminate\Support\Carbon|null $created_at
  13. * @property \Illuminate\Support\Carbon|null $updated_at
  14. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr newModelQuery()
  15. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr newQuery()
  16. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr query()
  17. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereCreatedAt($value)
  18. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereId($value)
  19. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereNum($value)
  20. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereSearchStr($value)
  21. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereShopId($value)
  22. * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereUpdatedAt($value)
  23. * @mixin \Eloquent
  24. */
  25. class SearchStr extends Model
  26. {
  27. /**
  28. * The table associated with the model.
  29. *
  30. * @var string
  31. */
  32. protected $table = 'search_str';
  33. /**
  34. * The primary key associated with the table.
  35. *
  36. * @var string
  37. */
  38. protected $primaryKey = 'id';
  39. /**
  40. * Indicates if the model should be timestamped.
  41. *
  42. * @var bool
  43. */
  44. public $timestamps = true;
  45. /**
  46. * 不能被批量赋值的属性
  47. *
  48. * @var array
  49. */
  50. protected $guarded = ['id', 'updated_at', 'created_at'];
  51. }