Skip to main content

AI Table Structure to Code

AI Table Structure to Code generates code skeletons from database table structures, helping you quickly bootstrap models, entities, or data-access code.

Supported Data Sources

  • MySQL-family data sources (PolarDB-X is not supported)
  • Oracle
  • OceanBase Oracle
  • DaMeng
  • HANA
  • SQL Server

Steps

  1. Open the SQL Console for the target data source.
  2. In the object tree on the left, locate the target table.
  3. Right-click the table, then click Generate Code.
  4. Choose the target programming language or code template as prompted.
  5. Review the generated code and refine it to match your project conventions.

Tips

  • After generation, you may still need to add naming conventions, annotations, field mappings, and serialization settings.
  • If you want to convert stored procedures or functions instead, see AI Routine to Code.