This commit is contained in:
2024-04-12 17:00:38 +08:00
parent ee84da655b
commit e309d31e7a
3 changed files with 9 additions and 7 deletions
+4 -3
View File
@@ -15,8 +15,9 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property int $package_id 健康包id
* @property int $product_id 商品id
* @property int $quantity 数量
* @property Carbon $created_at 创建时间
* @property Carbon $updated_at 修改时间
* @property string $discount_product_price 折扣商品价格
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 修改时间
*/
class HealthPackageProduct extends Model
{
@@ -30,7 +31,7 @@ class HealthPackageProduct extends Model
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['package_product_id', 'package_id', 'product_id', 'quantity', 'created_at', 'updated_at'];
protected array $fillable = ['package_product_id', 'package_id', 'product_id', 'quantity', 'discount_product_price', 'created_at', 'updated_at'];
protected string $primaryKey = "package_product_id";