chore: server-and-serverless template

This commit is contained in:
e2e
2026-06-28 19:37:05 +02:00
commit 51906e3d38
202 changed files with 9063 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
PRAGMA foreign_keys = ON;
-- Demo "hello world" persistence: a single editable message that shows the full
-- loop (sign in -> read from the DB -> write back -> see who last changed it).
-- Singleton row, always id = 1. Safe to delete this table and its functions
-- (get-message / update-message) once you start building your own thing.
CREATE TABLE IF NOT EXISTS message_state (
id INTEGER PRIMARY KEY,
message TEXT NOT NULL,
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
updated_by_user_id TEXT REFERENCES "user" ("id")
);