diff --git a/app/Http/Controllers/caracteristicasController.php b/app/Http/Controllers/caracteristicasController.php new file mode 100644 index 0000000000000000000000000000000000000000..fa10e147050e6f38ab52b6f35e81a7ca63bb4270 --- /dev/null +++ b/app/Http/Controllers/caracteristicasController.php @@ -0,0 +1,10 @@ +id(); + $table->string('profesion'); + $table->string('abreviatura'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('profesions'); + } +}; diff --git a/database/migrations/2024_06_03_183943_create_cargos_table.php b/database/migrations/2024_06_03_183943_create_cargos_table.php new file mode 100644 index 0000000000000000000000000000000000000000..a040eb2318ca231024a2ae82c27cd6c4a03dea54 --- /dev/null +++ b/database/migrations/2024_06_03_183943_create_cargos_table.php @@ -0,0 +1,27 @@ +id(); + $table->string('nombre'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cargos'); + } +}; diff --git a/database/migrations/2024_06_03_184326_create_caracteristicas_table.php b/database/migrations/2024_06_03_184326_create_caracteristicas_table.php new file mode 100644 index 0000000000000000000000000000000000000000..7eb0ce5ab5cbe5e8a1e1dc14bb441ab69bac1f4a --- /dev/null +++ b/database/migrations/2024_06_03_184326_create_caracteristicas_table.php @@ -0,0 +1,27 @@ +id(); + $table->string('nombre'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('caracteristicas'); + } +}; diff --git a/database/migrations/2024_06_03_184436_create_grupos_table.php b/database/migrations/2024_06_03_184436_create_grupos_table.php new file mode 100644 index 0000000000000000000000000000000000000000..29f3318c81f92944666bd18f4afb79d5fc36f1ed --- /dev/null +++ b/database/migrations/2024_06_03_184436_create_grupos_table.php @@ -0,0 +1,27 @@ +id(); + $table->string('nombre'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('grupos'); + } +}; diff --git a/database/migrations/2024_06_03_194040_create_subgrupos_table.php b/database/migrations/2024_06_03_194040_create_subgrupos_table.php new file mode 100644 index 0000000000000000000000000000000000000000..abd94b8cfcca34d54ec211ef58ba973a23eb6fa2 --- /dev/null +++ b/database/migrations/2024_06_03_194040_create_subgrupos_table.php @@ -0,0 +1,31 @@ +id(); + $table->unsingendBigInterger('grupo_id')->nullable(); + $table->unsingendBigInterger('subgrupo_id')->nullable(); + + $table->foreign('grupo_id')->references('id')->on('grupos')->nullable(); + $table->foreign('subgrupo_id')->references('id')->on('subgrupo')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('subgrupos'); + } +};