c_agri_trade/process/scripts/demo
Prashant Shendre fcac8af61d Fixed hardcoded data and ensured seed data would be used. Checkpointing to resume process quality gates update tomorrow 2026-10-15 19:51:21 +05:30
..
README.md Synthetic data scripts for sales 2026-10-14 16:15:34 +05:30
cleanup_demo_data.py Fixed hardcoded data and ensured seed data would be used. Checkpointing to resume process quality gates update tomorrow 2026-10-15 19:51:21 +05:30
seed_demo_data.py Fixed hardcoded data and ensured seed data would be used. Checkpointing to resume process quality gates update tomorrow 2026-10-15 19:51:21 +05:30

README.md

ATB Commercial Sales Demo Scripts (scripts/demo/)

This directory contains executable automation scripts to support customer sales presentations, prospect trials, and commercial demonstrations for the Agriculture Trading Backoffice (ATB) platform.


1. Scripts Overview

Script Name Purpose Production Safety Guardrails
seed_demo_data.py Provisions demo tenant demo-malwa-agri, 11 RBAC accounts, master data, connected transactions, and 20-day historical snapshots. Multi-tenant isolated (demo-* only). Supports --clean-first for idempotent re-seeding.
cleanup_demo_data.py Safely tears down the demo tenant and all child records across 24 relational collections in strict reverse cascade order. Enforced demo- slug prefix check (hard-aborts on production/client IDs). Confirmation flag --confirm-purge required.

2. Quickstart Execution

Ingesting Demo Data:

# Clean existing demo records and re-seed fresh baseline:
python3 scripts/demo/seed_demo_data.py --clean-first

# Seed custom demo tenant ID (must start with demo-):
python3 scripts/demo/seed_demo_data.py --tenant-id demo-kisan-agri

Safely Cleaning Up Demo Data:

# Interactive confirmation prompt:
python3 scripts/demo/cleanup_demo_data.py

# Non-interactive / CI / automated teardown:
python3 scripts/demo/cleanup_demo_data.py --confirm-purge

# Clean specific demo tenant:
python3 scripts/demo/cleanup_demo_data.py --tenant-id demo-kisan-agri --confirm-purge

For complete narrative scripts, persona walkthroughs, and data recipes, refer to the governed SDLC package: