Skip to content

Claude/mssql futon shop db 011 c uv koqp r1p tdm pmzv ziyx - #1439

Merged
Umachandar Jayachandran (uc-msft) merged 2 commits into
microsoft:masterfrom
lbelos:claude/mssql-futon-shop-db-011CUvKoqpR1pTdmPMZVZiyx
May 1, 2026
Merged

Umachandar Jayachandran (uc-msft) merged 2 commits into
microsoft:masterfrom
lbelos:claude/mssql-futon-shop-db-011CUvKoqpR1pTdmPMZVZiyx

Conversation

@lbelos

@lbelos lbelos commented Nov 8, 2025

Copy link
Copy Markdown

No description provided.

This commit adds a comprehensive SQL Server database sample for a futon
manufacturing business with multi-level bill of materials (BOM), complete
sample data, and 20 manufacturing reports.

Features:
- Multi-level BOM supporting raw materials, components, and finished goods
- Inventory management across multiple warehouses with transaction tracking
- Production order management with work centers and capacity planning
- Quality control inspection tracking
- Purchasing and supplier performance management
- Sales order and customer fulfillment tracking
- 20 comprehensive manufacturing reports including:
  - BOM explosion and where-used analysis
  - Material requirements planning (MRP)
  - Inventory valuation and turnover analysis
  - Production scheduling and capacity analysis
  - Quality and scrap analysis
  - Supplier and customer performance metrics

Database includes:
- Complete schema with 25+ tables
- Sample data: 42 items, 5 suppliers, 8 customers, 3 warehouses
- Product hierarchy: 21 raw materials → 15 components → 6 finished goods
- 20 reporting views for operational insights
- Sample queries demonstrating common use cases
- Comprehensive documentation in README

Files:
- 01-schema.sql - Database schema and table definitions
- 02-sample-data.sql - Sample reference and master data
- 03-manufacturing-reports.sql - 20 manufacturing report views
- 04-sample-queries.sql - Example queries and use cases
- README.md - Complete documentation and usage guide
This commit adds comprehensive sales operations capabilities to the
Futon Manufacturing Database, including support for Retail, Online,
and Wholesale sales channels.

New Features:
- Multi-channel sales support (Retail, Online, Wholesale)
- Retail store management with 7 sample stores
- Sales territories and representative tracking
- Sales quotation and conversion tracking
- Sales returns and refund management
- Promotional campaigns and pricing
- Channel-specific price lists
- 20 comprehensive sales operations reports

Sales Reports (20 total):
1. Sales Performance by Channel - Multi-channel analysis
2. Store Performance - Individual store metrics
3. Sales Rep Performance - Territory and conversion tracking
4. Customer Sales Analysis - Segmentation and status
5. Product Sales Performance - By channel profitability
6. Sales Trend Analysis - MoM and YoY growth
7. Order Value Analysis - AOV and order size distribution
8. Returns Analysis - By reason, product, channel
9. Quote Conversion - Pipeline and win rates
10. Discount Analysis - Impact on margins
11. Top Products - Ranked by multiple metrics
12. Sales by Territory - Geographic performance
13. Channel Profitability - Full P&L by channel
14. Customer Lifetime Value - CLV with tiers
15. Sales Growth Analysis - Trends and patterns
16. Order Size Distribution - Basket analysis
17. Product Mix Analysis - Cross-sell opportunities
18. Time-Based Analysis - Day/hour patterns
19. Sales Pipeline - Funnel conversion rates
20. RFM Segmentation - Customer targeting

Sample Data Added:
- 6 sales territories across regions
- 8 sales representatives
- 7 retail stores (Portland, Seattle, SF, LA)
- 15 sales orders across all channels
- 2 sales returns with reasons
- 2 sales quotes
- 4 promotional campaigns
- 3 channel-specific price lists

Database Enhancements:
- SalesChannel table (Retail, Online, Wholesale)
- Store table for retail locations
- SalesTerritory and SalesRep tables
- SalesReturn and SalesReturnDetail tables
- SalesQuote and SalesQuoteDetail tables
- Promotion table for campaigns
- PriceList and PriceListDetail tables
- Enhanced SalesOrder with channel, store, and rep tracking
- Discount tracking at order and line level

Files Added:
- 05-sales-schema-enhancements.sql - Sales tables and enhancements
- 06-sales-sample-data.sql - Sales sample data (territories, reps, stores, orders)
- 07-sales-reports.sql - 20 sales operations report views
- 08-sales-sample-queries.sql - Example queries for sales analysis

Documentation:
- Updated README with sales reports documentation
- Added sales operations use cases
- Updated installation instructions
- Version bumped to 2.0.0
@uc-msft
Umachandar Jayachandran (uc-msft) merged commit 7b53cf3 into microsoft:master May 1, 2026
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants