Modificacion de prospecto a alumno y asignacion de grupos, coordinacion académica

This commit is contained in:
2026-03-23 15:48:23 -06:00
parent 58e27fc5fc
commit 1bcebeb8a1
43 changed files with 1551 additions and 96 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('grupos', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('plan_id');
$table->unsignedBigInteger('ciclo');
$table->unsignedBigInteger('nivel');
$table->unsignedBigInteger('plantel');
$table->unsignedBigInteger('turno');
$table->boolean('status');
});
}
public function down(): void
{
Schema::dropIfExists('grupos');
}
};
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('alumno_grupo', function (Blueprint $table) {
$table->unsignedBigInteger('alumno_id');
$table->foreign('alumno_id')->references('id')->on('alumnos');
$table->unsignedBigInteger('grupo_id');
$table->foreign('grupo_id')->references('id')->on('grupos');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('alumno_grupo');
}
};
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('materias', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('materias');
}
};
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('docentes', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('docentes');
}
};