87e9346d62
- NestJS backend with 11 modules: Auth, Employees, Departments, Attendance, Leaves, Payroll, Reimbursements, Announcements, Tax, Reports, Admin - JWT authentication with refresh tokens, role-based access (employee/hr_admin/super_admin) - MongoDB schemas with Mongoose for all entities - PDF payslip generation with pdfkit - OpenTelemetry tracing to SigNoz - Automatic database seeding on first startup - Next.js 14 frontend with App Router, Tailwind CSS - 25 pages covering all employee, HR admin, and super admin workflows - Multi-stage Dockerfile with nginx proxy - test-manifest.json for E2E testing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
654 B
TypeScript
20 lines
654 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
import { LeavesController } from './leaves.controller';
|
|
import { LeavesService } from './leaves.service';
|
|
import { Leave, LeaveSchema } from './schemas/leave.schema';
|
|
import { Employee, EmployeeSchema } from '../employees/schemas/employee.schema';
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([
|
|
{ name: Leave.name, schema: LeaveSchema },
|
|
{ name: Employee.name, schema: EmployeeSchema },
|
|
]),
|
|
],
|
|
controllers: [LeavesController],
|
|
providers: [LeavesService],
|
|
exports: [LeavesService, MongooseModule],
|
|
})
|
|
export class LeavesModule {}
|