45 lines
919 B
PHP
45 lines
919 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class ShopeeSellerScrapedImage
|
|
*
|
|
* @property int $id
|
|
* @property int $shopee_seller_scrape_id
|
|
* @property string $original_name
|
|
* @property string|null $image
|
|
* @property bool $featured
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
* @property ShopeeSellerScrape $shopee_seller_scrape
|
|
*/
|
|
class ShopeeSellerScrapedImage extends Model
|
|
{
|
|
protected $table = 'shopee_seller_scraped_images';
|
|
|
|
protected $casts = [
|
|
'shopee_seller_scrape_id' => 'int',
|
|
'featured' => 'bool',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'shopee_seller_scrape_id',
|
|
'original_name',
|
|
'image',
|
|
'featured',
|
|
];
|
|
|
|
public function shopee_seller_scrape()
|
|
{
|
|
return $this->belongsTo(ShopeeSellerScrape::class);
|
|
}
|
|
}
|