added subscriber profile
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user