removed all references to credits. now credits are completely replaced by addons.

This commit is contained in:
Codex Agent
2025-12-01 15:50:17 +01:00
parent b8e515a03c
commit 28539754a7
76 changed files with 97 additions and 2533 deletions

View File

@@ -17,7 +17,6 @@ class PurchaseHistoryFactory extends Factory
'id' => (string) Str::uuid(),
'tenant_id' => Tenant::factory(),
'package_id' => $this->faker->randomElement(['starter', 'pro', 'enterprise']),
'credits_added' => $this->faker->numberBetween(1, 10),
'price' => $this->faker->randomFloat(2, 9, 199),
'currency' => 'EUR',
'platform' => $this->faker->randomElement(['tenant-app', 'ios', 'android']),

View File

@@ -20,7 +20,6 @@ class TenantFactory extends Factory
'name' => $name,
'slug' => $slug,
'contact_email' => $contactEmail,
'event_credits_balance' => $this->faker->numberBetween(1, 20),
'subscription_tier' => $this->faker->randomElement(['free', 'starter', 'pro']),
'subscription_expires_at' => $this->faker->dateTimeBetween('now', '+1 year'),
'is_active' => true,
@@ -62,9 +61,6 @@ class TenantFactory extends Factory
public function withLowCredits(): static
{
return $this->state(fn (array $attributes) => [
'event_credits_balance' => 1,
]);
return $this->state(fn (array $attributes) => $attributes);
}
}