@quickback-dev/cli 0.67.2 → 0.67.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.67.2";
13
+ const CLI_VERSION = "0.67.4";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"action-harvest.d.ts","sourceRoot":"","sources":["../../src/lib/action-harvest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAmHH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAmO1D,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,mBAAmB,EAAE,EAC/B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,MAAM,EAAE,CAUV;AASD,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,KAAK,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC/B,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,qEAAqE;IACrE,aAAa,EAAE,MAAM,CAAC,MA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,EAAE,CAUV;AASD,MAAM,WAAW,uBAAuB;IACtC,wEAAwE;IACxE,GAAG,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,KAAK,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC/B,yEAAyE;IACzE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,qEAAqE;IACrE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,WAAW,EAAE,uBAAuB,EAAE,CAAC;CACxC;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAEnC;AAED;;;;GAIG;AACH,wBAAsB,iCAAiC,CAAC,IAAI,EAAE;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,wFAAwF;IACxF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2E/B"}
@@ -63,6 +63,60 @@ const NODE_BUILTINS = new Set(builtinModules.map((name) => name.replace(/^node:/
63
63
  // so we proxy-stub these files. A real Zod-schema lib won't contain these
64
64
  // markers, so it resolves and bundles normally.
65
65
  const TABLE_FILE_MARKERS = /\b(feature|q\.table|sqliteTable|pgTable|mysqlTable)\s*\(/;
66
+ // A q-DSL table module can never bundle for real — `q.table(...)` can't run
67
+ // under the @quickback/* stub and its table export is generated — so it is
68
+ // always stubbed, even when typed `q.json(z.object(...))` columns put Zod in
69
+ // it (#557). A Drizzle table module evaluates fine, so one that uses Zod keeps
70
+ // bundling for real, in case an action reads a schema it exports.
71
+ const DRIZZLE_TABLE_MARKERS = /\b(sqliteTable|pgTable|mysqlTable)\s*\(/;
72
+ function isStubbableTableSource(raw) {
73
+ // Markers are matched on code only: a comment like "the billing feature
74
+ // (see docs)" matched `feature (` and stubbed an ordinary action (#577).
75
+ const src = stripComments(raw);
76
+ if (!TABLE_FILE_MARKERS.test(src))
77
+ return false;
78
+ return !(DRIZZLE_TABLE_MARKERS.test(src) && (src.includes('z.object') || src.includes('z.discriminatedUnion')));
79
+ }
80
+ /**
81
+ * Source with `//` and `/* *\/` comments blanked out. String and template
82
+ * literals are skipped so a `//` inside a URL survives. Regex literals are not
83
+ * recognised; at worst that blanks the rest of a line, which can only hide a
84
+ * marker, never invent one.
85
+ */
86
+ function stripComments(src) {
87
+ let out = '';
88
+ let i = 0;
89
+ while (i < src.length) {
90
+ const ch = src[i];
91
+ const next = src[i + 1];
92
+ if (ch === '/' && next === '/') {
93
+ while (i < src.length && src[i] !== '\n')
94
+ i++;
95
+ continue;
96
+ }
97
+ if (ch === '/' && next === '*') {
98
+ const end = src.indexOf('*/', i + 2);
99
+ i = end === -1 ? src.length : end + 2;
100
+ out += ' ';
101
+ continue;
102
+ }
103
+ if (ch === '"' || ch === "'" || ch === '`') {
104
+ const start = i++;
105
+ while (i < src.length && src[i] !== ch) {
106
+ if (src[i] === '\\')
107
+ i++;
108
+ else if (ch !== '`' && src[i] === '\n')
109
+ break;
110
+ i++;
111
+ }
112
+ out += src.slice(start, ++i);
113
+ continue;
114
+ }
115
+ out += ch;
116
+ i++;
117
+ }
118
+ return out;
119
+ }
66
120
  // Realtime DEFINITION modules (defineRealtime / defineRealtimeDelivery /
67
121
  // defineRealtimeRecipients). Actions import their exported consts purely as
68
122
  // SYMBOL REFERENCES for `invalidates:` (resolved by name at compile time);
@@ -219,10 +273,10 @@ export function defineBundle(cfg) {
219
273
  for (const cand of candidates) {
220
274
  try {
221
275
  const src = await fs.readFile(cand, 'utf-8');
222
- if (REALTIME_DEF_MARKERS.test(src)) {
276
+ if (REALTIME_DEF_MARKERS.test(stripComments(src))) {
223
277
  return tableStub(cand, opts.featureIndex);
224
278
  }
225
- if (TABLE_FILE_MARKERS.test(src) && !src.includes('z.object') && !src.includes('z.discriminatedUnion')) {
279
+ if (isStubbableTableSource(src)) {
226
280
  return tableStub(cand, opts.featureIndex);
227
281
  }
228
282
  return undefined; // real module — let esbuild bundle it
@@ -240,10 +294,10 @@ export function defineBundle(cfg) {
240
294
  // feature-local imports (`../lib/x`, seg0 not a feature) are untouched.
241
295
  const indexed = await resolveViaFeatureIndex(args.path, args.resolveDir, opts.featureIndex);
242
296
  if (indexed) {
243
- if (REALTIME_DEF_MARKERS.test(indexed.src)) {
297
+ if (REALTIME_DEF_MARKERS.test(stripComments(indexed.src))) {
244
298
  return tableStub(indexed.path, opts.featureIndex);
245
299
  }
246
- if (TABLE_FILE_MARKERS.test(indexed.src) && !indexed.src.includes('z.object') && !indexed.src.includes('z.discriminatedUnion')) {
300
+ if (isStubbableTableSource(indexed.src)) {
247
301
  return tableStub(indexed.path, opts.featureIndex);
248
302
  }
249
303
  return { path: indexed.path };
@@ -268,10 +322,10 @@ export function defineBundle(cfg) {
268
322
  for (const cand of fileCandidates(join(base, rel))) {
269
323
  try {
270
324
  const src = await fs.readFile(cand, 'utf-8');
271
- if (REALTIME_DEF_MARKERS.test(src)) {
325
+ if (REALTIME_DEF_MARKERS.test(stripComments(src))) {
272
326
  return tableStub(cand, opts.featureIndex);
273
327
  }
274
- if (TABLE_FILE_MARKERS.test(src) && !src.includes('z.object') && !src.includes('z.discriminatedUnion')) {
328
+ if (isStubbableTableSource(src)) {
275
329
  return tableStub(cand, opts.featureIndex);
276
330
  }
277
331
  return { path: cand };
@@ -458,6 +512,8 @@ async function bundleActionSchema(absPath, outfile, opts) {
458
512
  `}\n` +
459
513
  `const __input = __qbAction.input;\n` +
460
514
  `if (!__input) throw new Error('Action default export has no input schema');\n` +
515
+ // The inert table-module proxy is a function; a Zod schema never is.
516
+ `if (typeof __input === 'function') throw new Error('Action input resolved to a stubbed table-module export — define shared Zod input schemas in a lib/ file, not a table file');\n` +
461
517
  `if (typeof z.toJSONSchema !== 'function') {\n` +
462
518
  ` throw new Error('Action schema harvest requires Zod 4 with z.toJSONSchema');\n` +
463
519
  `}\n` +
@@ -1 +1 @@
1
- {"version":3,"file":"action-harvest.js","sourceRoot":"","sources":["../../src/lib/action-harvest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC9E,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,KAAK,EAAe,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,GAAG,iBAAiB,CAAC;AACrC,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AACvD,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AACvD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAExF,8EAA8E;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AC,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,CAAC;IAC5E,OAAO,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3E,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,WAAmB;IAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;IACrD,OAAO,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AAC/D,CAAC"}
@@ -163,7 +163,10 @@ bypass it.
163
163
  short-lived event session. It requires both of:
164
164
 
165
165
  - the Cloudflare runtime
166
- - Neon with `connectionMode: "hyperdrive"`
166
+ - Postgres over Cloudflare Hyperdrive — [Neon](/platform/database/neon) with
167
+ `connectionMode: "hyperdrive"`, or
168
+ [PlanetScale Postgres](/platform/database/planetscale-postgres) (Hyperdrive
169
+ is its only transport)
167
170
 
168
171
  Each principal type owns an exact Authorization scheme. `Bearer` is reserved
169
172
  for Quickback account authentication, including case variants, and two
@@ -168,7 +168,8 @@ async execute({ db, ctx, input }) {
168
168
 
169
169
  ### Delegated principals and `databaseAccess`
170
170
 
171
- On a Cloudflare + Neon Hyperdrive project, an action can admit a
171
+ On a Cloudflare project with Postgres over Hyperdrive (Neon `connectionMode:
172
+ "hyperdrive"` or PlanetScale Postgres), an action can admit a
172
173
  configured delegated principal with `access.principals`:
173
174
 
174
175
  ```typescript
@@ -222,7 +223,7 @@ organization, and no membership roles, so the table's ordinary firewall
222
223
  predicate — `organizationId = ctx.activeOrgId` — can never match for it. The
223
224
  lane is the row rule that CAN: the principal's own verified claims.
224
225
 
225
- {/* doc-compile: skip — provider prerequisite: `resource.databaseAccess` compiles only on Cloudflare + Neon `connectionMode: "hyperdrive"` (RLS + transaction-local claims), and the gate's harness is D1. The file is otherwise whole and compiles on a Neon project. */}
226
+ {/* doc-compile: skip — provider prerequisite: `resource.databaseAccess` compiles only on Cloudflare + Postgres over Hyperdrive (Neon `connectionMode: "hyperdrive"` or PlanetScale Postgres; RLS + transaction-local claims), and the gate's harness is D1. The file is otherwise whole and compiles on either. */}
226
227
  ```typescript
227
228
  // features/attendance/attendanceEvidence.ts
228
229
  import { q, defineTable } from '@quickback/compiler';
@@ -325,7 +326,8 @@ so a field such as `eventId: text("event-id")` is safe. Unknown fields fail the
325
326
  compile. Application-only values — `userRole`, functions, request/body fields —
326
327
  stay at the action access layer; the compiler refuses them rather than
327
328
  pretending PostgreSQL can evaluate them. The feature is rejected outside
328
- Cloudflare + Neon Hyperdrive because no other target can guarantee
329
+ Cloudflare + Postgres over Hyperdrive (Neon or PlanetScale Postgres) because no
330
+ other target can guarantee
329
331
  request-scoped Postgres claims.
330
332
 
331
333
  > **Upgrading.** The four per-operation `<table>_database_<op>` policies are
@@ -41,6 +41,8 @@ feature("name", {
41
41
  });
42
42
  ```
43
43
 
44
+ That is the complete key set. Any other top-level key is a compile error naming the key and the list above, so a misspelling or a key from another tool can't ride through as a silent no-op.
45
+
44
46
  | You want | Key | Page |
45
47
  |---|---|---|
46
48
  | Tenant isolation, role gates, field and value control | `firewall`, `read`/`create`/`update`/`delete`, `guards`, `masking` | [Security](/define/security) |
@@ -161,7 +161,16 @@ The Drizzle column is the Postgres form; on SQLite/D1 the compiler lowers it. Th
161
161
 
162
162
  In request bodies a column that is not `.required()` is `.optional().nullable()` — omit it to leave it untouched, send `null` to clear it. `""` is not a blank: it is validated like any other value. `.required()` columns never accept `null`.
163
163
 
164
- `q.text()` and `q.url()` accept either a SQL-name string or an options object — `q.text({ sqlName: 'org_id', maxLength: 80 })`. `maxLength` adds `z.string().max(n)` at the validation edge; the SQL column stays `text` (D1 ignores `VARCHAR(n)` length anyway).
164
+ `q.text()` accepts either a SQL-name string or an options object — `q.text({ sqlName: 'org_id', maxLength: 80 })`. The options are the field-level rules:
165
+
166
+ | Option | Validation edge | Notes |
167
+ |--------|-----------------|-------|
168
+ | `minLength: n` | `z.string().min(n)` | `""` then fails like any other short value |
169
+ | `maxLength: n` | `z.string().max(n)` | The SQL column stays `text` (D1 ignores `VARCHAR(n)` length anyway) |
170
+ | `pattern: /re/` | `z.string().regex(/re/)` | Must be a regex literal, not a string or variable, so the compiler can emit it |
171
+ | `email: true` | `z.string().email()` | |
172
+
173
+ Every rule is enforced on the generated create, update, and batch routes, described in OpenAPI, and read by the CMS form from the [schema registry](/ui/admin/schema-format). A misspelled option (`maxlength`) is a compile error, not a silent no-op. `q.url()` takes `sqlName` and `maxLength` only.
165
174
 
166
175
  `q.url()` is `q.text()` plus an absolute-`http(s)`-URL check at the validation edge, so `javascript:` / `data:` / `ftp:` URIs and free-form strings are rejected before they ever land in storage or get rendered in the CMS.
167
176
 
@@ -526,7 +535,7 @@ Default to `feature()`. Drop to Drizzle only when:
526
535
 
527
536
  Features in the same project may mix freely — Quickback dispatches per feature — so one interop table doesn't force the rest of the project off `feature()`.
528
537
 
529
- One dialect rule: interop files **without** a `defineTable(...)` default export (internal child tables) are not dialect-translated — author them in the target database's dialect. On Postgres providers (`neon`, `planetscale-postgres`), a `sqliteTable` interop source without `defineTable` is a compile-time error; write it with `pgTable` from `drizzle-orm/pg-core` instead. Sources **with** `defineTable(...)` keep compiling across dialects automatically.
538
+ One dialect rule: interop files **without** a `defineTable(...)` default export (internal child tables) are not dialect-translated — author them in the target database's dialect. On Postgres providers (`neon`, `planetscale-postgres`), a `sqliteTable` interop source without `defineTable` is a compile-time error; write it with `pgTable` from `drizzle-orm/pg-core` instead. Sources **with** `defineTable(...)` keep compiling across dialects automatically. On Postgres, managed audit timestamps a `sqliteTable` source declares in the SQLite shape (`createdAt` / `modifiedAt` / `deletedAt` as `text`) are emitted as `timestamptz`, the same as every other Postgres table; API responses still carry the same ISO-8601 string.
530
539
 
531
540
  ### Drizzle Column Types
532
541
 
@@ -706,7 +715,7 @@ Opt out of audit injection entirely with `compiler.features.auditFields: false`
706
715
 
707
716
  The scoped `db` injected into actions stamps these four columns for you. A handle built directly from `createDb()` does not — that's the documented escape hatch for system writes, sessionless principals, and broad reads the scoped wrapper over-narrows.
708
717
 
709
- Those writes still land in audit-managed tables. A Drizzle insert that omits `createdAt` / `modifiedAt` gets the insert time (Postgres `DEFAULT now()`; on SQLite the column's `$defaultFn`), but nothing fills `createdBy` / `modifiedBy` — they stay `NULL`. On SQLite the managed timestamps also carry a DDL default of the unix epoch (so `ALTER TABLE ADD COLUMN` works on populated tables), so **raw SQL** that omits them does not fail on `NOT NULL` — it silently persists `1970-01-01T00:00:00.000Z`, which reads as a real timestamp everywhere downstream.
718
+ Those writes still land in audit-managed tables. A Drizzle insert that omits `createdAt` / `modifiedAt` gets the insert time (Postgres `DEFAULT now()`; on SQLite the column's `$defaultFn`), but on SQLite nothing fills `createdBy` / `modifiedBy` — they stay `NULL`. (On Postgres the database's audit triggers fill them — see [How auto-injection works](#how-auto-injection-works-two-layers).) On SQLite the managed timestamps also carry a DDL default of the unix epoch (so `ALTER TABLE ADD COLUMN` works on populated tables), so **raw SQL** that omits them does not fail on `NOT NULL` — it silently persists `1970-01-01T00:00:00.000Z`, which reads as a real timestamp everywhere downstream.
710
719
 
711
720
  Spread the stamp instead of hand-writing four columns at each call site:
712
721
 
@@ -756,6 +765,14 @@ The scoped `db` an action receives types every managed key as `?: never` on `.in
756
765
 
757
766
  The runtime layer **hard-stamps** every audit field on every write, so the audit log can never be forged by a crafted request body or by a client echoing a row back into a PATCH.
758
767
 
768
+ On Postgres the RLS migration adds a database-side backstop: `BEFORE INSERT` / `BEFORE UPDATE` triggers on every feature table (`public.set_audit_fields_on_insert()` / `_on_update()`). They set `created_at` / `modified_at` to the database's `now()` and apply the same actor rule as the wrapper — the actor column always names whoever did the write:
769
+
770
+ - a verified caller (`auth.user_id()`) always wins, so no request can write someone else's id;
771
+ - with no verified caller — a `scope:` principal, a delegated principal, the service lane, a `system:` actor — the actor the Worker already stamped is kept;
772
+ - only a write that carries no actor at all (raw SQL) gets `system:<database role>`.
773
+
774
+ `created_at` / `created_by` never change on update.
775
+
759
776
  Because the value would be discarded anyway, the generated `db` handle refuses it at the type level: on the scoped `db`, `.insert().values()` types `createdAt` / `modifiedAt` / `createdBy` / `modifiedBy` / `deletedAt` / `deletedBy` as `?: never`, and `.update().set()` types the audit quartet plus `deletedBy` the same way. Supplying one is a **compile error** — not a silent discard.
760
777
 
761
778
  ```ts
@@ -771,7 +788,7 @@ Drop the keys and let the wrapper write them from `ctx.userId` and the actual wr
771
788
 
772
789
  One deliberate exception: `.set({ deletedAt: ... })` **is** allowed on update — that assignment is the soft-delete signal, and the stored value is normalized to the write moment and the verified caller. The raw `unsafeDb` handle an `unsafe:` action receives is unwrapped Drizzle and carries none of these type fences.
773
790
 
774
- What the caller is responsible for: the domain fields. (`id` auto-fills via the column's `$defaultFn` — `q.id()` and injected ids both carry one.)
791
+ What the caller is responsible for: the domain fields. (`id` auto-fills via the column's `$defaultFn` — `q.id()` and injected ids both carry one, and the typed `db` treats `id` as optional on insert for every id strategy except `serial` and `false`.)
775
792
 
776
793
  What the caller does *not* need to set: `id`, the scope column, or any of the audit fields, ever.
777
794
 
@@ -27,7 +27,33 @@ If validation fails, the API returns a `400 Bad Request` with details about whic
27
27
 
28
28
  See [Actions](/define/actions) for the full action definition reference.
29
29
 
30
- > **Planned: Field-Level Validation**
30
+ ## Column Constraints
31
+
32
+ Field-level rules live on the column, not in a separate block. `q.text({ minLength, maxLength, pattern, email })`, `q.enum([...])`, `q.url({ maxLength })` and the numeric column types carry their constraints into the Zod schema of every generated create, update, and batch route, into the OpenAPI document, and into the CMS form. See [Schema](/define/schema#column-types) for the full list.
33
+
34
+ A raw Drizzle table (`sqliteTable` / `pgTable` wrapped in `defineTable`) has no column-level rules. Validate those in a [`triggers.beforeInsert` / `beforeUpdate`](/define/triggers) handler that throws, or convert the table to `q.table()`.
35
+
36
+ ```typescript
37
+ // features/agendaGroups/agendaGroups.ts
38
+ import { feature, q } from '@quickback/compiler';
39
+
40
+ export default feature('agendaGroups', {
41
+ columns: {
42
+ id: q.id(),
43
+ name: q.text({ maxLength: 200 }).required(),
44
+ selectionRule: q.enum(['one', 'multi']).default('one').required(),
45
+ organizationId: q.scope('organization'),
46
+ ...q.audit(),
47
+ ...q.softDelete(),
48
+ },
49
+ read: { access: { roles: ['member'] } },
50
+ create: { access: { roles: ['member'] } },
51
+ update: { access: { roles: ['member'] } },
52
+ delete: { access: { roles: ['member'] }, mode: 'soft' },
53
+ });
54
+ ```
55
+
56
+ > **There is no `validation:` key**
31
57
  >
32
- > Field-level validation rules in `defineTable()` (e.g., `minLength`, `maxLength`, `enum`) are planned for a future release. Today, use Zod schemas in actions for input validation, and rely on your Drizzle schema constraints (`.notNull()`, column types) for database-level enforcement.
58
+ > A top-level `validation: { field: { maxLength, enum } }` block on `defineTable()` is a compile error, as is any other key the compiler does not understand. Earlier compilers let unknown keys through silently, so a `validation:` block looked like it limited a field while the generated routes accepted anything. Move each rule onto its column.
33
59
 
@@ -97,4 +97,4 @@ When the admin plugin bans a user, every API key they own stops working: the API
97
97
 
98
98
  ## Rate limit
99
99
 
100
- Better Auth rate limits each key using the auth config's `rateLimit.window` (seconds) and `rateLimit.max` — 100 requests per 60 seconds by default. The limit is on unless that block sets `enabled: false`. Over the limit the API answers `429 AUTH_RATE_LIMITED`. The values are stamped on each key when it is created, so a change applies to new keys only.
100
+ Better Auth rate limits each key using the auth config's `rateLimit.window` (seconds) and `rateLimit.max` — 100 requests per 60 seconds by default. The limit is always on. It counts per key, so `rateLimit.enabled: false` (which turns off the per-IP limiter) doesn't affect it. Over the limit the API answers `429 AUTH_RATE_LIMITED`. The values are stamped on each key when it is created, so a change applies to new keys only.
@@ -183,6 +183,19 @@ long-lived process — the default is `"memory"`.
183
183
  | `"database"` | Auth database (`rateLimit` table) | Cloudflare Workers (default there) |
184
184
  | `"memory"` | Process memory | Single long-lived process (bun / node default) |
185
185
 
186
+ The table exists whenever `storage` is `"database"`, even with `enabled: false`,
187
+ so switching the limiter off or back on needs no migration.
188
+
189
+ ### Client IP
190
+
191
+ Better Auth reads the client IP from `x-forwarded-for` by default, which a
192
+ Worker doesn't receive. Without an IP every caller shares one bucket per path,
193
+ and a single client could use up a sign-in limit for everyone. On Cloudflare
194
+ the compiler therefore emits
195
+ `advanced.ipAddress.ipAddressHeaders: ['cf-connecting-ip']`. Cloudflare sets
196
+ that header at the edge, and clients can't override it. Set
197
+ `advanced.ipAddress.ipAddressHeaders` yourself to use different headers.
198
+
186
199
  ### Built-in rules for every credential door
187
200
 
188
201
  The compiler always emits a per-route rule for **every** credential endpoint
@@ -220,16 +233,16 @@ Set an edge rate-limit binding as well for defence in depth
220
233
 
221
234
  ### Disabling Rate Limiting
222
235
 
223
- Not recommended, but you can disable for testing:
224
-
225
236
  ```ts
226
- rateLimit: {
227
- enabled: process.env.NODE_ENV === 'production',
228
- window: 60,
229
- max: 1000, // Higher limit for development
230
- }
237
+ rateLimit: { enabled: false }
231
238
  ```
232
239
 
240
+ The compiler emits `enabled: false` explicitly. Better Auth would otherwise
241
+ fall back to `enabled: isProduction`. Disabling makes sense when many real
242
+ users share one IP, such as everyone on an event venue's Wi-Fi. It turns off
243
+ only the per-IP limiter. The [per-key API key limit](/platform/auth/api-keys)
244
+ stays on.
245
+
233
246
  ---
234
247
 
235
248
  ## Bearer Tokens and Cookie Precedence
@@ -709,7 +709,10 @@ touched. See [the default index set](#the-default-index-set).
709
709
 
710
710
  ### Delegated principal RLS
711
711
 
712
- Delegated principals require Cloudflare + Neon Hyperdrive. Their proof hook
712
+ Delegated principals require Cloudflare + Postgres over Hyperdrive: Neon with
713
+ `connectionMode: "hyperdrive"`, or
714
+ [PlanetScale Postgres](/platform/database/planetscale-postgres), which emits the
715
+ same lookup policies and lanes. Their proof hook
713
716
  returns only a digest and receives no database handle. Quickback then runs one
714
717
  lookup under an internal lookup-only principal whose RLS policy admits only the
715
718
  configured table row matching `credentialDigest`, plus any configured active
@@ -1435,7 +1438,11 @@ source. A child table with no `crud` config soft-deletes by default, so
1435
1438
 
1436
1439
  Tables **with** `defineTable(...)` are unaffected — existing `sqliteTable`
1437
1440
  sources with a resource config still compile to the Postgres dialect
1438
- automatically.
1441
+ automatically. Managed audit timestamps declared in the SQLite shape
1442
+ (`createdAt` / `modifiedAt` / `deletedAt` as `text`) are emitted as
1443
+ `timestamptz`, like every other Postgres table — the audit wrapper and the RLS
1444
+ audit triggers both stamp timestamps, not strings. API responses carry the same
1445
+ ISO-8601 string as on D1.
1439
1446
 
1440
1447
  ## When to choose Neon vs D1
1441
1448
 
@@ -197,6 +197,7 @@ never silently-broken output:
197
197
  | Managed file storage (`managed: true`) | **supported** — metadata lives in a `files` schema of the same database; the file-serving Worker binds the same Hyperdrive config |
198
198
  | Better Auth `subscriptions` plugin | supported — `auth.subscriptions` in the same journal, service-role only ([Subscriptions](/platform/auth/plugins/subscriptions#where-the-table-lives)) |
199
199
  | Generated SQL triggers (`sql:`) | supported — PL/pgSQL bodies, `SECURITY INVOKER` (see [Triggers](/define/triggers)) |
200
+ | Delegated principals (`auth.principals`, `resource.databaseAccess`) | supported — the same lookup policy, `<table>_principal_scope` / `<table>_principal_fence` lanes and middleware as Neon Hyperdrive ([Delegated principal RLS](/platform/database/neon#delegated-principal-rls)) |
200
201
  | `webhooksDatabaseId` / `webhooksDatabaseName` | rejected — D1-only keys; webhook tables live in the `webhooks` schema of the same database |
201
202
  | `connectionMode` of `'http'` or `'websocket'` | rejected — no such driver for this provider |
202
203
 
@@ -430,9 +430,11 @@ interface ValidationRule {
430
430
  | `enum` | `q.enum([...])`, or `text(..., { enum: [...] })` in raw Drizzle — the CMS renders a select |
431
431
  | `url` | `q.url()` — the CMS renders a `url` input; the API accepts only absolute `http(s)` URLs (so not `""`, `javascript:` or `data:`) |
432
432
  | `maxLength` | `q.text({ maxLength })` / `q.url({ maxLength })` |
433
+ | `minLength` | `q.text({ minLength })` |
434
+ | `email` | `q.text({ email: true })` — the CMS renders an `email` input |
433
435
  | `integer` | `q.int()`, `q.bigint()`, `q.smallint()` — whole numbers only |
434
436
  | `min` / `max` | `q.bigint()` (±2^53−1, the JSON-safe range) and `q.smallint()` (−32768…32767), inclusive |
435
- | `pattern` | `q.decimal({ precision, scale })` — the regex source the decimal string must match |
437
+ | `pattern` | `q.text({ pattern: /re/ })` (regex source only; flags are not carried) and `q.decimal({ precision, scale })` — the regex source the value must match |
436
438
  | `minLength` / `email` | Only when the enforced Zod carries `.min(n)` / `.email()`; no q column kind emits them today |
437
439
 
438
440
  Columns with no constraints have no entry. Optional fields left blank in the CMS form are omitted from the request body rather than sent as `""` — the API accepts an optional field being absent, not empty.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickback-dev/cli",
3
- "version": "0.67.2",
3
+ "version": "0.67.4",
4
4
  "description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
5
5
  "author": "Kardoe Incorporated <paul@kardoe.com>",
6
6
  "license": "MIT",
@@ -163,7 +163,10 @@ bypass it.
163
163
  short-lived event session. It requires both of:
164
164
 
165
165
  - the Cloudflare runtime
166
- - Neon with `connectionMode: "hyperdrive"`
166
+ - Postgres over Cloudflare Hyperdrive — [Neon](/platform/database/neon) with
167
+ `connectionMode: "hyperdrive"`, or
168
+ [PlanetScale Postgres](/platform/database/planetscale-postgres) (Hyperdrive
169
+ is its only transport)
167
170
 
168
171
  Each principal type owns an exact Authorization scheme. `Bearer` is reserved
169
172
  for Quickback account authentication, including case variants, and two
@@ -168,7 +168,8 @@ async execute({ db, ctx, input }) {
168
168
 
169
169
  ### Delegated principals and `databaseAccess`
170
170
 
171
- On a Cloudflare + Neon Hyperdrive project, an action can admit a
171
+ On a Cloudflare project with Postgres over Hyperdrive (Neon `connectionMode:
172
+ "hyperdrive"` or PlanetScale Postgres), an action can admit a
172
173
  configured delegated principal with `access.principals`:
173
174
 
174
175
  ```typescript
@@ -222,7 +223,7 @@ organization, and no membership roles, so the table's ordinary firewall
222
223
  predicate — `organizationId = ctx.activeOrgId` — can never match for it. The
223
224
  lane is the row rule that CAN: the principal's own verified claims.
224
225
 
225
- {/* doc-compile: skip — provider prerequisite: `resource.databaseAccess` compiles only on Cloudflare + Neon `connectionMode: "hyperdrive"` (RLS + transaction-local claims), and the gate's harness is D1. The file is otherwise whole and compiles on a Neon project. */}
226
+ {/* doc-compile: skip — provider prerequisite: `resource.databaseAccess` compiles only on Cloudflare + Postgres over Hyperdrive (Neon `connectionMode: "hyperdrive"` or PlanetScale Postgres; RLS + transaction-local claims), and the gate's harness is D1. The file is otherwise whole and compiles on either. */}
226
227
  ```typescript
227
228
  // features/attendance/attendanceEvidence.ts
228
229
  import { q, defineTable } from '@quickback/compiler';
@@ -325,7 +326,8 @@ so a field such as `eventId: text("event-id")` is safe. Unknown fields fail the
325
326
  compile. Application-only values — `userRole`, functions, request/body fields —
326
327
  stay at the action access layer; the compiler refuses them rather than
327
328
  pretending PostgreSQL can evaluate them. The feature is rejected outside
328
- Cloudflare + Neon Hyperdrive because no other target can guarantee
329
+ Cloudflare + Postgres over Hyperdrive (Neon or PlanetScale Postgres) because no
330
+ other target can guarantee
329
331
  request-scoped Postgres claims.
330
332
 
331
333
  > **Upgrading.** The four per-operation `<table>_database_<op>` policies are
@@ -41,6 +41,8 @@ feature("name", {
41
41
  });
42
42
  ```
43
43
 
44
+ That is the complete key set. Any other top-level key is a compile error naming the key and the list above, so a misspelling or a key from another tool can't ride through as a silent no-op.
45
+
44
46
  | You want | Key | Page |
45
47
  |---|---|---|
46
48
  | Tenant isolation, role gates, field and value control | `firewall`, `read`/`create`/`update`/`delete`, `guards`, `masking` | [Security](/define/security) |
@@ -161,7 +161,16 @@ The Drizzle column is the Postgres form; on SQLite/D1 the compiler lowers it. Th
161
161
 
162
162
  In request bodies a column that is not `.required()` is `.optional().nullable()` — omit it to leave it untouched, send `null` to clear it. `""` is not a blank: it is validated like any other value. `.required()` columns never accept `null`.
163
163
 
164
- `q.text()` and `q.url()` accept either a SQL-name string or an options object — `q.text({ sqlName: 'org_id', maxLength: 80 })`. `maxLength` adds `z.string().max(n)` at the validation edge; the SQL column stays `text` (D1 ignores `VARCHAR(n)` length anyway).
164
+ `q.text()` accepts either a SQL-name string or an options object — `q.text({ sqlName: 'org_id', maxLength: 80 })`. The options are the field-level rules:
165
+
166
+ | Option | Validation edge | Notes |
167
+ |--------|-----------------|-------|
168
+ | `minLength: n` | `z.string().min(n)` | `""` then fails like any other short value |
169
+ | `maxLength: n` | `z.string().max(n)` | The SQL column stays `text` (D1 ignores `VARCHAR(n)` length anyway) |
170
+ | `pattern: /re/` | `z.string().regex(/re/)` | Must be a regex literal, not a string or variable, so the compiler can emit it |
171
+ | `email: true` | `z.string().email()` | |
172
+
173
+ Every rule is enforced on the generated create, update, and batch routes, described in OpenAPI, and read by the CMS form from the [schema registry](/ui/admin/schema-format). A misspelled option (`maxlength`) is a compile error, not a silent no-op. `q.url()` takes `sqlName` and `maxLength` only.
165
174
 
166
175
  `q.url()` is `q.text()` plus an absolute-`http(s)`-URL check at the validation edge, so `javascript:` / `data:` / `ftp:` URIs and free-form strings are rejected before they ever land in storage or get rendered in the CMS.
167
176
 
@@ -526,7 +535,7 @@ Default to `feature()`. Drop to Drizzle only when:
526
535
 
527
536
  Features in the same project may mix freely — Quickback dispatches per feature — so one interop table doesn't force the rest of the project off `feature()`.
528
537
 
529
- One dialect rule: interop files **without** a `defineTable(...)` default export (internal child tables) are not dialect-translated — author them in the target database's dialect. On Postgres providers (`neon`, `planetscale-postgres`), a `sqliteTable` interop source without `defineTable` is a compile-time error; write it with `pgTable` from `drizzle-orm/pg-core` instead. Sources **with** `defineTable(...)` keep compiling across dialects automatically.
538
+ One dialect rule: interop files **without** a `defineTable(...)` default export (internal child tables) are not dialect-translated — author them in the target database's dialect. On Postgres providers (`neon`, `planetscale-postgres`), a `sqliteTable` interop source without `defineTable` is a compile-time error; write it with `pgTable` from `drizzle-orm/pg-core` instead. Sources **with** `defineTable(...)` keep compiling across dialects automatically. On Postgres, managed audit timestamps a `sqliteTable` source declares in the SQLite shape (`createdAt` / `modifiedAt` / `deletedAt` as `text`) are emitted as `timestamptz`, the same as every other Postgres table; API responses still carry the same ISO-8601 string.
530
539
 
531
540
  ### Drizzle Column Types
532
541
 
@@ -706,7 +715,7 @@ Opt out of audit injection entirely with `compiler.features.auditFields: false`
706
715
 
707
716
  The scoped `db` injected into actions stamps these four columns for you. A handle built directly from `createDb()` does not — that's the documented escape hatch for system writes, sessionless principals, and broad reads the scoped wrapper over-narrows.
708
717
 
709
- Those writes still land in audit-managed tables. A Drizzle insert that omits `createdAt` / `modifiedAt` gets the insert time (Postgres `DEFAULT now()`; on SQLite the column's `$defaultFn`), but nothing fills `createdBy` / `modifiedBy` — they stay `NULL`. On SQLite the managed timestamps also carry a DDL default of the unix epoch (so `ALTER TABLE ADD COLUMN` works on populated tables), so **raw SQL** that omits them does not fail on `NOT NULL` — it silently persists `1970-01-01T00:00:00.000Z`, which reads as a real timestamp everywhere downstream.
718
+ Those writes still land in audit-managed tables. A Drizzle insert that omits `createdAt` / `modifiedAt` gets the insert time (Postgres `DEFAULT now()`; on SQLite the column's `$defaultFn`), but on SQLite nothing fills `createdBy` / `modifiedBy` — they stay `NULL`. (On Postgres the database's audit triggers fill them — see [How auto-injection works](#how-auto-injection-works-two-layers).) On SQLite the managed timestamps also carry a DDL default of the unix epoch (so `ALTER TABLE ADD COLUMN` works on populated tables), so **raw SQL** that omits them does not fail on `NOT NULL` — it silently persists `1970-01-01T00:00:00.000Z`, which reads as a real timestamp everywhere downstream.
710
719
 
711
720
  Spread the stamp instead of hand-writing four columns at each call site:
712
721
 
@@ -756,6 +765,14 @@ The scoped `db` an action receives types every managed key as `?: never` on `.in
756
765
 
757
766
  The runtime layer **hard-stamps** every audit field on every write, so the audit log can never be forged by a crafted request body or by a client echoing a row back into a PATCH.
758
767
 
768
+ On Postgres the RLS migration adds a database-side backstop: `BEFORE INSERT` / `BEFORE UPDATE` triggers on every feature table (`public.set_audit_fields_on_insert()` / `_on_update()`). They set `created_at` / `modified_at` to the database's `now()` and apply the same actor rule as the wrapper — the actor column always names whoever did the write:
769
+
770
+ - a verified caller (`auth.user_id()`) always wins, so no request can write someone else's id;
771
+ - with no verified caller — a `scope:` principal, a delegated principal, the service lane, a `system:` actor — the actor the Worker already stamped is kept;
772
+ - only a write that carries no actor at all (raw SQL) gets `system:<database role>`.
773
+
774
+ `created_at` / `created_by` never change on update.
775
+
759
776
  Because the value would be discarded anyway, the generated `db` handle refuses it at the type level: on the scoped `db`, `.insert().values()` types `createdAt` / `modifiedAt` / `createdBy` / `modifiedBy` / `deletedAt` / `deletedBy` as `?: never`, and `.update().set()` types the audit quartet plus `deletedBy` the same way. Supplying one is a **compile error** — not a silent discard.
760
777
 
761
778
  ```ts
@@ -771,7 +788,7 @@ Drop the keys and let the wrapper write them from `ctx.userId` and the actual wr
771
788
 
772
789
  One deliberate exception: `.set({ deletedAt: ... })` **is** allowed on update — that assignment is the soft-delete signal, and the stored value is normalized to the write moment and the verified caller. The raw `unsafeDb` handle an `unsafe:` action receives is unwrapped Drizzle and carries none of these type fences.
773
790
 
774
- What the caller is responsible for: the domain fields. (`id` auto-fills via the column's `$defaultFn` — `q.id()` and injected ids both carry one.)
791
+ What the caller is responsible for: the domain fields. (`id` auto-fills via the column's `$defaultFn` — `q.id()` and injected ids both carry one, and the typed `db` treats `id` as optional on insert for every id strategy except `serial` and `false`.)
775
792
 
776
793
  What the caller does *not* need to set: `id`, the scope column, or any of the audit fields, ever.
777
794
 
@@ -27,7 +27,33 @@ If validation fails, the API returns a `400 Bad Request` with details about whic
27
27
 
28
28
  See [Actions](/define/actions) for the full action definition reference.
29
29
 
30
- > **Planned: Field-Level Validation**
30
+ ## Column Constraints
31
+
32
+ Field-level rules live on the column, not in a separate block. `q.text({ minLength, maxLength, pattern, email })`, `q.enum([...])`, `q.url({ maxLength })` and the numeric column types carry their constraints into the Zod schema of every generated create, update, and batch route, into the OpenAPI document, and into the CMS form. See [Schema](/define/schema#column-types) for the full list.
33
+
34
+ A raw Drizzle table (`sqliteTable` / `pgTable` wrapped in `defineTable`) has no column-level rules. Validate those in a [`triggers.beforeInsert` / `beforeUpdate`](/define/triggers) handler that throws, or convert the table to `q.table()`.
35
+
36
+ ```typescript
37
+ // features/agendaGroups/agendaGroups.ts
38
+ import { feature, q } from '@quickback/compiler';
39
+
40
+ export default feature('agendaGroups', {
41
+ columns: {
42
+ id: q.id(),
43
+ name: q.text({ maxLength: 200 }).required(),
44
+ selectionRule: q.enum(['one', 'multi']).default('one').required(),
45
+ organizationId: q.scope('organization'),
46
+ ...q.audit(),
47
+ ...q.softDelete(),
48
+ },
49
+ read: { access: { roles: ['member'] } },
50
+ create: { access: { roles: ['member'] } },
51
+ update: { access: { roles: ['member'] } },
52
+ delete: { access: { roles: ['member'] }, mode: 'soft' },
53
+ });
54
+ ```
55
+
56
+ > **There is no `validation:` key**
31
57
  >
32
- > Field-level validation rules in `defineTable()` (e.g., `minLength`, `maxLength`, `enum`) are planned for a future release. Today, use Zod schemas in actions for input validation, and rely on your Drizzle schema constraints (`.notNull()`, column types) for database-level enforcement.
58
+ > A top-level `validation: { field: { maxLength, enum } }` block on `defineTable()` is a compile error, as is any other key the compiler does not understand. Earlier compilers let unknown keys through silently, so a `validation:` block looked like it limited a field while the generated routes accepted anything. Move each rule onto its column.
33
59
 
@@ -97,4 +97,4 @@ When the admin plugin bans a user, every API key they own stops working: the API
97
97
 
98
98
  ## Rate limit
99
99
 
100
- Better Auth rate limits each key using the auth config's `rateLimit.window` (seconds) and `rateLimit.max` — 100 requests per 60 seconds by default. The limit is on unless that block sets `enabled: false`. Over the limit the API answers `429 AUTH_RATE_LIMITED`. The values are stamped on each key when it is created, so a change applies to new keys only.
100
+ Better Auth rate limits each key using the auth config's `rateLimit.window` (seconds) and `rateLimit.max` — 100 requests per 60 seconds by default. The limit is always on. It counts per key, so `rateLimit.enabled: false` (which turns off the per-IP limiter) doesn't affect it. Over the limit the API answers `429 AUTH_RATE_LIMITED`. The values are stamped on each key when it is created, so a change applies to new keys only.
@@ -183,6 +183,19 @@ long-lived process — the default is `"memory"`.
183
183
  | `"database"` | Auth database (`rateLimit` table) | Cloudflare Workers (default there) |
184
184
  | `"memory"` | Process memory | Single long-lived process (bun / node default) |
185
185
 
186
+ The table exists whenever `storage` is `"database"`, even with `enabled: false`,
187
+ so switching the limiter off or back on needs no migration.
188
+
189
+ ### Client IP
190
+
191
+ Better Auth reads the client IP from `x-forwarded-for` by default, which a
192
+ Worker doesn't receive. Without an IP every caller shares one bucket per path,
193
+ and a single client could use up a sign-in limit for everyone. On Cloudflare
194
+ the compiler therefore emits
195
+ `advanced.ipAddress.ipAddressHeaders: ['cf-connecting-ip']`. Cloudflare sets
196
+ that header at the edge, and clients can't override it. Set
197
+ `advanced.ipAddress.ipAddressHeaders` yourself to use different headers.
198
+
186
199
  ### Built-in rules for every credential door
187
200
 
188
201
  The compiler always emits a per-route rule for **every** credential endpoint
@@ -220,16 +233,16 @@ Set an edge rate-limit binding as well for defence in depth
220
233
 
221
234
  ### Disabling Rate Limiting
222
235
 
223
- Not recommended, but you can disable for testing:
224
-
225
236
  ```ts
226
- rateLimit: {
227
- enabled: process.env.NODE_ENV === 'production',
228
- window: 60,
229
- max: 1000, // Higher limit for development
230
- }
237
+ rateLimit: { enabled: false }
231
238
  ```
232
239
 
240
+ The compiler emits `enabled: false` explicitly. Better Auth would otherwise
241
+ fall back to `enabled: isProduction`. Disabling makes sense when many real
242
+ users share one IP, such as everyone on an event venue's Wi-Fi. It turns off
243
+ only the per-IP limiter. The [per-key API key limit](/platform/auth/api-keys)
244
+ stays on.
245
+
233
246
  ---
234
247
 
235
248
  ## Bearer Tokens and Cookie Precedence
@@ -709,7 +709,10 @@ touched. See [the default index set](#the-default-index-set).
709
709
 
710
710
  ### Delegated principal RLS
711
711
 
712
- Delegated principals require Cloudflare + Neon Hyperdrive. Their proof hook
712
+ Delegated principals require Cloudflare + Postgres over Hyperdrive: Neon with
713
+ `connectionMode: "hyperdrive"`, or
714
+ [PlanetScale Postgres](/platform/database/planetscale-postgres), which emits the
715
+ same lookup policies and lanes. Their proof hook
713
716
  returns only a digest and receives no database handle. Quickback then runs one
714
717
  lookup under an internal lookup-only principal whose RLS policy admits only the
715
718
  configured table row matching `credentialDigest`, plus any configured active
@@ -1435,7 +1438,11 @@ source. A child table with no `crud` config soft-deletes by default, so
1435
1438
 
1436
1439
  Tables **with** `defineTable(...)` are unaffected — existing `sqliteTable`
1437
1440
  sources with a resource config still compile to the Postgres dialect
1438
- automatically.
1441
+ automatically. Managed audit timestamps declared in the SQLite shape
1442
+ (`createdAt` / `modifiedAt` / `deletedAt` as `text`) are emitted as
1443
+ `timestamptz`, like every other Postgres table — the audit wrapper and the RLS
1444
+ audit triggers both stamp timestamps, not strings. API responses carry the same
1445
+ ISO-8601 string as on D1.
1439
1446
 
1440
1447
  ## When to choose Neon vs D1
1441
1448
 
@@ -197,6 +197,7 @@ never silently-broken output:
197
197
  | Managed file storage (`managed: true`) | **supported** — metadata lives in a `files` schema of the same database; the file-serving Worker binds the same Hyperdrive config |
198
198
  | Better Auth `subscriptions` plugin | supported — `auth.subscriptions` in the same journal, service-role only ([Subscriptions](/platform/auth/plugins/subscriptions#where-the-table-lives)) |
199
199
  | Generated SQL triggers (`sql:`) | supported — PL/pgSQL bodies, `SECURITY INVOKER` (see [Triggers](/define/triggers)) |
200
+ | Delegated principals (`auth.principals`, `resource.databaseAccess`) | supported — the same lookup policy, `<table>_principal_scope` / `<table>_principal_fence` lanes and middleware as Neon Hyperdrive ([Delegated principal RLS](/platform/database/neon#delegated-principal-rls)) |
200
201
  | `webhooksDatabaseId` / `webhooksDatabaseName` | rejected — D1-only keys; webhook tables live in the `webhooks` schema of the same database |
201
202
  | `connectionMode` of `'http'` or `'websocket'` | rejected — no such driver for this provider |
202
203
 
@@ -430,9 +430,11 @@ interface ValidationRule {
430
430
  | `enum` | `q.enum([...])`, or `text(..., { enum: [...] })` in raw Drizzle — the CMS renders a select |
431
431
  | `url` | `q.url()` — the CMS renders a `url` input; the API accepts only absolute `http(s)` URLs (so not `""`, `javascript:` or `data:`) |
432
432
  | `maxLength` | `q.text({ maxLength })` / `q.url({ maxLength })` |
433
+ | `minLength` | `q.text({ minLength })` |
434
+ | `email` | `q.text({ email: true })` — the CMS renders an `email` input |
433
435
  | `integer` | `q.int()`, `q.bigint()`, `q.smallint()` — whole numbers only |
434
436
  | `min` / `max` | `q.bigint()` (±2^53−1, the JSON-safe range) and `q.smallint()` (−32768…32767), inclusive |
435
- | `pattern` | `q.decimal({ precision, scale })` — the regex source the decimal string must match |
437
+ | `pattern` | `q.text({ pattern: /re/ })` (regex source only; flags are not carried) and `q.decimal({ precision, scale })` — the regex source the value must match |
436
438
  | `minLength` / `email` | Only when the enforced Zod carries `.min(n)` / `.email()`; no q column kind emits them today |
437
439
 
438
440
  Columns with no constraints have no entry. Optional fields left blank in the CMS form are omitted from the request body rather than sent as `""` — the API accepts an optional field being absent, not empty.