# deepikapushadapu/database_gpms_project architecture

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

- Interactive diagram: https://gitdiagram.com/deepikapushadapu/database_gpms_project
- Repository: https://github.com/deepikapushadapu/database_gpms_project

## Overview

GPMS is a Django application for panchayat administration: citizens access records and services, employees manage local records, and government monitors review population and program data. Requests enter through the project router and are dispatched to view functions, which contain business logic and issue SQL against PostgreSQL. The URL configuration documents distinct service areas; the sampled views confirm direct database access. Most view implementations and template rendering were not sampled, so those relationships are shown only as unverified where appropriate.

Main entry points: [`panchayat/urls.py`](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/urls.py) (Service URL routes), [`gpms/urls.py`](https://github.com/deepikapushadapu/database_gpms_project/blob/main/gpms/urls.py) (Project URL router), [`panchayat/views.py`](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py) (Sign-in and recovery), [`panchayat/templates/panchayat`](https://github.com/deepikapushadapu/database_gpms_project/tree/main/panchayat/templates/panchayat) (HTML pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web entry"]
  node_project_router["Project URL router<br/>[urls.py]"]
  node_app_router["Service URL routes<br/>[urls.py]"]
end

subgraph group_citizen["Citizen services"]
  node_authentication["Sign-in and recovery<br/>[views.py]"]
  node_citizen_services["Citizen records and services<br/>[views.py]"]
end

subgraph group_operations["Panchayat operations"]
  node_employee_records["Employee record management<br/>[views.py]"]
  node_scheme_enrollment["Scheme enrollment<br/>[views.py]"]
  node_complaint_handling["Complaint handling<br/>[views.py]"]
  node_financial_records["Tax and expenditure<br/>[views.py]"]
  node_custom_admin["Administrative data tools<br/>[views.py]"]
end

subgraph group_oversight["Government oversight"]
  node_monitor_dashboard["Monitoring dashboards<br/>[views.py]"]
  node_population_households["Population and households<br/>[views.py]"]
  node_monitor_programs["Programs and assets<br/>[views.py]"]
  node_monitor_finance["Oversight reporting<br/>[views.py]"]
end

node_citizens(("Citizens"))
node_employees(("Panchayat employees"))
node_monitors(("Government monitors"))
node_postgres[("PostgreSQL database")]
node_web_templates["HTML pages"]

node_citizens -.->|"send requests"| node_project_router
node_employees -.->|"send requests"| node_project_router
node_monitors -.->|"send requests"| node_project_router
node_project_router -->|"includes routes"| node_app_router
node_app_router -->|"routes auth"| node_authentication
node_app_router -->|"routes citizen services"| node_citizen_services
node_app_router -->|"routes record management"| node_employee_records
node_app_router -->|"routes enrollment"| node_scheme_enrollment
node_app_router -->|"routes complaints"| node_complaint_handling
node_app_router -->|"routes finance"| node_financial_records
node_app_router -->|"routes data tools"| node_custom_admin
node_app_router -->|"routes dashboards"| node_monitor_dashboard
node_app_router -->|"routes population"| node_population_households
node_app_router -->|"routes program views"| node_monitor_programs
node_app_router -->|"routes oversight reports"| node_monitor_finance
node_authentication -->|"queries records"| node_postgres
node_citizen_services -->|"queries records"| node_postgres
node_employee_records -->|"queries records"| node_postgres
node_scheme_enrollment -.->|"queries records"| node_postgres
node_complaint_handling -.->|"queries records"| node_postgres
node_financial_records -.->|"queries records"| node_postgres
node_custom_admin -.->|"queries records"| node_postgres
node_monitor_dashboard -.->|"queries records"| node_postgres
node_population_households -.->|"queries records"| node_postgres
node_monitor_programs -.->|"queries records"| node_postgres
node_monitor_finance -.->|"queries records"| node_postgres
node_postgres -.-> node_web_templates

click node_project_router "https://github.com/deepikapushadapu/database_gpms_project/blob/main/gpms/urls.py"
click node_app_router "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/urls.py"
click node_authentication "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_citizen_services "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_employee_records "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_scheme_enrollment "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_complaint_handling "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_financial_records "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_custom_admin "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_monitor_dashboard "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_population_households "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_monitor_programs "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_monitor_finance "https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py"
click node_web_templates "https://github.com/deepikapushadapu/database_gpms_project/tree/main/panchayat/templates/panchayat"

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_project_router,node_app_router toneBlue
class node_authentication,node_citizen_services,node_postgres toneAmber
class node_employee_records,node_scheme_enrollment,node_complaint_handling,node_financial_records,node_custom_admin toneMint
class node_monitor_dashboard,node_population_households,node_monitor_programs,node_monitor_finance toneRose
class node_citizens,node_employees,node_monitors toneIndigo
class node_web_templates toneTeal
```

## Components

### Web entry

- [Project URL router](https://github.com/deepikapushadapu/database_gpms_project/blob/main/gpms/urls.py): `gpms/urls.py`
- [Service URL routes](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/urls.py): `panchayat/urls.py`

### Citizen services

- [Sign-in and recovery](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Citizen records and services](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`

### Panchayat operations

- [Employee record management](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Scheme enrollment](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Complaint handling](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Tax and expenditure](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Administrative data tools](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`

### Government oversight

- [Monitoring dashboards](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Population and households](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Programs and assets](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`
- [Oversight reporting](https://github.com/deepikapushadapu/database_gpms_project/blob/main/panchayat/views.py): `panchayat/views.py`

### Other components

- **Citizens**
- **Panchayat employees**
- **Government monitors**
- **PostgreSQL database**
- [HTML pages](https://github.com/deepikapushadapu/database_gpms_project/tree/main/panchayat/templates/panchayat): `panchayat/templates/panchayat`

## Connections

- Citizens → Project URL router: send requests
- Panchayat employees → Project URL router: send requests
- Government monitors → Project URL router: send requests
- Project URL router → Service URL routes: includes routes (evidence: `gpms/urls.py`)
- Service URL routes → Sign-in and recovery: routes auth (evidence: `panchayat/urls.py`)
- Service URL routes → Citizen records and services: routes citizen services (evidence: `panchayat/urls.py`)
- Service URL routes → Employee record management: routes record management (evidence: `panchayat/urls.py`)
- Service URL routes → Scheme enrollment: routes enrollment (evidence: `panchayat/urls.py`)
- Service URL routes → Complaint handling: routes complaints (evidence: `panchayat/urls.py`)
- Service URL routes → Tax and expenditure: routes finance (evidence: `panchayat/urls.py`)
- Service URL routes → Administrative data tools: routes data tools (evidence: `panchayat/urls.py`)
- Service URL routes → Monitoring dashboards: routes dashboards (evidence: `panchayat/urls.py`)
- Service URL routes → Population and households: routes population (evidence: `panchayat/urls.py`)
- Service URL routes → Programs and assets: routes program views (evidence: `panchayat/urls.py`)
- Service URL routes → Oversight reporting: routes oversight reports (evidence: `panchayat/urls.py`)
- Sign-in and recovery → PostgreSQL database: queries records (evidence: `panchayat/views.py`)
- Citizen records and services → PostgreSQL database: queries records (evidence: `panchayat/views.py`)
- Employee record management → PostgreSQL database: queries records (evidence: `panchayat/views.py`)
- Scheme enrollment → PostgreSQL database: queries records
- Complaint handling → PostgreSQL database: queries records
- Tax and expenditure → PostgreSQL database: queries records
- Administrative data tools → PostgreSQL database: queries records
- Monitoring dashboards → PostgreSQL database: queries records
- Population and households → PostgreSQL database: queries records
- Programs and assets → PostgreSQL database: queries records
- Oversight reporting → PostgreSQL database: queries records
- PostgreSQL database → HTML pages
