mirror of
https://github.com/hanzo-apps/hanzo-starter.git
synced 2026-10-30 19:15:13 +00:00
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.
15 lines
638 B
SQL
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
|
|
);
|