Number of items completed.
Tracks how many items have been successfully processed so far in the current operation. This value increments as each item is completed, providing real-time progress indication.
The ratio of completed
to total
gives the completion percentage:
progress = (completed / total) * 100
Timestamp when the event was created.
ISO 8601 formatted date-time string indicating when this event was emitted by the system. This timestamp is crucial for event ordering, performance analysis, and debugging the agent workflow execution timeline.
Format: "YYYY-MM-DDTHH:mm:ss.sssZ" (e.g., "2024-01-15T14:30:45.123Z")
Name of the Prisma schema file being reviewed.
A unique identifier for the event.
Array of Prisma models that have been modified based on review feedback.
Contains ONLY the models that required changes, not the entire schema. Each model represents a complete table definition with all fields, relationships, indexes, and documentation. These modifications will be applied to the draft schema to produce the final implementation.
Model Requirements:
Notes:
Strategic database design plan that guided the schema creation.
Contains the original planning document that outlines the database architecture strategy, including table structures, relationships, normalization approach, and business requirement mapping. This plan serves as the blueprint for validating the implemented schema.
Planning Components:
Example:
"Database Design Strategy:
Component: Sales Domain
Tables: shopping_sales, shopping_sale_snapshots, shopping_sale_units
Design Approach:
- Normalize product catalog to 3NF for data integrity
- Implement snapshot pattern for price history tracking
- Create composite indexes for product search queries
- Use materialized views for sales analytics dashboards"
Comprehensive review analysis of the proposed schema modifications.
Contains the AI agent's detailed evaluation of the schema changes, including validation of normalization compliance, relationship integrity, index optimization, and business requirement alignment. The review identifies potential issues and confirms adherence to best practices.
Review Dimensions:
Example:
"After reviewing the schema modifications:
1. All tables properly implement UUID primary keys
2. Foreign key relationships correctly reference existing models
3. Composite indexes optimize for common query patterns
4. Snapshot tables include proper temporal fields
5. Materialized views (mv_) contain appropriate denormalization
The schema follows all best practices and is ready for implementation."
Iteration number of the requirements analysis this review was performed for.
Indicates which version of the requirements analysis this schema review reflects. This step number ensures that the database review and modifications are aligned with the current requirements and helps track the evolution of database architecture as business requirements change.
The step value enables proper synchronization between database review activities and the underlying requirements, ensuring that the schema structure remains relevant to the current project scope and business objectives.
Detailed token usage metrics for the current operation.
Contains comprehensive token consumption data including total usage, input token breakdown with cache statistics, and output token categorization by generation type. This component-level tracking enables precise analysis of resource utilization for specific agent operations such as schema generation, test writing, or code implementation.
The token usage data helps identify optimization opportunities, monitor operational costs, and ensure efficient use of AI resources throughout the automated backend development process.
Total number of items to process.
Represents the complete count of operations, files, endpoints, or other entities that need to be processed in the current workflow step. This value is typically determined at the beginning of an operation and remains constant throughout the process.
Used together with the completed
field to calculate progress percentage
and estimate time to completion.
Unique identifier for the event type.
A literal string that discriminates between different event types in the AutoBE system. This field enables TypeScript's discriminated union feature, allowing type-safe event handling through switch statements or conditional checks.
Examples: "analyzeWrite", "prismaSchemas", "interfaceOperations", "testScenarios"
Event fired when the Prisma agent reviews and validates schema modifications during the database design process.
This event occurs when the Prisma agent has completed a comprehensive review of proposed database schema changes, validating them against best practices, business requirements, and technical constraints. The review process ensures that all modifications maintain data integrity, follow normalization principles, and optimize for performance while aligning with business logic.
The review includes validation of normalization compliance, relationship integrity, indexing strategies, naming conventions, and temporal field handling. Based on the review findings, the agent provides targeted modifications to address any identified issues while preserving the overall schema architecture.
Author
Samchon