Skip to content
PtahPtah

Define and understand schemas

Ptah reads SQL, YAML, HCL, DBML, Go annotations, ORM loaders, and live databases into one schema model. Choose the format your project already owns; the validation, comparison, rendering, and export stages use the same model after the source is read.

Use one source when possible. Use a composite desired schema only when separate sources own separate parts of the database and their object names do not conflict.

A schema source describes what should exist. It does not decide whether the difference reaches the database as versioned migrations or a direct schema change.

Use the format references for exact accepted fields and directives: Go annotations, HCL, and YAML.