feat: add domain management system

This commit is contained in:
idevakk
2025-11-15 11:40:04 -08:00
parent d9291f06eb
commit 466a370f28
12 changed files with 508 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('domains', function (Blueprint $table) {
$table->id();
$table->string('name')->unique();
$table->boolean('is_active')->default(true);
$table->integer('daily_mailbox_limit')->default(100);
$table->string('domain_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('domains');
}
};