Schema and migration workflows¶
TypeBridge separates desired schema, migration history, and generated application projections. For new V2 systems, a versioned Split-YAML workspace is the canonical authoring authority.
Recommended V2 flow¶
- Author a Split-YAML schema set and workspace.
- Validate it offline with
type-bridge … schema check. - Create and review a migration.
- Apply the migration only in an environment that permits it.
- Generate configured Python, TypeScript, and Rust projections.
- Deploy application and server artifacts bound to the resulting schema fingerprint.
Compatibility authoring paths¶
- Python model-driven schema management remains available in the 2.0 compatibility line.
- Existing TypeQL files can generate application models.
- Direct TOML schema authoring is deprecated for removal in 2.1; translate it to Split-YAML before upgrading.
Generated files are projections, not alternate schema authorities. Regenerate them after an accepted schema change; do not hand-edit them.
API boundary projections¶
API DTO generation creates Pydantic request and response shapes from the model contract. Generated TypeScript and Rust packages retain language specific types while sharing canonical field, role, and schema identities.