# jamestehiro/final-capstone- architecture

> Architecture diagram of the GitHub repository jamestehiro/final-capstone-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jamestehiro/final-capstone-
- Repository: https://github.com/jamestehiro/final-capstone-

## Overview

This is a backend for an alumni career and engagement portal: alumni and employers interact with profiles, jobs, applications, messaging, and community content, while registrars and admins verify accounts and manage the service. The clearest sampled workflow is job and application management, with notifications and file access supporting it. The graph also preserves the substantial application, requirement, audit, messaging, email, rate-limit, and resume data modules. No README was provided, and route excerpts were unavailable, so external request-to-controller links are omitted; edges reflect only visible calls and model relationships.

Main entry points: [`index.js`](https://github.com/jamestehiro/final-capstone-/blob/main/index.js) (Model Associations), [`notificationController.js`](https://github.com/jamestehiro/final-capstone-/blob/main/notificationController.js) (Notifications), [`adminController.js`](https://github.com/jamestehiro/final-capstone-/blob/main/adminController.js) (Administration), [`fileController.js`](https://github.com/jamestehiro/final-capstone-/blob/main/fileController.js) (File Access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_people["Identity and Profiles"]
  node_verification["Account Verification"]
  node_admin["Administration<br/>[adminController.js]"]
  node_profiles["Profile Management"]
  node_profile_preview["Privacy Preview"]
  node_resume["Resume Management"]
end

subgraph group_career["Jobs and Applications"]
  node_jobs["Job Management<br/>[jobController.js]"]
  node_requirements["Requirements"]
  node_applications["Applications"]
  node_application_record[("Application Record<br/>[Application.js]")]
  node_application_documents[("Application Documents")]
  node_application_responses[("Application Responses")]
  node_job_requirements[("Job Requirements<br/>[JobRequirement.js]")]
  node_requirement_snapshots[("Requirement Snapshots")]
  node_requirement_library[("Requirement Library")]
end

subgraph group_engagement["Communication and Community"]
  node_chat["Chat<br/>[chatController.js]"]
  node_messages["Messaging"]
  node_conversation_data[("Conversations<br/>[Conversation.js]")]
  node_message_data[("Messages<br/>[Message.js]")]
  node_announcements["Announcements"]
  node_notifications["Notifications"]
end

subgraph group_platform["Shared Services and Data"]
  node_email_queue[("Email Queue<br/>[EmailQueueJob.js]")]
  node_email_worker["Email Worker"]
  node_files["File Access<br/>[fileController.js]"]
  node_object_storage["Object Storage<br/>[objectStorage.js]"]
  node_audit[("Audit Log<br/>[AuditLog.js]")]
  node_rate_limits[("Rate Limit Entries<br/>[RateLimitEntry.js]")]
  node_model_registry["Model Associations<br/>[index.js]"]
end

node_alumni(("Alumni"))
node_employer(("Employer"))
node_staff(("Registrar and Admin"))

node_verification -->|"notifies"| node_notifications
node_admin -->|"notifies"| node_notifications
node_admin -->|"delegates"| node_jobs
node_admin -->|"uses file URLs"| node_files
node_announcements -->|"notifies"| node_notifications
node_applications -->|"notifies"| node_notifications
node_applications -->|"uses secure URLs"| node_files
node_jobs -->|"notifies"| node_notifications
node_files -->|"resolves stored files"| node_object_storage
node_notifications -->|"enqueues email"| node_email_queue
node_email_worker -.->|"processes jobs"| node_email_queue
node_model_registry -->|"registers model"| node_application_record
node_model_registry -->|"registers model"| node_application_documents
node_model_registry -->|"registers model"| node_application_responses
node_model_registry -->|"registers model"| node_job_requirements
node_model_registry -->|"registers model"| node_requirement_snapshots
node_model_registry -->|"registers model"| node_requirement_library
node_model_registry -->|"registers model"| node_audit
node_model_registry -->|"registers model"| node_conversation_data
node_model_registry -->|"registers model"| node_message_data

click node_verification "https://github.com/jamestehiro/final-capstone-/blob/main/registrarController.js"
click node_admin "https://github.com/jamestehiro/final-capstone-/blob/main/adminController.js"
click node_profiles "https://github.com/jamestehiro/final-capstone-/blob/main/profileController.js"
click node_profile_preview "https://github.com/jamestehiro/final-capstone-/blob/main/profilePreviewController.js"
click node_resume "https://github.com/jamestehiro/final-capstone-/blob/main/resumeController.js"
click node_jobs "https://github.com/jamestehiro/final-capstone-/blob/main/jobController.js"
click node_requirements "https://github.com/jamestehiro/final-capstone-/blob/main/requirementController.js"
click node_applications "https://github.com/jamestehiro/final-capstone-/blob/main/applicationController.js"
click node_application_record "https://github.com/jamestehiro/final-capstone-/blob/main/Application.js"
click node_application_documents "https://github.com/jamestehiro/final-capstone-/blob/main/ApplicationDocument.js"
click node_application_responses "https://github.com/jamestehiro/final-capstone-/blob/main/ApplicationResponse.js"
click node_job_requirements "https://github.com/jamestehiro/final-capstone-/blob/main/JobRequirement.js"
click node_requirement_snapshots "https://github.com/jamestehiro/final-capstone-/blob/main/JobRequirementSnapshot.js"
click node_requirement_library "https://github.com/jamestehiro/final-capstone-/blob/main/RequirementLibrary.js"
click node_chat "https://github.com/jamestehiro/final-capstone-/blob/main/chatController.js"
click node_messages "https://github.com/jamestehiro/final-capstone-/blob/main/messageController.js"
click node_conversation_data "https://github.com/jamestehiro/final-capstone-/blob/main/Conversation.js"
click node_message_data "https://github.com/jamestehiro/final-capstone-/blob/main/Message.js"
click node_announcements "https://github.com/jamestehiro/final-capstone-/blob/main/announcementController.js"
click node_notifications "https://github.com/jamestehiro/final-capstone-/blob/main/notificationController.js"
click node_email_queue "https://github.com/jamestehiro/final-capstone-/blob/main/EmailQueueJob.js"
click node_email_worker "https://github.com/jamestehiro/final-capstone-/blob/main/emailQueueWorker.js"
click node_files "https://github.com/jamestehiro/final-capstone-/blob/main/fileController.js"
click node_object_storage "https://github.com/jamestehiro/final-capstone-/blob/main/objectStorage.js"
click node_audit "https://github.com/jamestehiro/final-capstone-/blob/main/AuditLog.js"
click node_rate_limits "https://github.com/jamestehiro/final-capstone-/blob/main/RateLimitEntry.js"
click node_model_registry "https://github.com/jamestehiro/final-capstone-/blob/main/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_verification,node_admin,node_profiles,node_profile_preview,node_resume toneBlue
class node_jobs,node_requirements,node_applications,node_application_record,node_application_documents,node_application_responses,node_job_requirements,node_requirement_snapshots,node_requirement_library toneAmber
class node_chat,node_messages,node_conversation_data,node_message_data,node_announcements,node_notifications toneMint
class node_email_queue,node_email_worker,node_files,node_object_storage,node_audit,node_rate_limits,node_model_registry toneRose
class node_alumni,node_employer,node_staff toneIndigo
```

## Components

### Identity and Profiles

- [Account Verification](https://github.com/jamestehiro/final-capstone-/blob/main/registrarController.js): `registrarController.js`
- [Administration](https://github.com/jamestehiro/final-capstone-/blob/main/adminController.js): `adminController.js`
- [Profile Management](https://github.com/jamestehiro/final-capstone-/blob/main/profileController.js): `profileController.js`
- [Privacy Preview](https://github.com/jamestehiro/final-capstone-/blob/main/profilePreviewController.js): `profilePreviewController.js`
- [Resume Management](https://github.com/jamestehiro/final-capstone-/blob/main/resumeController.js): `resumeController.js`

### Jobs and Applications

- [Job Management](https://github.com/jamestehiro/final-capstone-/blob/main/jobController.js): `jobController.js`
- [Requirements](https://github.com/jamestehiro/final-capstone-/blob/main/requirementController.js): `requirementController.js`
- [Applications](https://github.com/jamestehiro/final-capstone-/blob/main/applicationController.js): `applicationController.js`
- [Application Record](https://github.com/jamestehiro/final-capstone-/blob/main/Application.js): `Application.js`
- [Application Documents](https://github.com/jamestehiro/final-capstone-/blob/main/ApplicationDocument.js): `ApplicationDocument.js`
- [Application Responses](https://github.com/jamestehiro/final-capstone-/blob/main/ApplicationResponse.js): `ApplicationResponse.js`
- [Job Requirements](https://github.com/jamestehiro/final-capstone-/blob/main/JobRequirement.js): `JobRequirement.js`
- [Requirement Snapshots](https://github.com/jamestehiro/final-capstone-/blob/main/JobRequirementSnapshot.js): `JobRequirementSnapshot.js`
- [Requirement Library](https://github.com/jamestehiro/final-capstone-/blob/main/RequirementLibrary.js): `RequirementLibrary.js`

### Communication and Community

- [Chat](https://github.com/jamestehiro/final-capstone-/blob/main/chatController.js): `chatController.js`
- [Messaging](https://github.com/jamestehiro/final-capstone-/blob/main/messageController.js): `messageController.js`
- [Conversations](https://github.com/jamestehiro/final-capstone-/blob/main/Conversation.js): `Conversation.js`
- [Messages](https://github.com/jamestehiro/final-capstone-/blob/main/Message.js): `Message.js`
- [Announcements](https://github.com/jamestehiro/final-capstone-/blob/main/announcementController.js): `announcementController.js`
- [Notifications](https://github.com/jamestehiro/final-capstone-/blob/main/notificationController.js): `notificationController.js`

### Shared Services and Data

- [Email Queue](https://github.com/jamestehiro/final-capstone-/blob/main/EmailQueueJob.js): `EmailQueueJob.js`
- [Email Worker](https://github.com/jamestehiro/final-capstone-/blob/main/emailQueueWorker.js): `emailQueueWorker.js`
- [File Access](https://github.com/jamestehiro/final-capstone-/blob/main/fileController.js): `fileController.js`
- [Object Storage](https://github.com/jamestehiro/final-capstone-/blob/main/objectStorage.js): `objectStorage.js`
- [Audit Log](https://github.com/jamestehiro/final-capstone-/blob/main/AuditLog.js): `AuditLog.js`
- [Rate Limit Entries](https://github.com/jamestehiro/final-capstone-/blob/main/RateLimitEntry.js): `RateLimitEntry.js`
- [Model Associations](https://github.com/jamestehiro/final-capstone-/blob/main/index.js): `index.js`

### Other components

- **Alumni**
- **Employer**
- **Registrar and Admin**

## Connections

- Account Verification → Notifications: notifies (evidence: `registrarController.js`)
- Administration → Notifications: notifies (evidence: `adminController.js`)
- Administration → Job Management: delegates (evidence: `adminController.js`)
- Administration → File Access: uses file URLs (evidence: `adminController.js`)
- Announcements → Notifications: notifies (evidence: `announcementController.js`)
- Applications → Notifications: notifies (evidence: `applicationController.js`)
- Applications → File Access: uses secure URLs (evidence: `applicationController.js`)
- Job Management → Notifications: notifies (evidence: `jobController.js`)
- File Access → Object Storage: resolves stored files (evidence: `fileController.js`)
- Notifications → Email Queue: enqueues email (evidence: `notificationController.js`)
- Email Worker → Email Queue: processes jobs
- Model Associations → Application Record: registers model (evidence: `index.js`)
- Model Associations → Application Documents: registers model (evidence: `index.js`)
- Model Associations → Application Responses: registers model (evidence: `index.js`)
- Model Associations → Job Requirements: registers model (evidence: `index.js`)
- Model Associations → Requirement Snapshots: registers model (evidence: `index.js`)
- Model Associations → Requirement Library: registers model (evidence: `index.js`)
- Model Associations → Audit Log: registers model (evidence: `index.js`)
- Model Associations → Conversations: registers model (evidence: `index.js`)
- Model Associations → Messages: registers model (evidence: `index.js`)
