# sai180208-c/ipl-match-statistics-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/sai180208-c/ipl-match-statistics-analysis
- Repository: https://github.com/sai180208-c/ipl-match-statistics-analysis

## Overview

This is a SQL-based IPL analytics project. Its workflow is to create the relational schema, load IPL records, then run queries for match totals, team wins and scores, venue usage, toss outcomes, winning margins, and win percentages. The documented model covers teams, players, venues, matches, and match statistics. The README documents the schema and execution sequence; no source excerpts were provided, so the graph does not infer relationships beyond those documented there.

Main entry points: [`schema.sql`](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/schema.sql) (IPL schema), [`seed_data.sql`](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/seed_data.sql) (Seed records), [`analysis_queries.sql`](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/analysis_queries.sql) (Analysis queries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Relational model"]
  node_schema["IPL schema<br/>[schema.sql]"]
  node_store[("IPL relational database")]
end

subgraph group_data["IPL data"]
  node_seed["Seed records<br/>[seed_data.sql]"]
end

subgraph group_analysis["Analytics"]
  node_queries["Analysis queries"]
end

node_analyst(("Project user"))

node_analyst -->|"runs"| node_schema
node_schema -->|"defines tables"| node_store
node_analyst -->|"loads data"| node_seed
node_seed -->|"inserts records"| node_store
node_analyst -->|"runs analysis"| node_queries
node_queries -->|"analyzes data"| node_store

click node_schema "https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/schema.sql"
click node_seed "https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/seed_data.sql"
click node_queries "https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/analysis_queries.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,node_store,node_analyst toneBlue
class node_seed toneAmber
class node_queries toneMint
```

## Components

### Relational model

- [IPL schema](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/schema.sql): `schema.sql`
- **IPL relational database**

### IPL data

- [Seed records](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/seed_data.sql): `seed_data.sql`

### Analytics

- [Analysis queries](https://github.com/sai180208-c/ipl-match-statistics-analysis/blob/main/analysis_queries.sql): `analysis_queries.sql`

### Other components

- **Project user**

## Connections

- Project user → IPL schema: runs (evidence: `README.md`)
- IPL schema → IPL relational database: defines tables (evidence: `README.md`)
- Project user → Seed records: loads data (evidence: `README.md`)
- Seed records → IPL relational database: inserts records (evidence: `README.md`)
- Project user → Analysis queries: runs analysis (evidence: `README.md`)
- Analysis queries → IPL relational database: analyzes data (evidence: `README.md`)
