Files
lgp-admin-plus-api/app/Models/business/PackageModel.php
2026-08-19 08:16:49 +08:00

25 lines
573 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models\business;
use App\BaseApp\BaseBusinessModel;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* 家具套餐cc_package
*
* original_amount 是明细规格价之和package_amount 是独立售价。
* 两列都是倍率=1 的基准分,展示/下单时再乘用户 price_number。
*/
class PackageModel extends BaseBusinessModel
{
protected $table = 'package';
protected $guarded = [];
public function items(): HasMany
{
return $this->hasMany(PackageItemModel::class, 'package_id', 'id');
}
}