Prisma schema filename. Convention: schema-{number}-{domain}.prisma where
number indicates dependency order.
Component group kind.
"authorization": Auth tables (users, sessions, password resets).
Processed by Authorization Agent."domain": Business tables (products, orders). Processed by Component
Agent.NamespacenamespaceBusiness domain namespace for Prisma directive.
Examples: "Systematic", "Actors", "Sales", "Orders", "Articles".
Final rationale cementing the component's structure.
Review considerations: relationships with other domains, grouping validation.
Array of table designs that will be included in this component's schema file.
Contains all database tables that belong to this business domain, each with a name and description explaining its purpose. This ensures logical grouping, proper organization, and clear documentation of related data structures.
Initial thoughts on why these tables belong together.
Interface representing a logical grouping of database tables organized by business domain for schema file generation.
Components provide a systematic way to organize database tables into coherent groups following domain-driven design principles. Each component represents a specific business domain or functional area that will be generated as a separate Prisma schema file, ensuring maintainable and logically structured database architecture.
This interface is primarily used during the database design phase when the Database agent analyzes requirements and determines the complete scope of tables needed, then organizes them into logical groups based on business relationships and functional dependencies.
Usage in Schema Generation Process
Components serve as the blueprint for generating multiple Prisma schema files:
Domain Organization Examples
Based on typical business applications, components commonly include:
Relationship to AutoBeDatabase.IFile
Each AutoBeDatabaseComponent serves as a blueprint for generating one IFile during the schema generation process. The component's metadata (filename, namespace, tables) is used to structure the actual Prisma schema file with proper models, relationships, and indexes.
Author
Samchon
See