mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
87c6e5d64f
[ci skip] [skip ci]
82 lines
2.7 KiB
PHP
82 lines
2.7 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Laravel\Scout\Searchable;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* App\Models\BookInfo.
|
|
*
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property string $author
|
|
* @property string|null $asin
|
|
* @property string|null $isbn
|
|
* @property string|null $ean
|
|
* @property string|null $url
|
|
* @property int|null $salesrank
|
|
* @property string|null $publisher
|
|
* @property string|null $publishdate
|
|
* @property string|null $pages
|
|
* @property string|null $overview
|
|
* @property string $genre
|
|
* @property bool $cover
|
|
* @property \Carbon\Carbon|null $created_at
|
|
* @property \Carbon\Carbon|null $updated_at
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereAsin($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereAuthor($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereCover($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereEan($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereGenre($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereIsbn($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereOverview($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo wherePages($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo wherePublishdate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo wherePublisher($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereSalesrank($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereTitle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereUpdatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookInfo whereUrl($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class BookInfo extends Model
|
|
{
|
|
use Searchable;
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $table = 'bookinfo';
|
|
|
|
/**
|
|
* @var bool
|
|
*/
|
|
protected $dateFormat = false;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $guarded = [];
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function searchableAs()
|
|
{
|
|
return 'ix_bookinfo_author_title_ft';
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function toSearchableArray()
|
|
{
|
|
return [
|
|
'author'=> $this->author,
|
|
'title' => $this->title,
|
|
];
|
|
}
|
|
}
|