Tool which generates a typescript client for SurrealDB and zod schema of a given database
```haskell DEFINE TABLE foo SCHEMAFULL; DEFINE FIELD bar ON TABLE foo TYPE number ASSERT $value >= 0 AND $value <= 1 COMMENT 'bip blop'; ``` The schema above generates the following broken SchemaGen (`./models/my-project/_generated/foo/fooSchemaGen.ts`): ```ts (...) export const fooInputSchemaGen = z.object({ // ',' expected.ts(1005) // Cannot find name 'COMMENT'. Did you mean 'Comment'?ts(2552) bar: z.number().min(0).max(1 COMMENT 'bip blop' PERMISSIONS FULL) }); export const fooOutputSchemaGen = z.object({ bar: z.number().min(0).max(1 COMMENT 'bip blop' PERMISSIONS FULL) }); ```
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by zvictor and has received 5 comments.