Add servers and privatekeys to database

This commit is contained in:
Andras Bacsai
2023-03-24 15:47:58 +01:00
parent 26cfcd31f8
commit f7c615c958
7 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Seeders;
use App\Models\Server;
use App\Models\Team;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class ServerSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$root_team = Team::find(1);
Server::create([
'id' => 1,
'name' => "testing-host",
'description' => "This is a test docker container",
'ip' => "coolify-testing-host",
'team_id' => $root_team->id,
]);
}
}