[Schema] Session Sharing - Database Schema & Access Control #37
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Implement session share token schema for read-only session sharing with configurable access control (public vs account-only).
Design Document
See:
docs/plans/2026-02-07-foundational-schema-design.md(Part 3)Database Changes
Migration 023: Add Session Sharing
New table:
session_sharesNew table:
session_share_viewsNew column on
accounts:allow_public_shares(Boolean, default true)Key Features
Cascade Behaviors
Indexes
session_shares:
session_share_views:
Acceptance Criteria
Related Issues
Part of foundational schema work (Issue #15)
Completed in PR #39. Migration 023 adds
session_sharesandsession_share_viewstables plusallow_public_shareson accounts. Includes token generation, public/account-scoped visibility, view tracking, expiration support, cascade deletes, and rate limiting on public access. 12 passing tests.