2024-05-26 14:06:21 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-27 08:03:31 +00:00
|
|
|
* @property int $item_id
|
|
|
|
* @property string $brand
|
|
|
|
* @property string $color_name
|
|
|
|
* @property string $sell_point
|
|
|
|
* @property string $specifications
|
|
|
|
* @property string $shop_url
|
|
|
|
* @property string $product_images
|
|
|
|
* @property string $images
|
|
|
|
* @property string $product_infos
|
|
|
|
* @property string $app_introduce
|
|
|
|
* @property string $applet_introduce
|
|
|
|
* @property string $created_at
|
|
|
|
* @property string $updated_at
|
2024-05-26 14:06:21 +00:00
|
|
|
* @property Good $good
|
|
|
|
*/
|
|
|
|
class GoodsItem extends Base
|
|
|
|
{
|
|
|
|
public $fillable = [
|
|
|
|
'item_id', 'brand', 'color_name', 'sell_point', 'specifications', 'shop_url', 'product_images', 'images',
|
|
|
|
'product_infos', 'app_introduce', 'applet_introduce'
|
|
|
|
];
|
2024-05-27 07:53:42 +00:00
|
|
|
public function good(): BelongsTo
|
|
|
|
{
|
2024-05-26 14:06:21 +00:00
|
|
|
return $this->belongsTo(Good::class, 'item_id', 'itemid');
|
|
|
|
}
|
|
|
|
}
|