THE SURREAL-ZOD BLOG
Notes from building schema-as-code.
Releases, deep dives and design decisions behind Schemic.
Incremental migrations: ALTER, not rip-and-replace
The CLI now diffs into clause-level ALTER TABLE and ALTER FIELD instead of blanket OVERWRITE. Migrations touch only what changed, preserve unmentioned clauses, and every up/down round-trips on real SurrealDB.
Read the post → 2026-06-09 ENGINEERING It is just Zod: how s.* mirrors z. one-to-one The same constructors and chaining, infer/input/output and coerce — so adoption cost is essentially zero. 6 min read 2026-06-07 DEEP DIVE Bring your own types with .$surreal() codecs Store any class — money, big numbers, branded ids — by teaching Schemic a typed encode/decode pair. 9 min read 2026-06-02 RELEASE sc check: proving your migrations build your schema Replay every migration from zero on a throwaway database and confirm it reproduces your declared schema. 5 min read