| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace App\Models;
- use DateTimeInterface;
- use Illuminate\Database\Eloquent\Model;
- /**
- * 搜索关键词表
- *
- * @property int $id 搜索关键词表
- * @property int $shop_id 所属商户ID
- * @property string $search_str 搜索关键词
- * @property int $num 搜索次数
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr query()
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereNum($value)
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereSearchStr($value)
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereShopId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|SearchStr whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class SearchStr extends Model
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'search_str';
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected $primaryKey = 'id';
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public $timestamps = true;
- /**
- * 不能被批量赋值的属性
- *
- * @var array
- */
- protected $guarded = ['id', 'updated_at', 'created_at'];
- }
|