fixed migration

This commit is contained in:
Codex Agent
2025-11-15 21:58:47 +01:00
parent 9d741ce634
commit 07ad06e965

View File

@@ -106,8 +106,8 @@ return new class extends Migration
$table->foreignId('tenant_id')->constrained()->cascadeOnDelete(); $table->foreignId('tenant_id')->constrained()->cascadeOnDelete();
$table->foreignId('package_id')->constrained()->cascadeOnDelete(); $table->foreignId('package_id')->constrained()->cascadeOnDelete();
$table->decimal('price', 8, 2); $table->decimal('price', 8, 2);
$table->timestamp('purchased_at'); $table->dateTime('purchased_at');
$table->timestamp('expires_at'); $table->dateTime('expires_at')->nullable();
$table->integer('used_events')->default(0); $table->integer('used_events')->default(0);
$table->boolean('active')->default(true); $table->boolean('active')->default(true);
$table->timestamps(); $table->timestamps();
@@ -124,7 +124,7 @@ return new class extends Migration
$table->foreignId('package_id')->constrained(); $table->foreignId('package_id')->constrained();
$table->string('provider_id'); $table->string('provider_id');
$table->decimal('price', 8, 2); $table->decimal('price', 8, 2);
$table->timestamp('purchased_at'); $table->dateTime('purchased_at');
$table->enum('type', ['endcustomer_event', 'reseller_subscription']); $table->enum('type', ['endcustomer_event', 'reseller_subscription']);
$table->json('metadata')->nullable(); $table->json('metadata')->nullable();
$table->string('ip_address')->nullable(); $table->string('ip_address')->nullable();