invitation page implementation

This commit is contained in:
Čarodej
2021-10-25 17:14:27 +02:00
parent b45662942d
commit 524791f251
21 changed files with 616 additions and 57 deletions

View File

@@ -24,6 +24,7 @@ class TeamFolderInvitationFactory extends Factory
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', 'can-view-and-download']),
'status' => $this->faker->randomElement(['pending', 'accepted', 'rejected']),

View File

@@ -16,6 +16,7 @@ class CreateTeamFolderInvitationsTable extends Migration
Schema::create('team_folder_invitations', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('parent_id');
$table->uuid('inviter_id');
$table->text('email');
$table->string('color')->nullable();
$table->enum('permission', ['can-edit', 'can-view', 'can-view-and-download']);