Add Mojang's status to dashboard

Also adds a Cache table to the database. Contains incomplete routes.
This commit is contained in:
2020-05-03 00:45:29 +01:00
parent 5e87fb7683
commit 669fbc1ae5
9 changed files with 111 additions and 29 deletions

View File

@@ -26,6 +26,7 @@ class CreateApplicationsTable extends Migration
'STAGE_SUBMITTED',
'STAGE_PEERAPPROVAL',
'STAGE_INTERVIEW',
'STAGE_INTERVIEW_SCHEDULED',
'APPROVED',
'DENIED'
])->default('STAGE_SUBMITTED');

View File

@@ -27,9 +27,10 @@ class CreateAppointmentsTable extends Migration
]);
$table->enum('appointmentStatus', [
'SCHEDULED',
'CONCLUDED'
'CONCLUDED' // TODO: Review whether this status is necessary
])->default('SCHEDULED');
$table->text('meetingNotes')->nullable();
$table->boolean('userAccepted')->default(false);
$table->longText('meetingNotes')->nullable();
$table->timestamps();
});
}

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCacheTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->unique();
$table->mediumText('value');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('cache');
}
}