added ShareTest test methods

This commit is contained in:
Peter Papp
2021-02-28 16:45:34 +01:00
parent 81dc7d7ed7
commit b82f34ed4d
8 changed files with 246 additions and 51 deletions

View File

@@ -16,8 +16,8 @@ class CreateSharesTable extends Migration
Schema::create('shares', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->uuid('user_id');
$table->string('token', 16)->unique();
$table->uuid('item_id');
$table->string('token', 16)->unique();
$table->enum('type', ['file', 'folder']);
$table->enum('permission', ['visitor', 'editor'])->nullable();
$table->boolean('is_protected')->default(0);