Commit e03ba96
feat: add demo database seeding for end-to-end exploration
Add a comprehensive demo seeding system that gives new users a ready-to-explore
e-commerce database with:
- demo_shop database: 100 products, 500 customers, 5000+ orders with realistic
data patterns including intentionally suboptimal queries for recommendations
- Pre-configured index recommendations and slow query analysis
- Sample saved queries in the SQL Editor (revenue reports, analytics, examples)
- Sample agent conversation history
- Scoped demo users (analyst, developer, viewer)
Usage:
- Manual: ./scripts/self-host/seed-demo-data.sh
- Auto during install: DEEPSQL_SEED_DEMO_DATA=1 ./scripts/self-host/install.sh
Files added:
- docker/postgres/init/10_create_demo_shop.sql: E-commerce schema + sample data
- scripts/self-host/seed-demo-data.sh: Orchestration script for full seeding
Files modified:
- scripts/self-host/install.sh: Optional demo seeding integration
- .env.example: Document new DEEPSQL_SEED_* environment variables
- README.md: Document demo database and seed-demo-data.sh script
Co-authored-by: Venkat SF <venkatesh.sakamuri@stayflexi.com>1 parent 051691f commit e03ba96
5 files changed
Lines changed: 1477 additions & 0 deletions
File tree
- docker/postgres/init
- scripts/self-host
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
256 | 274 | | |
257 | 275 | | |
258 | 276 | | |
| |||
0 commit comments