New direction; removed wireguard, readme update

This commit is contained in:
2025-09-07 11:37:52 +01:00
parent 82556535ba
commit a91780d1d5
21 changed files with 102 additions and 5622 deletions

View File

@@ -35,7 +35,7 @@ class ServerFactory extends Factory
{
return $this->state(function (array $attributes) use ($networkId) {
return [
'external_network_id' => $networkId,
'network_id' => $networkId,
];
});
}

View File

@@ -14,8 +14,7 @@ return new class extends Migration
Schema::create('servers', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(Organisation::class);
$table->foreignIdFor(Network::class, 'external_network_id');
$table->foreignIdFor(Network::class, 'internal_network_id')->nullable();
$table->foreignIdFor(Network::class);
$table->foreignIdFor(Provider::class);
$table->string('external_id')->nullable();
$table->string('name');
@@ -23,9 +22,6 @@ return new class extends Migration
$table->string('ipv6');
$table->string('private_ip');
$table->string('provider_status');
$table->string('internal_ip');
$table->integer('internal_ip_ending');
$table->text('internal_public_key')->nullable();
$table->string('status');
$table->string('region');
$table->string('os');

View File

@@ -16,7 +16,6 @@ return new class extends Migration
$table->foreignIdFor(Provider::class);
$table->string('external_id')->nullable();
$table->string('network_zone')->default('global');
$table->string('type');
$table->string('name');
$table->string('ip_range');
$table->timestamps();

View File

@@ -2,7 +2,6 @@
namespace Database\Seeders;
use App\Enums\NetworkType;
use App\Enums\OrganisationRole;
use App\Enums\ProviderType;
use App\Enums\RepositoryType;
@@ -42,7 +41,6 @@ class DatabaseSeeder extends Seeder
if (! app()->isProduction()) {
$network = $organisation->networks()->create([
'type' => NetworkType::EXTERNAL,
'name' => 'keystone',
'external_id' => 'net-12345',
'provider_id' => $provider->id,