Migrate billing from Paddle to Lemon Squeezy

This commit is contained in:
Codex Agent
2026-02-03 10:59:54 +01:00
parent 2f4ebfefd4
commit a0ef90e13a
228 changed files with 4369 additions and 4067 deletions

View File

@@ -36,10 +36,10 @@ return new class extends Migration
$table->timestamp('starts_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->string('paddle_discount_id')->nullable()->unique();
$table->string('paddle_mode', 40)->default('standard');
$table->json('paddle_snapshot')->nullable();
$table->timestamp('paddle_last_synced_at')->nullable();
$table->string('lemonsqueezy_discount_id')->nullable()->unique();
$table->string('lemonsqueezy_mode', 40)->default('standard');
$table->json('lemonsqueezy_snapshot')->nullable();
$table->timestamp('lemonsqueezy_last_synced_at')->nullable();
$table->foreignIdFor(\App\Models\User::class, 'created_by')->nullable()->constrained('users')->nullOnDelete();
$table->foreignIdFor(\App\Models\User::class, 'updated_by')->nullable()->constrained('users')->nullOnDelete();