Enforce data consistency

This commit is contained in:
2020-04-29 21:56:41 +01:00
parent f514c4f848
commit beee71e4c3
4 changed files with 5 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ class CreateApplicationsTable extends Migration
*/
Schema::create('applications', function (Blueprint $table) {
$table->id();
$table->bigIncrements('applicantUserID'); // 1-1
$table->bigIncrements('applicantFormResponseID'); // 1-*
$table->bigInteger('applicantUserID')->unsigned(); // 1-1
$table->bigInteger('applicantFormResponseID')->unsigned(); // 1-*
$table->enum('applicationStatus', [
'STAGE_SUBMITTED',
'STAGE_PEERAPPROVAL',