Files
lotteryLaravel/app/Models/RiskPool.php
kang 2ea3e810a0
Some checks failed
lotterLaravel CI / test (push) Has been cancelled
lotterLaravel E2E / e2e-api (push) Has been cancelled
feat(risk): 支持按开注商隔离风险池并新增经营报表
2026-07-10 10:23:30 +08:00

39 lines
867 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/** 赔付池事实表 {@see risk_pools} */
final class RiskPool extends Model
{
protected $fillable = [
'draw_id',
'provider_code',
'normalized_number',
'total_cap_amount',
'locked_amount',
'remaining_amount',
'sold_out_status',
'version',
];
protected function casts(): array
{
return [
'draw_id' => 'integer',
'total_cap_amount' => 'integer',
'locked_amount' => 'integer',
'remaining_amount' => 'integer',
'sold_out_status' => 'integer',
'version' => 'integer',
];
}
public function draw(): BelongsTo
{
return $this->belongsTo(Draw::class);
}
}