diff --git a/app/Application.php b/app/Application.php new file mode 100644 index 0000000..c0b8274 --- /dev/null +++ b/app/Application.php @@ -0,0 +1,10 @@ +id(); + $table->string('uuid'); // Mojang UUID $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); + $table->string('username'); // Mojang Username + $table->date('dob'); + $table->ipAddress('originalIP'); $table->string('password'); $table->rememberToken(); $table->timestamps(); diff --git a/database/migrations/2020_04_29_022245_create_profiles_table.php b/database/migrations/2020_04_29_022245_create_profiles_table.php new file mode 100644 index 0000000..c8def1c --- /dev/null +++ b/database/migrations/2020_04_29_022245_create_profiles_table.php @@ -0,0 +1,41 @@ +id(); + $table->string('profileShortBio'); + $table->text('profileAboutMe'); + $table->enum('avatarPreference', [ + 'crafatar', // Mojang Profile + 'gravatar' // Email profile + ]); + $table->text('socialLinks'); + $table->bigIncrements('userID'); + $table->timestamps(); + + $table->foreign('userID')->references('id')->on('users')->onDelete('cascade'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('profiles'); + } +} diff --git a/database/migrations/2020_04_29_022402_create_applications_table.php b/database/migrations/2020_04_29_022402_create_applications_table.php new file mode 100644 index 0000000..25adbb6 --- /dev/null +++ b/database/migrations/2020_04_29_022402_create_applications_table.php @@ -0,0 +1,45 @@ +id(); + $table->bigIncrements('applicantUserID'); // 1-1 + $table->bigIncrements('applicantFormResponseID'); // 1-* + $table->enum('applicationStatus', [ + 'STAGE_SUBMITTED', + 'STAGE_PEERAPPROVAL', + 'STAGE_INTERVIEW', + 'APPROVED', + 'DENIED' + ]); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('applications'); + } +} diff --git a/database/migrations/2020_04_29_022421_create_votes_table.php b/database/migrations/2020_04_29_022421_create_votes_table.php new file mode 100644 index 0000000..ebe6980 --- /dev/null +++ b/database/migrations/2020_04_29_022421_create_votes_table.php @@ -0,0 +1,31 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('votes'); + } +} diff --git a/database/migrations/2020_04_29_022442_create_appointments_table.php b/database/migrations/2020_04_29_022442_create_appointments_table.php new file mode 100644 index 0000000..9dbeb89 --- /dev/null +++ b/database/migrations/2020_04_29_022442_create_appointments_table.php @@ -0,0 +1,46 @@ +id(); + $table->string('appointmentDescription'); + $table->dateTime('appointmentDate'); + $table->bigInteger('applicationID')->unsigned(); + $table->enum('appointmentLocation', [ + 'ZOOM', + 'DISCORD', + 'SKYPE', + 'MEET', + 'TEAMSPEAK' + ]); + $table->enum('appointmentStatus', [ + 'SCHEDULED', + 'CONCLUDED' + ])->default('SCHEDULED'); + $table->text('meetingNotes'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('appointments'); + } +} diff --git a/database/migrations/2020_04_29_022642_create_vacancies_table.php b/database/migrations/2020_04_29_022642_create_vacancies_table.php new file mode 100644 index 0000000..a2d8907 --- /dev/null +++ b/database/migrations/2020_04_29_022642_create_vacancies_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('vacancyName'); + $table->longText('vacancyDescription'); + $table->string('permissionGroupName'); + $table->string('discordRoleID'); + $table->bigIncrements('vacancyFormID'); + $table->integer('vacancyCount')->default(3); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('vacancies'); + } +} diff --git a/database/migrations/2020_04_29_023317_create_forms_table.php b/database/migrations/2020_04_29_023317_create_forms_table.php new file mode 100644 index 0000000..610a6d7 --- /dev/null +++ b/database/migrations/2020_04_29_023317_create_forms_table.php @@ -0,0 +1,37 @@ +id(); + $table->string('formName'); + $table->string('formStructure'); + $table->enum('formStatus', [ + 'ACTIVE', + 'SUSPENDED' + ]); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('forms'); + } +} diff --git a/database/migrations/2020_04_29_023554_create_logs_table.php b/database/migrations/2020_04_29_023554_create_logs_table.php new file mode 100644 index 0000000..c797cf1 --- /dev/null +++ b/database/migrations/2020_04_29_023554_create_logs_table.php @@ -0,0 +1,32 @@ +id(); + $table->bigIncrements('userID'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('logs'); + } +} diff --git a/database/migrations/2020_04_29_023647_create_staff_profiles_table.php b/database/migrations/2020_04_29_023647_create_staff_profiles_table.php new file mode 100644 index 0000000..07f43e1 --- /dev/null +++ b/database/migrations/2020_04_29_023647_create_staff_profiles_table.php @@ -0,0 +1,36 @@ +id(); + $table->bigIncrements('userID'); + $table->dateTime('approvalDate'); + $table->dateTime('terminationDate')->nullable(); + $table->dateTime('resignationDate')->nullable(); + $table->text('memberNotes')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('staff_profiles'); + } +} diff --git a/database/migrations/2020_04_29_030107_create_responses_table.php b/database/migrations/2020_04_29_030107_create_responses_table.php new file mode 100644 index 0000000..83fe6bd --- /dev/null +++ b/database/migrations/2020_04_29_030107_create_responses_table.php @@ -0,0 +1,33 @@ +id(); + $table->bigIncrements('responseFormID'); + $table->longText('responseData'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('responses'); + } +}