Skip to content

Commit

Permalink
adding DatabaseRequirementHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHallen122 committed Dec 14, 2024
1 parent 65b16f4 commit 7bedb65
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,32 @@ describe('Sequence: PRD -> UXSD -> UXDD -> UXSS -> DBSchemas -> BackendCodeGener
},
{
id: 'step-4',
name: 'Generate Database Requirements',
nodes: [
{
id: 'op:DATABASE_REQ::STATE:GENERATE',
name: 'Database Requirements Node',
type: 'DATABASE',
subType: 'SCHEMAS',
requires: ['op:UX_DATAMAP::STATE:GENERATE'],
},
],
},
{
id: 'step-5',
name: 'Generate Database Schemas',
nodes: [
{
id: 'op:DATABASE:SCHEMAS',
name: 'Database Schemas Node',
type: 'DATABASE',
subType: 'SCHEMAS',
requires: ['op:UX_DATAMAP::STATE:GENERATE'],
requires: ['op:DATABASE_REQ::STATE:GENERATE'],
},
],
},
{
id: 'step-5',
id: 'step-6',
name: 'Generate Backend Code',
nodes: [
{
Expand Down
2 changes: 2 additions & 0 deletions backend/src/build-system/hanlder-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { FileStructureHandler } from './handlers/file-manager/file-structure';
import { FileArchGenerateHandler } from './handlers/file-manager/file-arch';
import { BackendCodeHandler } from './handlers/backend/code-generate';
import { DBSchemaHandler } from './handlers/database/schemas/schemas';
import { DatabaseRequirementHandler } from './handlers/database/requirements-document';

export class BuildHandlerManager {
private static instance: BuildHandlerManager;
Expand All @@ -28,6 +29,7 @@ export class BuildHandlerManager {
new FileArchGenerateHandler(),
new BackendCodeHandler(),
new DBSchemaHandler(),
new DatabaseRequirementHandler(),
];

for (const handler of builtInHandlers) {
Expand Down

0 comments on commit 7bedb65

Please sign in to comment.