feat: add username management system

This commit is contained in:
idevakk
2025-11-15 21:41:28 -08:00
parent ca94c360ea
commit ea0bc91251
11 changed files with 647 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('usernames', function (Blueprint $table) {
$table->id();
$table->string('username')->unique();
$table->boolean('is_active')->default(true);
$table->integer('daily_mailbox_limit')->default(100);
$table->string('username_type')->nullable();
$table->string('provider_type')->nullable();
$table->timestamp('starts_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamp('checked_at')->nullable();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('usernames');
}
};