Skip to content

Conversation

@devakesu
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings January 24, 2026 18:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Supabase/Postgres schema to tighten constraints, improve RLS policies, and add performance-related extensions and indexes.

Changes:

  • Enables hypopg and index_advisor extensions and adds B-tree indexes on contact_messages.user_id and notification.auth_user_id to support query performance and index analysis.
  • Refines core tables (users, tracker, notification, user_settings, contact_messages) with table comments, a new unique_attendance_slot constraint for tracker, and makes users.terms_version non-nullable to align with application logic.
  • Adjusts RLS policies to use auth.uid() via a subselect and sets the search_path for the delete_user_account function to public for more predictable execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@devakesu devakesu merged commit a2584b7 into main Jan 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants