create/get upload request backend

This commit is contained in:
Čarodej
2022-02-17 10:11:43 +01:00
parent 394a7b6baf
commit 45a3b5415b
13 changed files with 354 additions and 29 deletions
@@ -17,6 +17,8 @@ class CreateUserLimitationsTable extends Migration
$table->uuid('user_id');
$table->text('max_storage_amount');
$table->text('max_team_members');
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
});
}
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUploadRequestsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('upload_requests', function (Blueprint $table) {
$table->uuid('id');
$table->uuid('user_id');
$table->uuid('folder_id');
$table->enum('status', ['active', 'filled', 'expired'])->default('active');
$table->string('email');
$table->longText('notes');
$table->timestamps();
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('upload_requests');
}
}