# naveen112004/fraud-detection-sql-project architecture

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

- Interactive diagram: https://gitdiagram.com/naveen112004/fraud-detection-sql-project
- Repository: https://github.com/naveen112004/fraud-detection-sql-project

## Overview

This is a small MySQL fraud-analysis project, not an application with a separate runtime service. Its documented workflow is to create the database schema, insert sample financial records, then run SQL analyses for fraud and transaction patterns. The README describes table contents and analysis areas, but no SQL excerpts were provided, so the graph shows only documented script relationships and groups the analyses into one component.

Main entry points: [`data.sql`](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/data.sql) (Sample records), [`schema.sql`](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/schema.sql) (Database schema), [`analysis.sql`](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/analysis.sql) (Fraud analyses)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Database setup"]
  node_schema[("Database schema<br/>[schema.sql]")]
end

subgraph group_sample_data["Sample data"]
  node_records["Sample records<br/>[data.sql]"]
end

subgraph group_analysis["Transaction analysis"]
  node_queries["Fraud analyses<br/>[analysis.sql]"]
end

node_analyst(("Analyst"))

node_analyst -->|"executes first"| node_schema
node_schema -->|"prepares tables"| node_records
node_analyst -->|"executes next"| node_records
node_records -->|"provides transactions"| node_queries
node_analyst -->|"runs analyses"| node_queries

click node_schema "https://github.com/naveen112004/fraud-detection-sql-project/blob/main/schema.sql"
click node_records "https://github.com/naveen112004/fraud-detection-sql-project/blob/main/data.sql"
click node_queries "https://github.com/naveen112004/fraud-detection-sql-project/blob/main/analysis.sql"

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_schema toneBlue
class node_records toneAmber
class node_queries toneMint
class node_analyst toneIndigo
```

## Components

### Database setup

- [Database schema](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/schema.sql): `schema.sql`

### Sample data

- [Sample records](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/data.sql): `data.sql`

### Transaction analysis

- [Fraud analyses](https://github.com/naveen112004/fraud-detection-sql-project/blob/main/analysis.sql): `analysis.sql`

### Other components

- **Analyst**

## Connections

- Analyst → Database schema: executes first (evidence: `README.md`)
- Database schema → Sample records: prepares tables (evidence: `README.md`)
- Analyst → Sample records: executes next (evidence: `README.md`)
- Sample records → Fraud analyses: provides transactions (evidence: `README.md`)
- Analyst → Fraud analyses: runs analyses (evidence: `README.md`)
