added subscriber profile

This commit is contained in:
Kwesi Banson
2026-09-22 22:01:37 +00:00
parent c7f93a7dc1
commit 3ece39efe3
9 changed files with 846 additions and 5 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('unified_billing_transactions', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('service_id');
$table->string('msisdn');
$table->string('content');
$table->string('cost')->nullable();
$table->timestamp('transaction_date');
$table->timestamps();
// Index for fast searching by subscriber per service
$table->index(['service_id', 'msisdn']);
});
}
public function down(): void
{
Schema::dropIfExists('unified_billing_transactions');
}
};