feat(desktop): Electron shell M2 — embedded server, desktop login, instance lock (#173)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,8 @@ CREATE TABLE IF NOT EXISTS auth_sessions (
|
||||
token_hash TEXT PRIMARY KEY, -- sha256(token) hex; the cookie stores only the raw token
|
||||
user_id TEXT NOT NULL REFERENCES users(user_id) ON DELETE CASCADE,
|
||||
created_at TEXT NOT NULL,
|
||||
expires_at TEXT NOT NULL -- 7-day sliding renewal (topped up when <6 days remain)
|
||||
expires_at TEXT NOT NULL, -- 7-day sliding renewal (topped up when <6 days remain)
|
||||
via TEXT -- 'password' | 'desktop'; NULL = legacy row (password)
|
||||
);
|
||||
CREATE TABLE IF NOT EXISTS projects (
|
||||
project_id TEXT PRIMARY KEY, -- directory name doubles as id; display name lives in project_config.toml
|
||||
|
||||
Reference in New Issue
Block a user