mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
- gate implementation
- protected shared view fix
This commit is contained in:
@@ -23,7 +23,7 @@ class TeamFolderInvitationFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'id' => $this->faker->uuid,
|
||||
'folder_id' => $this->faker->uuid,
|
||||
'parent_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']),
|
||||
|
||||
@@ -16,7 +16,7 @@ class CreateFileManagerFiles extends Migration
|
||||
Schema::create('files', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary()->index();
|
||||
$table->uuid('user_id')->index();
|
||||
$table->uuid('folder_id')->nullable();
|
||||
$table->uuid('parent_id')->nullable();
|
||||
|
||||
$table->text('thumbnail')->nullable();
|
||||
$table->text('name');
|
||||
|
||||
@@ -15,7 +15,7 @@ class CreateFavouritesFoldersTable extends Migration
|
||||
{
|
||||
Schema::create('favourite_folder', function (Blueprint $table) {
|
||||
$table->uuid('user_id');
|
||||
$table->uuid('folder_id');
|
||||
$table->uuid('parent_id');
|
||||
$table->charset = 'utf8mb4';
|
||||
$table->collation = 'utf8mb4_unicode_ci';
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@ class CreateTeamFolderInvitationsTable extends Migration
|
||||
{
|
||||
Schema::create('team_folder_invitations', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->uuid('folder_id');
|
||||
$table->uuid('parent_id');
|
||||
$table->text('email');
|
||||
$table->string('color')->nullable();
|
||||
$table->enum('permission', ['can-edit', 'can-view', 'can-view-and-download']);
|
||||
|
||||
@@ -14,7 +14,7 @@ class CreateTeamFolderMembersTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create('team_folder_members', function (Blueprint $table) {
|
||||
$table->uuid('folder_id');
|
||||
$table->uuid('parent_id');
|
||||
$table->uuid('user_id');
|
||||
$table->string('permission');
|
||||
$table->charset = 'utf8mb4';
|
||||
|
||||
Reference in New Issue
Block a user