Skip to Content
DocsAI EngineeringDatabase Explainer

Schema Recommendations

Schema Recommendations use AI to review your database schema and identify opportunities for improvement.

Instead of only validating the schema, Qubase AI analyzes the overall database design and provides recommendations that can improve consistency, readability, and maintainability.

Recommendations are intended to assist database engineers and should always be reviewed before implementation.


Before you begin

Before generating recommendations, ensure that you have:

  • Created a Database Schema
  • Added the required tables and columns
  • Defined relationships where applicable

[!NOTE] AI recommendations do not automatically modify your database schema.


What can AI recommend?

Qubase AI may provide recommendations for:

  • Table organization
  • Column naming
  • Missing Primary Keys
  • Missing Foreign Keys
  • Relationship improvements
  • Data type consistency
  • Naming consistency
  • Overall schema structure

Recommendations are generated based on the current database model.


AI workflow

Analyze Database Schema Review Database Structure Detect Improvement Opportunities Generate Recommendations Review and Apply

Generate recommendations

To generate schema recommendations:

  1. Open AI Engineering.
  2. Select Schema Recommendations.
  3. Choose the Database Schema.
  4. Start the analysis.
  5. Review the generated recommendations.
  6. Apply the recommendations that fit your design goals.

Example recommendations

Qubase AI may recommend improvements such as:

RecommendationPurpose
Add a Primary KeyImprove table identification
Add a Foreign KeyStrengthen data integrity
Rename a columnImprove readability
Rename a tableMaintain naming consistency
Standardize data typesImprove schema consistency
Normalize duplicated dataReduce redundancy

Review recommendations

Before applying a recommendation, verify that it aligns with:

  • Business requirements
  • Application logic
  • Naming conventions
  • Database standards
  • Team guidelines

AI recommendations should support your design, not replace engineering decisions.


Benefits

Schema Recommendations help you:

  • Improve database quality
  • Maintain consistent naming
  • Reduce redundant structures
  • Detect missing database components
  • Encourage database design best practices

Best practices

  • Review every recommendation before applying it.
  • Keep naming conventions consistent across the schema.
  • Confirm recommendations with your development team.
  • Validate the updated schema before generating SQL.

[!TIP] AI recommendations are most effective when your schema is already well structured and uses meaningful table and column names.


Last updated on