'integer', 'result_batch_id' => 'integer', 'settle_version' => 'integer', 'total_ticket_count' => 'integer', 'total_win_count' => 'integer', 'total_payout_amount' => 'integer', 'total_jackpot_payout_amount' => 'integer', 'started_at' => 'datetime', 'finished_at' => 'datetime', ]; } public function draw(): BelongsTo { return $this->belongsTo(Draw::class); } public function resultBatch(): BelongsTo { return $this->belongsTo(DrawResultBatch::class, 'result_batch_id'); } public function details(): HasMany { return $this->hasMany(TicketSettlementDetail::class, 'settlement_batch_id'); } public function statusEnum(): ?SettlementBatchStatus { return SettlementBatchStatus::tryFrom((string) $this->status); } }