You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full logical view (ER diagram + tables) is embedded below.
Quick start (local)
python createDB.py # create tables
python InsertData.py # insert sample data
python Queries.py # print reports to the console
Requires Python 3.x. No third-party packages are needed (uses the stdlib sqlite3).
Project structure
.
├── Bank.db # generated SQLite database (built by CI)
├── Bank.md # ER diagram + tables (built by CI)
├── createDB.py # creates schema (tables)
├── InsertData.py # inserts sample data
├── Queries.py # simple SELECT queries (prints to console)
└── .github/
└── workflows/
└── build-and-commit-db.yml # CI: builds Bank.db & Bank.md and updates README.md
Execution flow
flowchart TD
A[createDB.py<br/>create tables] --> B[InsertData.py<br/>insert rows]
A -->|creates| D[(bank.db)]
B -->|updates| D[(bank.db)]
D -->|export via CI| E[Bank.md<br/>ER + tables]
E -->|embedded| R[README.md]
C[Queries.py<br/>print reports] --> D
Loading
Bank — Logical View
ER Diagram
erDiagram
Customers ||--o{ Accounts : has
Accounts ||--o{ Transactions : records
Customers {
INTEGER cust_id PK
TEXT name
TEXT address
TEXT email
}
Accounts {
INTEGER acc_id PK
INTEGER cust_id FK
TEXT acc_type
REAL balance
}
Transactions {
INTEGER trans_id PK
INTEGER acc_id FK
TEXT trans_type
REAL amount
TEXT date
}