ferrero-opentext/Python-Version/scripts
DJP 92ad76faae Add comprehensive database schema documentation - DATABASE_SCHEMA.md
Created complete database reference guide:

Schema Documentation:
 Full table definitions (master_assets, derivative_assets)
 All column descriptions with types and purposes
 Index definitions and purposes
 Foreign key constraints
 Trigger definitions

Migration History:
 Session 1: Initial setup
 Session 2: Add full_metadata JSONB (Oct 30)
 Session 3: Add global_master_campaign_id and global_master_folder_id (Nov 3)
 Complete migration SQL for each change
 Before/after comparison
 Impact assessment

Column Reference Table:
 All 30+ columns documented
 Data types and nullability
 Default values
 Purpose and usage notes
 Highlights new columns with 

Query Examples:
 Common queries (recent assets, by tracking ID, etc.)
 Global Master relationship queries
 Campaign completion checks
 Statistics and reporting queries
 Dashboard queries

Operations:
 Backup and restore procedures
 Maintenance tasks (VACUUM, size checks)
 Performance optimization
 Security and permissions
 Troubleshooting guide

Key Features Documented:
- full_metadata JSONB (no truncation!)
- global_master_campaign_id (campaign relationships)
- global_master_folder_id (folder tracking)
- Tracking ID system
- Connection pooling
- Index strategy

Ready for production deployment with complete DB documentation!

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 10:24:44 -05:00
..
shared Add comprehensive database schema documentation - DATABASE_SCHEMA.md 2025-11-04 10:24:44 -05:00
a1_to_a2_download.py Add Global Campaign Reference extraction and storage for A1→A2 workflow 2025-11-04 10:19:50 -05:00
a2_to_a3_upload.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
a2_to_a3_upload_polling.py Add Box metadata extraction for CreativeX fields in A2→A3 workflow 2025-11-03 14:26:00 -05:00
b1_to_b2_download.py Fix B1→B2 to include campaign number in Box folder name 2025-11-04 09:40:58 -05:00
test_connection.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00