diff --git a/database/migrations/2021_05_05_075954_create_userprojects_table.php b/database/migrations/2021_05_05_075954_create_userprojects_table.php index f21bffe4eb761c3a5185aded71828316670a307e..d0f0be70cdaa854a033d81cf53a8b839af1d595b 100644 --- a/database/migrations/2021_05_05_075954_create_userprojects_table.php +++ b/database/migrations/2021_05_05_075954_create_userprojects_table.php @@ -17,6 +17,7 @@ class CreateUserprojectsTable extends Migration $table->integer('idUser'); $table->integer('idProject'); $table->integer('role'); + $table->integer('phase'); $table->timestamps(); }); } diff --git a/database/migrations/2021_05_05_131925_create_requirements_table.php b/database/migrations/2021_05_05_131925_create_requirements_table.php index ebabae38aee39f1b5d41b241e8671ad418c02fe3..4ed2f7867abd790c031a3eb4c89b7e792fd0b0d9 100644 --- a/database/migrations/2021_05_05_131925_create_requirements_table.php +++ b/database/migrations/2021_05_05_131925_create_requirements_table.php @@ -18,7 +18,7 @@ class CreateRequirementsTable extends Migration $table->integer('idProject'); $table->integer('number'); $table->string('name'); - $table->double('score', 8, 2)->nullable();; + $table->double('score', 8, 2)->nullable(); $table->timestamps(); }); } diff --git a/database/migrations/2021_05_18_062942_create_criterias_table.php b/database/migrations/2021_05_18_062942_create_criterias_table.php new file mode 100644 index 0000000000000000000000000000000000000000..73462d684602848d23334d39f1175cd750dd377c --- /dev/null +++ b/database/migrations/2021_05_18_062942_create_criterias_table.php @@ -0,0 +1,35 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateCriteriasTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('criterias', function (Blueprint $table) { + $table->id(); + $table->integer('idProject'); + $table->string('name'); + $table->integer('weight')->nullable(); + $table->integer('used'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('criterias'); + } +} diff --git a/database/migrations/2021_05_18_063209_create_criteriavotes_table.php b/database/migrations/2021_05_18_063209_create_criteriavotes_table.php new file mode 100644 index 0000000000000000000000000000000000000000..10979f3c5bbb16c9c28c3b5400eb1be064b9b69b --- /dev/null +++ b/database/migrations/2021_05_18_063209_create_criteriavotes_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateCriteriavotesTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('criteriavotes', function (Blueprint $table) { + $table->integer('idUser'); + $table->integer('idCriteria'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('criteriavotes'); + } +} diff --git a/database/migrations/2021_05_18_063224_create_criteriaweights_table.php b/database/migrations/2021_05_18_063224_create_criteriaweights_table.php new file mode 100644 index 0000000000000000000000000000000000000000..4a0cb7c6d5d3172c806d4a3f698176a64080177a --- /dev/null +++ b/database/migrations/2021_05_18_063224_create_criteriaweights_table.php @@ -0,0 +1,34 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateCriteriaweightsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('criteriaweights', function (Blueprint $table) { + $table->id(); + $table->integer('idUser'); + $table->integer('idCriteria'); + $table->integer('weight'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('criteriaweights'); + } +} diff --git a/database/migrations/2021_05_18_063234_create_criteriaweightvotes_table.php b/database/migrations/2021_05_18_063234_create_criteriaweightvotes_table.php new file mode 100644 index 0000000000000000000000000000000000000000..b699c8b29b38cffe4c8ddff605f9bcd9de012012 --- /dev/null +++ b/database/migrations/2021_05_18_063234_create_criteriaweightvotes_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateCriteriaweightvotesTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('criteriaweightvotes', function (Blueprint $table) { + $table->integer('idUser'); + $table->integer('idWeight'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('criteriaweightvotes'); + } +}