se agrega modelo de asistencias, correcciones de codigo qr y procesador de unsubscribes
This commit is contained in:
@@ -21,7 +21,6 @@ return new class extends Migration
|
||||
$table->string('longitud')->nullable();
|
||||
$table->bigInteger('telefono');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
$table->string('name');
|
||||
$table->unsignedBigInteger('nivel');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ return new class extends Migration
|
||||
$table->unsignedBigInteger('duration_id');
|
||||
$table->unsignedBigInteger('nivel');
|
||||
$table->unsignedBigInteger('carrera');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ return new class extends Migration
|
||||
$table->string('clave');
|
||||
$table->string('serial');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
$table->foreign('carrera_id')->references('id')->on('carreras');
|
||||
$table->unsignedBigInteger('material_id');
|
||||
$table->foreign('material_id')->references('id')->on('materials');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
$table->foreign('prospecto_id')->references('id')->on('prospectos');
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->foreign('user_id')->references('id')->on('users');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
Schema::create('areas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->foreign('area_id')->references('id')->on('areas');
|
||||
$table->unsignedBigInteger('role_id');
|
||||
$table->foreign('role_id')->references('id')->on('roles');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
Schema::create('prospecto_status', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ return new class extends Migration
|
||||
$table->date('periodoInicial');
|
||||
$table->date('periodoFinal');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->foreign('nivel_id')->references('id')->on('nivels');
|
||||
$table->unsignedBigInteger('plantel_id');
|
||||
$table->foreign('plantel_id')->references('id')->on('plantels');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->foreign('plantel_id')->references('id')->on('plantels');
|
||||
$table->unsignedBigInteger('turno_id');
|
||||
$table->foreign('turno_id')->references('id')->on('turnos');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->decimal('monto', 8, 2);
|
||||
$table->integer('tipo');
|
||||
$table->boolean('recargo');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->foreign('plane_id')->references('id')->on('planes');
|
||||
$table->unsignedBigInteger('concepto_id');
|
||||
$table->foreign('concepto_id')->references('id')->on('conceptos');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ return new class extends Migration
|
||||
Schema::create('tipo_conceptos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
||||
$table->dateTime('registro')->nullable();
|
||||
$table->string('latitud');
|
||||
$table->string('longitud');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -11,10 +11,10 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('area_code', function (Blueprint $table) {
|
||||
Schema::create('area_codes', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->timestamps();
|
||||
$table->string('description');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('area_code');
|
||||
Schema::dropIfExists('area_codes');
|
||||
}
|
||||
};
|
||||
@@ -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('incidencias', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->dateTime('dia');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('incidencias');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('horarios', function (Blueprint $table) {
|
||||
$table->id();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('horarios');
|
||||
}
|
||||
};
|
||||
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AreaCodeSeeder extends Seeder
|
||||
{
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('area_code')->insert([
|
||||
'name' => 'COR-DSIS'
|
||||
]);
|
||||
|
||||
DB::table('area_code')->insert([
|
||||
'name' => 'COR-PROG'
|
||||
]);
|
||||
|
||||
DB::table('area_code')->insert([
|
||||
'name' => 'COR-CSIS'
|
||||
]);
|
||||
|
||||
DB::table('area_code')->insert([
|
||||
'name' => 'COR-RECU'
|
||||
]);
|
||||
|
||||
DB::table('area_code')->insert([
|
||||
'name' => 'COR-COMP'
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\AreaCode;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AreaCodesSeeder extends Seeder
|
||||
{
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
AreaCode::create([
|
||||
'name' => 'COR-DSIS',
|
||||
'description' => 'Dirección de sistemas'
|
||||
]);
|
||||
|
||||
AreaCode::create([
|
||||
'name' => 'COR-PROG',
|
||||
'description' => 'Programador institucional'
|
||||
]);
|
||||
|
||||
AreaCode::create([
|
||||
'name' => 'COR-CSIS',
|
||||
'description' => 'Coordinador de sistemas'
|
||||
]);
|
||||
|
||||
AreaCode::create([
|
||||
'name' => 'COR-RECU',
|
||||
'description' => 'Recursos humanos'
|
||||
]);
|
||||
|
||||
AreaCode::create([
|
||||
'name' => 'COR-COMP',
|
||||
'description' => 'Dirección compras'
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
$this->call(RoleSeeder::class);
|
||||
$this->call(PlantelSeeder::class);
|
||||
$this->call(AreaCodeSeeder::class);
|
||||
$this->call(AreaCodesSeeder::class);
|
||||
$this->call(UserSeeder::class);
|
||||
$this->call(NivelSeeder::class);
|
||||
$this->call(DurationSeeder::class);
|
||||
|
||||
@@ -103,6 +103,11 @@ class RoleSeeder extends Seeder
|
||||
Permission::create(['name'=>'concepto.edit','description'=>'Editar conceptos'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'concepto.destroy','description'=>'Eliminar conceptos'])->syncRoles([$role1]);
|
||||
|
||||
Permission::create(['name'=>'areacode.index','description'=>'Ver códigos qr'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'areacode.create','description'=>'Crear códigos qr'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'areacode.edit','description'=>'Editar códigos qr'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'areacode.destroy','description'=>'Eliminar códigos qr'])->syncRoles([$role1]);
|
||||
|
||||
Permission::create(['name'=>'code.index','description'=>'Ver asistencia digital'])->syncRoles([$role1]);
|
||||
Permission::create(['name'=>'code.create','description'=>'Asistencia digital'])->syncRoles([$role1]);
|
||||
|
||||
|
||||
@@ -11,27 +11,19 @@ class prospectoStatusSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
DB::table('prospecto_status')->insert([
|
||||
'name' => 'activo',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'name' => 'activo'
|
||||
]);
|
||||
|
||||
DB::table('prospecto_status')->insert([
|
||||
'name' => 'aspirante',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'name' => 'aspirante'
|
||||
]);
|
||||
|
||||
DB::table('prospecto_status')->insert([
|
||||
'name' => 'inscrito',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'name' => 'inscrito'
|
||||
]);
|
||||
|
||||
DB::table('prospecto_status')->insert([
|
||||
'name' => 'baja',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
'name' => 'baja'
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user