**Demo:** https://bugs.rocicorp.dev/
**Demo:** https://ztunes.rocicorp.dev/
**Stack:** Expo/Hono/Drizzle
**Stack:** Vite/Hono/React
**Stack:** Vite/Hono/SolidJS| Postgres Type | Type to put in `schema.ts` | Resulting JS/TS Type |
|---|---|---|
| All numeric types |
number
|
number
|
char, varchar, text,{' '}
uuid
|
string
|
string
|
bool
|
boolean
|
boolean
|
date, timestamp, timestampz
|
number
|
number
|
json, jsonb
|
json
|
JSONValue
|
enum
|
enumeration
|
string
|
T[]{' '}
where T is a supported Postgres type (but please see ⚠️
below)
|
json<U[]>{' '}
where U is the schema.ts type for T
|
V[]{' '}
where V is the JS/TS type for T
|