mirror of
https://github.com/hanzo-apps/longform-essays.git
synced 2026-10-30 19:12:21 +00:00
Vite + React 19 + @hanzo/gui + @hanzo/iam + @hanzo/base, forked from hanzo-starter. Three views (year-grouped index, distraction-free reading column with drop-cap, markdown editor with publish toggle) over an org-scoped essays collection in Hanzo Base. Warm-paper editorial design.
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
|
|
);
|