Initial commit: Horux Strategy Platform

- Laravel 11 backend with API REST
- React 18 + TypeScript + Vite frontend
- Multi-parser architecture for accounting systems (CONTPAQi, Aspel, SAP)
- 27+ financial metrics calculation
- PDF report generation with Browsershot
- Complete documentation (10 documents)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 22:24:00 -06:00
commit 4c3dc94ff2
107 changed files with 10701 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PermisoEmpleado extends Model
{
use HasFactory;
protected $table = 'permisos_empleado';
protected $fillable = [
'user_id',
'cliente_id',
'permisos',
];
protected function casts(): array
{
return [
'permisos' => 'array',
];
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function cliente(): BelongsTo
{
return $this->belongsTo(Cliente::class);
}
public function tienePermiso(string $permiso): bool
{
return in_array($permiso, $this->permisos ?? []);
}
}