SolidX reads your visual model definitions and generates the complete database schema — tables, columns, data types, foreign keys, indexes — with zero manual SQL.
Every model you create in the SolidX App Builder — every field, every relationship, every constraint — is stored as structured metadata. The schema engine continuously reads this metadata and translates it into precise database tables.
| SolidX Type | → | SQL Type | Constraints |
|---|---|---|---|
| Integer | → | BIGINT | PK auto-increment if ID |
| Short Text | → | VARCHAR(1000) | NOT NULL if Required |
| Long Text | → | TEXT | UNIQUE if flagged |
| Date | → | DATE | NOT NULL if Required |
| DateTime | → | TIMESTAMPTZ | DEFAULT NOW() if sys |
| Boolean | → | BOOLEAN | DEFAULT false/true |
| Relational | → | BIGINT + FK | REFERENCES target(id) |
| Rich Text | → | LONGTEXT | HTML content stored |
SolidX handles the two phases of schema management differently. During development, schema changes sync in real time. In production, all changes go through explicit migration scripts.
SolidX uses TypeORM — one of the most battle-tested ORM tools — to manage all schema operations without needing to configure it directly.
SolidX converts each visual model definition into a TypeORM Entity class with all column decorators automatically.
SolidX applies a consistent naming strategy — JavaScript conventions are automatically converted to database-standard naming.
One-to-Many, Many-to-One, Many-to-Many — TypeORM handles the foreign key columns, junction tables automatically.
Every entity generated by SolidX automatically receives the four system-managed fields with auto-lifecycle hooks.
SolidX enforces a single, predictable naming convention end-to-end — from the display name you enter in the UI, to the exact database column name.
The schema generation pipeline runs automatically behind the scenes every time you make changes to your models.
Add a new Model in the App Builder, define its fields, set relationships, and configure settings. SolidX stores your definitions as structured metadata.
On save, the SolidX schema engine reads the updated metadata and identifies what changed — new fields, modified constraints, new relationships.
The engine generates TypeORM Entity classes with all the correct column decorators, type mappings, relationship definitions, and custom naming strategy applied.
In development, TypeORM syncs the schema immediately. In production, SolidX generates a migration script for you to review and apply.
Define your data visually. SolidX handles the tables, columns, types, constraints, and migrations.
npx @solidxai/solidctl@latest create-app