mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:27:56 +01:00
- Split ProfileSettings into Profile (public identity) and Account (auth/security) tabs - Add LocationSettings with two-tier model: homeCity/timezone/locale + currentCity/timezone/until for travelers - Add AccountSettings with email display, password change, connected OAuth providers, danger zone - New SettingsTabs with 7-tab horizontal nav (Profile · Account · Location · Agent · Projects · Team · Billing) - New user_preferences DB table with getUserPreferences/upsertUserPreferences query functions - New API routes: GET/PATCH /api/me/preferences, GET/DELETE /api/me/connected-accounts/[provider] - Wire user's active city into weather API; active timezone into cron default - beacon: replace "Waiting for Claude…" spinner with clean Standby screen (logo + text) - beacon: fix grep pipeline crash in agent-hook-bridge.sh (|| true guards), fix token lookup - beacon: fix _PROJECT_ROOT via agent-projects.conf, fix auto-start without zenity dialog Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
392 B
SQL
8 lines
392 B
SQL
-- Tighten the attributes uniqueness so two tenants can store the same
|
|
-- (entity_id, key) without colliding. user_id is included to make the unique
|
|
-- constraint match the way upsertEntityAttribute already scopes ownership.
|
|
DROP INDEX IF EXISTS "uq_attributes_entity_key";
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS "uq_attributes_user_entity_key"
|
|
ON "attributes" ("user_id", "entity_id", "key");
|