PostgreSQL 17 + pgvector schema #2

Closed
opened 2026-01-28 19:02:32 +00:00 by jason.woltje · 0 comments
Owner

Design and implement the PostgreSQL 17 database schema with pgvector extension.

Tables:

  • users (id, email, name, auth_provider_id, preferences, created_at, updated_at)
  • workspaces (id, name, owner_id, settings, created_at, updated_at)
  • workspace_members (workspace_id, user_id, role, joined_at)
  • tasks (id, workspace_id, title, description, status, priority, due_date, assignee_id, ...)
  • events (id, workspace_id, title, description, start_time, end_time, recurrence, ...)
  • projects (id, workspace_id, name, description, start_date, end_date, status, ...)
  • activity_log (id, workspace_id, user_id, action, entity_type, entity_id, details, ...)
  • memory_embeddings (id, workspace_id, content, embedding vector(1536), ...)

Requirements:

  • pgvector extension enabled
  • Proper indexes for common queries
  • Support for RLS (prepared for M2)
  • Migration scripts
Design and implement the PostgreSQL 17 database schema with pgvector extension. **Tables:** - users (id, email, name, auth_provider_id, preferences, created_at, updated_at) - workspaces (id, name, owner_id, settings, created_at, updated_at) - workspace_members (workspace_id, user_id, role, joined_at) - tasks (id, workspace_id, title, description, status, priority, due_date, assignee_id, ...) - events (id, workspace_id, title, description, start_time, end_time, recurrence, ...) - projects (id, workspace_id, name, description, start_date, end_date, status, ...) - activity_log (id, workspace_id, user_id, action, entity_type, entity_id, details, ...) - memory_embeddings (id, workspace_id, content, embedding vector(1536), ...) **Requirements:** - pgvector extension enabled - Proper indexes for common queries - Support for RLS (prepared for M2) - Migration scripts
jason.woltje added this to the M1-Foundation (0.0.1) milestone 2026-01-28 19:02:32 +00:00
jason.woltje added the databasep0 labels 2026-01-28 19:02:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#2