Sigo trabajando en los modelos y seeders. (Se corrigió un error de secuencia en la creacion de migraciosnes. logsseguridades debe crearse despues de personas)

This commit is contained in:
Lucho
2026-03-11 14:16:25 -03:00
parent 6c9d79115b
commit a311dedf89
16 changed files with 79 additions and 28 deletions
@@ -23,6 +23,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('acciones_logs');
Schema::dropIfExists('accioneslogs');
}
};
@@ -23,6 +23,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('contenidos_webs');
Schema::dropIfExists('contenidoswebs');
}
};
@@ -23,6 +23,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('horarios_preferencias');
Schema::dropIfExists('horariospreferencias');
}
};
@@ -23,6 +23,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('dias_preferencias');
Schema::dropIfExists('diaspreferencias');
}
};
@@ -27,6 +27,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('credenciales_profesionales');
Schema::dropIfExists('credencialesprofesionales');
}
};
@@ -23,6 +23,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('estados_profesionales');
Schema::dropIfExists('estadosprofesionales');
}
};
@@ -26,6 +26,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('credenciales_clientes');
Schema::dropIfExists('credencialesclientes');
}
};
@@ -14,13 +14,15 @@ return new class extends Migration
Schema::create('logseguridades', function (Blueprint $table) {
$table->id();
$table->text('descripcion');
$table->integer('responsableID');
$table->datetime('fechahora');
$table->string('IPorigen');
$table->string('rol');
$table->foreignId('accion_id')
->constrained('accioneslogs');
$table->foreignId('persona_id')
->constrained('personas');
});
}