code deletion

This commit is contained in:
Čarodej
2022-04-27 09:57:31 +02:00
parent eb4d5b4cba
commit 3b3bf62cb8
23 changed files with 121 additions and 553 deletions

View File

@@ -1,33 +0,0 @@
<?php
namespace Database\Factories;
use Domain\Teams\Models\TeamFolderInvitation;
use Illuminate\Database\Eloquent\Factories\Factory;
class TeamFolderInvitationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TeamFolderInvitation::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id' => $this->faker->uuid,
'parent_id' => $this->faker->uuid,
'inviter_id' => $this->faker->uuid,
'email' => $this->faker->email,
'permission' => $this->faker->randomElement(['can-edit', 'can-view']),
'status' => $this->faker->randomElement(['pending', 'accepted', 'rejected']),
];
}
}

View File

@@ -1,30 +0,0 @@
<?php
namespace Database\Factories;
use Domain\Teams\Models\TeamFolderMember;
use Illuminate\Database\Eloquent\Factories\Factory;
class TeamFolderMemberFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TeamFolderMember::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'parent_id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'permission' => $this->faker->randomElement(['can-edit', 'can-view', 'owner']),
];
}
}

View File

@@ -1,37 +0,0 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Domain\UploadRequest\Models\UploadRequest;
class UploadRequestFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = UploadRequest::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'folder_id' => $this->faker->uuid,
'email' => $this->faker->email,
'name' => $this->faker->name,
'notes' => $this->faker->realText(80),
'status' => $this->faker->randomElement(
['active', 'filled', 'expired']
),
'created_at' => $this->faker->dateTimeBetween('-1 months'),
];
}
}