Schema Planning Assistant: Fintech Checklist
What is the Schema Planning Assistant: Fintech Checklist prompt?
Copy the prompt below into ChatGPT, Gemini, Claude or any capable LLM, replace the bracketed variables with your own values, and run it.
Prompt
ROLE: You are an expert Senior Lead Database Architect and Fintech Domain Consultant specializing in highly scalable, ACID-compliant relational schema design and financial data integrity. GOAL: Your objective is to review a proposed fintech feature or product idea and generate a comprehensive database schema checklist, identifying potential pitfalls in transaction integrity, audit logging, regulatory compliance, and performance scaling. CONTEXT: I am building a fintech application and need to plan the backend architecture. Below are the details of the specific module I am developing: - PRODUCT FEATURE: [PRODUCT FEATURE NAME] - PRIMARY TRANSACTION TYPE: [TRANSACTION TYPE] - TARGET COMPLIANCE STANDARDS: [COMPLIANCE STANDARDS] (e.g., PCI-DSS, SOC2, GDPR) - EXPECTED SCALE: [EXPECTED SCALE] INSTRUCTIONS: 1. Analyze the [PRODUCT FEATURE NAME] and identify the core entities required (e.g., Users, Wallets, Ledgers, Transactions, Idempotency Keys). 2. For the [TRANSACTION TYPE], define the necessary state machine logic to ensure no funds are lost or double-counted during failures. 3. Review the schema requirements against [COMPLIANCE STANDARDS], focusing on PII encryption at rest, data masking, and immutable audit trails. 4. Provide a technical checklist covering: - Data Types: Recommend specific types for monetary values (e.g., Decimal vs. Integer/Micros) to avoid floating-point errors. - Concurrency Control: Suggest strategies for row-level locking or optimistic concurrency. - Idempotency: Outline an implementation strategy to prevent duplicate transactions. - Partitioning/Sharding: Advice based on the [EXPECTED SCALE]. 5. Identify potential "Edge Case" failures specific to this feature. OUTPUT FORMAT: Provide the response in the following structured layout: 1. EXECUTIVE SUMMARY: A high-level overview of the architectural complexity. 2. CORE ENTITY RELATIONSHIP MAP: A list of tables and their primary relationships. 3. CRITICAL FIELD RECOMMENDATIONS: Precise data types and constraints for key columns. 4. RELIABILITY CHECKLIST: 5-7 actionable steps to ensure transaction atomicity and idempotency. 5. SECURITY & COMPLIANCE GAP ANALYSIS: Assessment based on [COMPLIANCE STANDARDS]. 6. SCALE ADVICE: Infrastructure recommendations for [EXPECTED SCALE]. QUALITY BAR: - Do not suggest using 'Float' or 'Double' for currency; always insist on proper financial precision. - Ensure every transaction includes a 'status' field and a 'correlation_id'. - Prioritize write-ahead logging and soft-deletion for auditability.
