UI enhancements for file request

This commit is contained in:
Čarodej
2022-02-25 09:42:55 +01:00
parent 293eb679fa
commit c3a6f5d703
13 changed files with 152 additions and 19 deletions

View File

@@ -24,10 +24,11 @@ class UploadRequestFactory extends Factory
return [
'id' => $this->faker->uuid,
'user_id' => $this->faker->uuid,
'folder_id' => $this->faker->uuid,
'email' => $this->faker->email,
'notes' => $this->faker->realText(80),
'status' => $this->faker->randomElement(
'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'),

View File

@@ -16,9 +16,10 @@ class CreateUploadRequestsTable extends Migration
Schema::create('upload_requests', function (Blueprint $table) {
$table->uuid('id');
$table->uuid('user_id');
$table->uuid('folder_id');
$table->uuid('folder_id')->nullable();
$table->enum('status', ['active', 'filling', 'filled', 'expired'])->default('active');
$table->string('email')->nullable();
$table->text('name')->nullable();
$table->longText('notes')->nullable();
$table->timestamps();
$table->charset = 'utf8mb4';