Files
zeekay d55c0a1aae hanzo-starter: canonical Vite + React 19 + @hanzo/gui + @hanzo/iam + @hanzo/base app
Real, buildable app the hanzo.app builder forks and Hanzo Cloud deploys.
- @hanzo/gui under plain Vite (react-native-web alias + Tamagui defines; no compiler/one/expo)
- @hanzo/iam PKCE S256 against hanzo.id (proven: real authorize redirect + login form)
- @hanzo/base org-scoped notes CRUD carrying the IAM token
- schema.sql -> provisionBaseFromDDL provisions Base collections on publish
- static deploy to <slug>.hanzo.app (hanzo.yml); CI is build-verification only
Proven: tsc clean, vite build -> dist, renders with zero console errors.
2026-07-21 08:12:19 -07:00

15 lines
638 B
SQL

-- Hanzo Base schema for this app (the `databaseSchema` DDL).
--
-- On publish, Hanzo Cloud translates each CREATE TABLE into a Hanzo Base
-- collection via `provisionBaseFromDDL` (additive + idempotent). Base manages
-- `id`/`created`/`updated`/`owner`/`org` itself, so they are never re-declared
-- here; every row is stamped with the verified IAM `owner`+`org` and is
-- org-scoped (a member of your org reads/writes it; other orgs cannot see it).
--
-- Keep this file in lockstep with what the app reads/writes (src/views/notes.tsx).
CREATE TABLE IF NOT EXISTS notes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
body TEXT NOT NULL
);