Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions backend/src/build-system/handlers/database/schemas/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
generateDatabaseSchema: (
dbAnalysis: string,
databaseType: string = 'PostgreSQL',
fileExtension: string,

Check warning on line 80 in backend/src/build-system/handlers/database/schemas/prompt.ts

View workflow job for this annotation

GitHub Actions / autofix

'fileExtension' is defined but never used. Allowed unused args must match /^_/u
): string => {
return `You are a Database Engineer specializing in ${databaseType}. Generate the complete database schema based on the following analysis, using appropriate ${databaseType} syntax and features:

Expand Down Expand Up @@ -131,9 +131,7 @@
): string => {
return `You are a Database Expert specializing in ${databaseType}. Your task is to analyze and fix any issues in the following database schema:

<GENERATE>
${schemaContent}
</GENERATE>

As an expert database engineer, you should:
1. Analyze the schema for any syntax errors, logical inconsistencies, or missing elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class DBSchemaHandler implements BuildHandler {
{
role: 'user',
content:
'help me fix my schema code if there is any failed validation',
'help me fix my schema code if there is any failed validation, generate full validated version schemas for me, with <GENERATE></GENERATE> xml tag',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export class FrontendCodeHandler implements BuildHandler<string> {
content: `Dependencies:

${dependenciesText}\n
Now you can provide the code.
`,
Now you can provide the code, don't forget the <GENERATE></GENERATE> xml tags.
, `,
},
] as MessageInterface[];

Expand Down
Loading