diff --git a/database/factories/LocationFactory.php b/database/factories/LocationFactory.php new file mode 100644 index 00000000..47f5304d --- /dev/null +++ b/database/factories/LocationFactory.php @@ -0,0 +1,26 @@ + Uuid::uuid4()->toString(), + 'uuidShort' => str_random(8), + 'name' => $this->faker->firstName, + 'description' => implode(' ', $this->faker->sentences()), + 'skip_scripts' => 0, + 'suspended' => 0, + 'memory' => 512, + 'swap' => 0, + 'disk' => 512, + 'io' => 500, + 'cpu' => 0, + 'oom_disabled' => 0, + 'installed' => 1, + 'database_limit' => null, + 'allocation_limit' => null, + 'created_at' => Carbon::now(), + 'updated_at' => Carbon::now(), + ]; + } +} diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 00000000..7cdcb626 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,26 @@ +