Add current_period_start, current_period_end, and stripe_data columns to subscriptions table via migration. Extend Subscription model with datetime casts for new fields. Create comprehensive prediction engine documentation covering signals, aggregation, confidence calibration, and weekly summary logic. Add PredictionFull Vue component displaying action label, reasoning, and 7-day context. Refactor StationList to collapse outdated stations behind expandable section. Add UpsellBanner component with station count formatting. Create .claude/settings.json denying .env file access. Add todo.md tracking Stripe dashboard setup, production deployment steps, and E2E QA checklist. Update .env.example with fuel-finder credentials, Anthropic config, and complete Stripe price IDs.
18 lines
400 B
PHP
18 lines
400 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Laravel\Cashier\Subscription as CashierSubscription;
|
|
|
|
class Subscription extends CashierSubscription
|
|
{
|
|
protected $casts = [
|
|
'ends_at' => 'datetime',
|
|
'quantity' => 'integer',
|
|
'trial_ends_at' => 'datetime',
|
|
'current_period_start' => 'datetime',
|
|
'current_period_end' => 'datetime',
|
|
'stripe_data' => 'array',
|
|
];
|
|
}
|