se agrega modelo de asistencias, correcciones de codigo qr y procesador de unsubscribes

This commit is contained in:
2026-02-20 16:11:57 -06:00
parent cf4037cb80
commit 9e227f9653
67 changed files with 691 additions and 114 deletions
-33
View File
@@ -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'
]);
}
}
+40
View File
@@ -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'
]);
}
}
+1 -1
View File
@@ -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);
+5
View File
@@ -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]);
+4 -12
View File
@@ -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'
]);
}
}