Declarative Data Models & Entity Code Generator
Define data schemas, generate compile-safe Rust structs and SQL migrations with zero boilerplate.
Relational Entities2 Entities
Migration Drift0.0% Drift
Storage LayoutSIMD Aligned (16B)
Code GenerationRust + SQL DDL
Relational Entity Schema & Model Studio
Deterministic type contracts compiled directly to Rust structs and PostgreSQL DDL
Total Entities: 2Storage Engine: In-Memory SoA + PostgreSQLZero Migration Drift: Enforced
📦 Entity: CustomerAccount (Table: 'customers')
5 records active in database pool
| Column / Field Name | Rust / SQL Data Type | Primary Key | Nullable | Default Expression |
|---|---|---|---|---|
| id | u32 | ✓ PK | NOT NULL | AUTO_INCREMENT |
| name | String | — | NOT NULL | '' |
| company | String | — | NOT NULL | '' |
| mrr | u32 | — | NOT NULL | 0 |
| status | enum(Active,Onboarding,ChurnRisk) | — | NOT NULL | 'Active' |
📦 Entity: OpportunityDeal (Table: 'deals')
5 records active in database pool
| Column / Field Name | Rust / SQL Data Type | Primary Key | Nullable | Default Expression |
|---|---|---|---|---|
| id | u32 | ✓ PK | NOT NULL | AUTO_INCREMENT |
| title | String | — | NOT NULL | '' |
| value | u32 | — | NOT NULL | 0 |
| stage | enum(Lead,Discovery,Proposal,Negotiation,ClosedWon) | — | NOT NULL | 'Lead' |
Extend Entity Schema Definition
Add dynamic columns to relational tables with automatic compile-time contracts
Generated Rust & SQL Code Output
Live compiled code artifacts generated deterministically from schema definitions
Rust Entity Representation
#[derive(Clone, Debug, Component)]
#[repr(C, align(16))]
pub struct CustomerAccount {
pub id: u32,
pub name: [u8; 64],
pub company: [u8; 64],
pub mrr: u32,
pub status: CustomerStatus,
}
PostgreSQL SQL Migration
CREATE TABLE customers (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
company VARCHAR(255) NOT NULL,
mrr INTEGER NOT NULL DEFAULT 0,
status VARCHAR(64) NOT NULL DEFAULT 'Active'
);