--- id: multi-user/dashboards-id-is-a-global-primary-key-and-ids title: "`dashboards.id` is a global primary key, and ids are `slugify(name)`" theme: multi-user status: open created: 2026-08-20 date_source: assumed order: 10 --- **`dashboards.id` is a global primary key, and ids are `slugify(name)`.** Two accounts cannot both have a dashboard named "Home". Reachable today: six accounts exist. The recommendation on the table is a composite PK `(user_id, id)` — it matches the `uq_dashboards_user_id` index already there and keeps every stored `ws-layout-` address valid, which uuid ids would not. Note the drizzle composite-PK re-diff quirk in `databases/CLAUDE.md`. Full analysis in `docs/workspace-panel-todo.md` §3.