> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tuturuuu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Personal data candidates: public schema

> All generated table columns, inventory families and static policy evidence for the public schema.

## How to read this appendix

This source census contains 283 `public` tables and 2,975 columns at `8d6a13e58762aedff6b1ea5eabb6de474a257e99`. It includes non-personal catalogs as candidates. See the [inventory](https://docs.tuturuuu.com/platform/data-protection/inventory.md) for each family's data category, purpose, current retention/deletion path and export/erasure coverage. All generated `Row` columns are listed so indirect identifiers, free text and JSON are not hidden by a name filter.

The access column indexes migration declarations by table name, including prior schema locations. A declaration is evidence to inspect, not a certified effective grant. It does not evaluate predicates, policy drops, schema moves, dynamic SQL, default grants, RPC privileges or RLS bypass. `Not indexed` means unresolved. Private tables normally use server capabilities, but this appendix does not assume that every private table has identical privileges. Applied-schema negative tests are a phase-2 gate.

For reproducible counts, use the source-only census command on the inventory page. Table GRANT/REVOKE links show up to two recent distinct literal declarations, including their original schema. These are not resolved effective privileges. Policy links come from literal `CREATE POLICY` and `ALTER TABLE ... ENABLE/DISABLE ROW LEVEL SECURITY` statements in lexically ordered migration files. The latest matching RLS declaration and up to three recent distinct role/action declarations are shown with their original schema. SQL links also identify the first and last migration mentioning the table token when no policy was indexed. This is a conservative review index, not a SQL interpreter.

| Table | Inventory family | Columns | Access evidence to inspect |
| - | - | - | - |
| `public.abuse_activity_signals` | Security | `api_key_id`, `confidence_delta`, `created_at`, `id`, `ip_address`, `metadata`, `method`, `reason_code`, `risk_tier`, `route`, `score_delta`, `signal_type`, `subject_key`, `subject_type`, `user_id`, `workspace_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L175) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L246); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L192) |
| `public.abuse_events` | Security | `created_at`, `email`, `email_hash`, `endpoint`, `event_type`, `id`, `ip_address`, `metadata`, `success`, `user_agent` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L73) public: enable; [public: service\_role INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L110); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L97) |
| `public.abuse_reputation_subjects` | Security | `api_key_id`, `cidr`, `confidence_score`, `created_at`, `id`, `ip_address`, `last_negative_signal_at`, `last_positive_signal_at`, `last_seen_at`, `metadata`, `negative_signal_count`, `positive_signal_count`, `reputation_score`, `subject_key`, `subject_type`, `tier`, `trust_multiplier`, `updated_at`, `user_id`, `workspace_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L174) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L239); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L179) |
| `public.abuse_step_up_challenges` | Security | `challenge_type`, `completed_at`, `created_at`, `expires_at`, `id`, `ip_address`, `metadata`, `risk_tier`, `route`, `status`, `subject_key`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L176) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L253); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L205) |
| `public.abuse_trust_overrides` | Security | `absolute_limits`, `created_at`, `created_by`, `expires_at`, `id`, `limit_mode`, `metadata`, `reason`, `revoke_reason`, `revoked_at`, `revoked_by`, `subject_key`, `subject_type`, `tier`, `trust_multiplier`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260602204642_harden_abuse_trust_overrides.sql#L1) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L260); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517102000_adaptive_abuse_reputation.sql#L218); [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260602204642_harden_abuse_trust_overrides.sql#L8); [public: REVOKE ALL anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260602204642_harden_abuse_trust_overrides.sql#L6) |
| `public.ai_chat_messages` | AI and memory | `chat_id`, `completion_tokens`, `content`, `created_at`, `creator_id`, `finish_reason`, `id`, `metadata`, `model`, `prompt_tokens`, `role`, `type` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231103092429_add_ai_chats.sql#L10) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231103092429_add_ai_chats.sql#L35) |
| `public.ai_chats` | AI and memory | `archived_at`, `created_at`, `creator_id`, `id`, `is_public`, `latest_summarized_message_id`, `model`, `pinned`, `summary`, `title` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231103092429_add_ai_chats.sql#L17) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240618111524_add_ai_chat_summary.sql#L11); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240617174024_update_ai_chat_permissions.sql#L13); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231103092429_add_ai_chats.sql#L48) |
| `public.ai_credit_feature_access` | AI and memory | `enabled`, `feature`, `id`, `max_requests_per_day`, `tier` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L63) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L135) |
| `public.ai_credit_plan_allocations` | AI and memory | `allowed_features`, `allowed_models`, `created_at`, `credits_per_seat`, `daily_limit`, `default_image_model`, `default_language_model`, `id`, `is_active`, `markup_multiplier`, `max_credits_per_request`, `max_output_tokens_per_request`, `max_requests_per_day`, `monthly_credits`, `tier`, `updated_at`, `weekly_limit` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L51) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L129) |
| `public.ai_credit_transactions` | AI and memory | `amount`, `balance_id`, `chat_message_id`, `cost_usd`, `created_at`, `execution_id`, `feature`, `id`, `image_count`, `input_tokens`, `metadata`, `model_id`, `output_tokens`, `reasoning_tokens`, `search_count`, `transaction_type`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L100) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214130000_revise_ai_credit_allocation.sql#L70) |
| `public.ai_model_favorites` | AI and memory | `created_at`, `id`, `model_id`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260223100000_add_ai_model_favorites.sql#L19) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260223100000_add_ai_model_favorites.sql#L46); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260223100000_add_ai_model_favorites.sql#L34); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260223100000_add_ai_model_favorites.sql#L22) |
| `public.audio_chunks` | Meetings | `chunk_order`, `created_at`, `id`, `session_id`, `storage_path` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L12) public: enable; [public: public ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811082156_add_meeting_permissions.sql#L3); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L152); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L150) |
| `public.aurora_ml_forecast` | System and configuration | `catboost`, `created_at`, `date`, `elasticnet`, `id`, `lightgbm`, `ws_id`, `xgboost` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L12) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L366); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L182); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L180) |
| `public.aurora_ml_metrics` | System and configuration | `created_at`, `directional_accuracy`, `id`, `model`, `rmse`, `turning_point_accuracy`, `weighted_score`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L26) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L390); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L242); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L240) |
| `public.aurora_statistical_forecast` | System and configuration | `auto_arima`, `auto_arima_hi_90`, `auto_arima_lo_90`, `auto_ets`, `auto_ets_hi_90`, `auto_ets_lo_90`, `auto_theta`, `auto_theta_hi_90`, `auto_theta_lo_90`, `ces`, `ces_hi_90`, `ces_lo_90`, `created_at`, `date`, `id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L48) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L414); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L302); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L300) |
| `public.aurora_statistical_metrics` | System and configuration | `created_at`, `directional_accuracy`, `id`, `model`, `no_scaling`, `rmse`, `turning_point_accuracy`, `weighted_score`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L63) public: enable; [public: public ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L438); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L362); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250217113031_add_aurora_tables.sql#L360) |
| `public.blocked_ips` | Security | `block_level`, `blocked_at`, `created_at`, `expires_at`, `id`, `ip_address`, `metadata`, `reason`, `status`, `unblock_reason`, `unblocked_at`, `unblocked_by`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L72) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L116); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208100000_ip_abuse_tracking.sql#L76) |
| `public.board_template_shares` | Tasks | `created_at`, `created_by`, `email`, `id`, `permission`, `template_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L72) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L171); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L159); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L194); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L191) |
| `public.board_templates` | Tasks | `background_path`, `content`, `created_at`, `created_by`, `description`, `id`, `name`, `source_board_id`, `updated_at`, `visibility`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L71) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L150); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L144); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L139); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L193); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204030000_board_templates.sql#L190) |
| `public.calendar_auth_tokens` | Calendar and time | `access_token`, `account_email`, `account_name`, `created_at`, `expires_at`, `id`, `is_active`, `provider`, `refresh_token`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L9) public: enable; [public: public UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L85); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L77); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L69); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L59); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250322150642_add_calendar_auth_tokens.sql#L57) |
| `public.calendar_connections` | Calendar and time | `access_role`, `auth_token_id`, `calendar_id`, `calendar_name`, `color`, `created_at`, `id`, `is_enabled`, `provider`, `sync_delete_enabled`, `sync_inbound_enabled`, `sync_outbound_enabled`, `updated_at`, `workspace_calendar_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L13) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L73); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L65); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L58); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L47); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251112070314_add_calendar_connections_table.sql#L46) |
| `public.calendar_event_colors` | Calendar and time | `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230517144534_add_ws_calendar_events.sql#L13) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230517144534_add_ws_calendar_events.sql#L38) |
| `public.calendar_sync_dashboard` | Calendar and time | `batch_count`, `calendar_connection_count`, `calendar_ids_synced`, `cooldown_remaining_seconds`, `date_range_end`, `date_range_start`, `deleted_events`, `end_time`, `error_message`, `error_stack_trace`, `error_type`, `events_fetched_total`, `events_filtered_out`, `failed_event_ids`, `google_api_calls_count`, `google_api_error_code`, `google_api_pages_fetched`, `google_api_retry_count`, `id`, `inserted_events`, `payload_size_bytes`, `source`, `start_time`, `status`, `sync_token_used`, `timing_database_writes_ms`, `timing_event_processing_ms`, `timing_google_api_fetch_ms`, `timing_token_operations_ms`, `timing_total_ms`, `triggered_by`, `triggered_from`, `type`, `updated_at`, `updated_events`, `was_blocked_by_cooldown`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250803191139_calendar_sync_dashboard.sql#L16) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250803191139_calendar_sync_dashboard.sql#L56); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250803191139_calendar_sync_dashboard.sql#L54); [public: GRANT TRIGGER service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250803191139_calendar_sync_dashboard.sql#L52) |
| `public.calendar_sync_states` | Calendar and time | `calendar_id`, `last_synced_at`, `sync_token`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250710070000_create_calendar_sync_states_table.sql#L10) public: enable; [public: public ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250711161134_disable_calendar_sync_states_access.sql#L1) |
| `public.canonical_external_projects` | System and configuration | `adapter`, `allowed_collections`, `allowed_features`, `created_at`, `created_by`, `delivery_profile`, `display_name`, `id`, `is_active`, `metadata`, `updated_at`, `updated_by` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L223) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L414); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L530) |
| `public.changelog_entries` | System and configuration | `category`, `content`, `cover_image_url`, `created_at`, `creator_id`, `id`, `is_published`, `published_at`, `slug`, `summary`, `title`, `updated_at`, `version` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251129000001_add_changelog_entries.sql#L22) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251130000002_update_changelog_rls_with_permission.sql#L43); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251130000002_update_changelog_rls_with_permission.sql#L33); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251130000002_update_changelog_rls_with_permission.sql#L23); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251129000001_add_changelog_entries.sql#L100); [public: GRANT SELECT anon](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251129000001_add_changelog_entries.sql#L99) |
| `public.course_certificates` | Education | `completed_date`, `created_at`, `group_id`, `id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L9) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L91); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L83); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L76); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L67); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250604054545_add_course_certificates.sql#L65) |
| `public.course_module_completion_status` | Education | `completed_at`, `completion_id`, `completion_status`, `created_at`, `module_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L11) public: enable; [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L85); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L78); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L71); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L69); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250603032529_add_course_module_completion_status.sql#L67) |
| `public.course_module_flashcards` | Education | `created_at`, `flashcard_id`, `module_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026173156_add_module_flashcards.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026173156_add_module_flashcards.sql#L64); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026173156_add_module_flashcards.sql#L62); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026173156_add_module_flashcards.sql#L60) |
| `public.course_module_quiz_sets` | Education | `created_at`, `module_id`, `set_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L187); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L101); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L99) |
| `public.course_module_quiz_submissions` | Education | `ai_feedback`, `answer`, `created_at`, `feedback`, `id`, `is_correct`, `module_id`, `quiz_id`, `selected_option_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615231025_add_course_module_quiz_submissions.sql#L12) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615231025_add_course_module_quiz_submissions.sql#L57); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615231025_add_course_module_quiz_submissions.sql#L50); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615231025_add_course_module_quiz_submissions.sql#L45); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615231025_add_course_module_quiz_submissions.sql#L44) |
| `public.course_module_quizzes` | Education | `created_at`, `module_id`, `quiz_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026193156_add_module_quizzes.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026193156_add_module_quizzes.sql#L64); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026193156_add_module_quizzes.sql#L62); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026193156_add_module_quizzes.sql#L60) |
| `public.course_test_attempt_answers` | Education | `answer`, `attempt_id`, `created_at`, `feedback`, `id`, `is_correct`, `quiz_id`, `score_awarded`, `selected_option_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L24) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L84); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L74); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L73) |
| `public.course_test_attempts` | Education | `created_at`, `id`, `score`, `started_at`, `submitted_at`, `test_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L11) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L77); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L57); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151300_add_course_test_attempts.sql#L56) |
| `public.course_test_modules` | Education | `created_at`, `module_id`, `test_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L16) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L67); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L55); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L54) |
| `public.course_test_quizzes` | Education | `created_at`, `module_id`, `quiz_id`, `test_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151100_add_course_test_quizzes.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151100_add_course_test_quizzes.sql#L48); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151100_add_course_test_quizzes.sql#L45); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260623151100_add_course_test_quizzes.sql#L44) |
| `public.course_tests` | Education | `course_id`, `created_at`, `description`, `duration_in_minutes`, `id`, `is_published`, `is_score_published`, `name`, `start_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L8) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L58); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L44); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616124500_add_course_tests.sql#L43) |
| `public.crawled_url_next_urls` | Content and CMS | `created_at`, `origin_id`, `skipped`, `url` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L395) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L422); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L214); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L212) |
| `public.crawled_urls` | Content and CMS | `created_at`, `creator_id`, `html`, `id`, `markdown`, `url` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L403) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L424); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L274); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250210132933_add_crawled_urls.sql#L272) |
| `public.credit_wallets` | AI and memory | `limit`, `payment_date`, `statement_date`, `wallet_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230422074758_add_credit_wallets_and_currencies.sql#L45) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230422074758_add_credit_wallets_and_currencies.sql#L52) |
| `public.currency_exchange_rates` | System and configuration | `base_currency`, `created_at`, `date`, `fetched_at`, `id`, `rate`, `target_currency` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260205070000_add_exchange_rates_and_seed_currencies.sql#L70) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260205070000_add_exchange_rates_and_seed_currencies.sql#L78); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260205070000_add_exchange_rates_and_seed_currencies.sql#L72) |
| `public.discord_guild_members` | Chat | `created_at`, `discord_guild_id`, `discord_user_id`, `id`, `platform_user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L10) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L137); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L93); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L91) |
| `public.discord_integrations` | Chat | `created_at`, `creator_id`, `discord_guild_id`, `id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L21) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L152); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L135); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250913163742_add_discord_guild_integrations.sql#L133) |
| `public.email_audit` | Mail and delivery | `bcc_addresses`, `cc_addresses`, `content_hash`, `created_at`, `entity_id`, `entity_type`, `error_message`, `html_content`, `id`, `ip_address`, `message_id`, `metadata`, `provider`, `reply_to_addresses`, `sent_at`, `source_email`, `source_name`, `status`, `subject`, `template_type`, `text_content`, `to_addresses`, `updated_at`, `user_agent`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251210100000_email_audit.sql#L96) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251210100000_email_audit.sql#L117); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251210100000_email_audit.sql#L106) |
| `public.email_blacklist` | Mail and delivery | `added_by_user_id`, `created_at`, `entry_type`, `id`, `reason`, `updated_at`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251102072057_email_blacklist.sql#L49) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251102072057_email_blacklist.sql#L51) |
| `public.finance_budgets` | Finance and commerce | `alert_threshold`, `amount`, `category_id`, `created_at`, `description`, `end_date`, `id`, `is_active`, `name`, `period`, `spent`, `start_date`, `updated_at`, `wallet_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000001_add_finance_budgets.sql#L28) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000001_add_finance_budgets.sql#L64); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000001_add_finance_budgets.sql#L53); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000001_add_finance_budgets.sql#L42) |
| `public.finance_invoice_products` | Finance and commerce | `amount`, `created_at`, `invoice_id`, `owner_id`, `owner_name`, `price`, `product_id`, `product_name`, `product_unit`, `total_diff`, `unit_id`, `warehouse`, `warehouse_id` | [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L397) |
| `public.finance_invoice_promotions` | Finance and commerce | `code`, `created_at`, `description`, `invoice_id`, `name`, `promo_id`, `use_ratio`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L352) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L458) |
| `public.finance_invoice_user_groups` | Finance and commerce | `created_at`, `invoice_id`, `user_group_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260127082242_invoices_multiple_groups.sql#L12) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260127082242_invoices_multiple_groups.sql#L16) |
| `public.finance_invoices` | Finance and commerce | `category_id`, `completed_at`, `created_at`, `creator_id`, `customer_id`, `id`, `note`, `notice`, `paid_amount`, `platform_creator_id`, `price`, `subscription_months`, `total_diff`, `transaction_id`, `valid_until`, `wallet_id`, `ws_id` | Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230405075342_fix_ws_users_count_function_bug.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261003101500_inventory_merge_historical_restore.sql) |
| `public.guest_users_lead_generation` | Identity | `created_at`, `id`, `mail_id`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929072433_lead_generation.sql#L10) public: enable; [public: public ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929072433_lead_generation.sql#L148); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929072433_lead_generation.sql#L146); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929072433_lead_generation.sql#L144) |
| `public.habit_calendar_events` | Calendar and time | `completed`, `created_at`, `event_id`, `habit_id`, `id`, `occurrence_date`, `scheduling_reason`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L141) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L193); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L184); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L175) |
| `public.habit_completions` | System and configuration | `completed_at`, `created_at`, `event_id`, `habit_id`, `id`, `occurrence_date` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L142) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L230); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L221); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L212) |
| `public.habit_skipped_occurrences` | System and configuration | `created_at`, `created_by`, `habit_id`, `id`, `occurrence_date`, `revoked_at`, `source_event_id`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260319123000_add_habit_skipped_occurrences.sql#L21) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260319123000_add_habit_skipped_occurrences.sql#L34); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260319123000_add_habit_skipped_occurrences.sql#L23) |
| `public.handles` | Identity | `created_at`, `creator_id`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230329155454_add_workspace_presets_and_username.sql#L8) public: enable; [public: anon, authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261004004000_public_creator_identity.sql#L49); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230329155454_add_workspace_presets_and_username.sql#L78); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230329155454_add_workspace_presets_and_username.sql#L66) |
| `public.hive_members` | Content and CMS | `created_at`, `enabled`, `id`, `notes`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L210) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L223); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L218) |
| `public.hive_npc_memories` | Content and CMS | `content`, `created_at`, `created_by`, `enabled`, `id`, `importance`, `npc_id`, `server_id`, `source_run_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L215) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L255) |
| `public.hive_npc_runs` | Content and CMS | `actor_user_id`, `applied_event_id`, `autonomous`, `created_at`, `credit_source`, `credit_ws_id`, `credits_deducted`, `error`, `id`, `input_context`, `input_tokens`, `interaction_id`, `llm_cost`, `llm_model`, `llm_provider`, `npc_id`, `output_decision`, `output_tokens`, `prompt_mode`, `reasoning_tokens`, `research_session_id`, `server_id`, `status`, `target_npc_id`, `trigger` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L216) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L260) |
| `public.hive_npcs` | Content and CMS | `backstory`, `backstory_enabled`, `created_at`, `created_by`, `custom_prompt_enabled`, `id`, `memory_enabled`, `model`, `name`, `position`, `role`, `server_id`, `settings`, `system_prompt`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L214) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L250) |
| `public.hive_research_session_events` | Content and CMS | `actor_user_id`, `created_at`, `event_kind`, `id`, `payload`, `server_id`, `session_id`, `source_id`, `source_type` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L79) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L97); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L92) |
| `public.hive_research_sessions` | Content and CMS | `created_at`, `created_by`, `description`, `ended_at`, `id`, `metadata`, `name`, `server_id`, `started_at`, `status`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L78) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L86); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518095000_add_hive_research_studio.sql#L81) |
| `public.hive_servers` | Content and CMS | `created_at`, `created_by`, `description`, `enabled`, `id`, `max_players`, `name`, `slug`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L211) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L234); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L229) |
| `public.hive_workflow_runs` | Content and CMS | `actor_user_id`, `created_at`, `error`, `finished_at`, `id`, `input`, `output`, `research_session_id`, `server_id`, `started_at`, `status`, `step_trace`, `workflow_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L42) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L68); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L63); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L58) |
| `public.hive_workflows` | Content and CMS | `archived_at`, `created_at`, `created_by`, `definition`, `description`, `enabled`, `id`, `name`, `server_id`, `updated_at`, `updated_by`, `version` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L41) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L52); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260514150000_add_hive_graph_workflows.sql#L44) |
| `public.hive_world_events` | Content and CMS | `actor_user_id`, `created_at`, `event_type`, `id`, `payload`, `research_session_id`, `revision`, `server_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L213) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L245) |
| `public.hive_world_states` | Content and CMS | `revision`, `server_id`, `updated_at`, `updated_by`, `world_data` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L212) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260510143500_add_hive_research_engine.sql#L240) |
| `public.internal_emails` | Mail and delivery | `bcc_addresses`, `cc_addresses`, `created_at`, `html_payload`, `id`, `payload`, `reply_to_addresses`, `source_email`, `subject`, `to_addresses`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250718111458_add_internal_emails.sql#L17) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250718111458_add_internal_emails.sql#L73); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250718111458_add_internal_emails.sql#L71); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250718111458_add_internal_emails.sql#L69) |
| `public.link_analytics` | Analytics | `browser`, `city`, `clicked_at`, `country`, `country_region`, `created_at`, `device_type`, `id`, `ip_address`, `latitude`, `link_id`, `longitude`, `os`, `postal_code`, `referrer`, `referrer_domain`, `timezone`, `user_agent`, `vercel_id`, `vercel_region` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712164651_add_shorten_link_analytics.sql#L16) public: enable; [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712164651_add_shorten_link_analytics.sql#L100); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712164651_add_shorten_link_analytics.sql#L88); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712164651_add_shorten_link_analytics.sql#L84); [public: GRANT INSERT anon](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712164651_add_shorten_link_analytics.sql#L81) |
| `public.live_api_sessions` | Meetings | `created_at`, `expires_at`, `id`, `scope_key`, `session_handle`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204150355_add_live_api_sessions.sql#L20) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204150355_add_live_api_sessions.sql#L22) |
| `public.meet_ai_chunks` | Meetings | `attempt_id`, `attempt_started_at`, `attempts`, `cost_usd`, `created_at`, `duration_seconds`, `id`, `prior_cost_usd`, `sequence`, `session_id`, `start_seconds`, `status`, `transcript`, `unpriced_attempts`, `usage` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L34) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L43); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L37); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L36) |
| `public.meet_ai_memories` | Meetings | `category`, `content`, `created_at`, `id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L16) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L21); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L19); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L18) |
| `public.meet_ai_sessions` | Meetings | `created_at`, `ended_at`, `id`, `meeting_id`, `notes`, `notes_cost_usd`, `notes_started_at`, `notes_status`, `notes_unpriced_attempts`, `notes_usage`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L33) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L39); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L37); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260907040000_meet_ai_sessions.sql#L36) |
| `public.meet_ai_user_preferences` | Meetings | `memory_enabled`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L15) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L20); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L19); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260909153100_meet_private_ai_memory.sql#L18) |
| `public.meet_together_finalized_timeframes` | Meetings | `created_at`, `created_by`, `end_at`, `id`, `plan_id`, `position`, `start_at`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260801164359_meet_scheduling_revamp.sql#L35) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260801164359_meet_scheduling_revamp.sql#L38); [public: REVOKE ALL anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260801164359_meet_scheduling_revamp.sql#L37); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260801164359_meet_scheduling_revamp.sql) |
| `public.meet_together_guest_timeblocks` | Meetings | `created_at`, `date`, `end_time`, `id`, `plan_id`, `start_time`, `tentative`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240224073718_improve_meet_together_policies.sql#L3) public: enable; [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240205033319_add_initial_plan_timeblocks_support.sql#L70); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240205033319_add_initial_plan_timeblocks_support.sql#L69); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240205033319_add_initial_plan_timeblocks_support.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260801164359_meet_scheduling_revamp.sql) |
| `public.meet_together_guests` | Meetings | `created_at`, `id`, `name`, `password_hash`, `password_salt`, `plan_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240204091521_add_meet_together_guest_accounts.sql#L10) public: enable; [public: REVOKE ALL anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024020500_revoke_meet_guest_client_grants.sql#L5); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240204091521_add_meet_together_guest_accounts.sql#L60); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240204091521_add_meet_together_guest_accounts.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024020500_revoke_meet_guest_client_grants.sql) |
| `public.meet_together_plans` | Meetings | `agenda_content`, `created_at`, `creator_id`, `dates`, `description`, `duration_minutes`, `end_time`, `finalized_at`, `finalized_by`, `id`, `is_confirmed`, `is_public`, `name`, `start_time`, `timezone`, `where_to_meet`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240131161122_improve_meet_together_plans.sql#L62) public: enable; [public: public SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250714000000_add_workspace_support_to_meet_together.sql#L32); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250714000000_add_workspace_support_to_meet_together.sql#L24); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250714000000_add_workspace_support_to_meet_together.sql#L15); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240131161122_improve_meet_together_plans.sql#L120); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240131161122_improve_meet_together_plans.sql#L118) |
| `public.meet_together_user_timeblocks` | Meetings | `created_at`, `date`, `end_time`, `id`, `plan_id`, `start_time`, `tentative`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240224073718_improve_meet_together_policies.sql#L5) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240224073718_improve_meet_together_policies.sql#L7); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240205033319_add_initial_plan_timeblocks_support.sql#L91); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240205033319_add_initial_plan_timeblocks_support.sql#L90) |
| `public.mira_daily_stats` | AI and memory | `created_at`, `date`, `focus_minutes`, `focus_sessions_completed`, `id`, `interactions`, `streak_day`, `tasks_completed`, `updated_at`, `user_id`, `xp_earned` | [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L166); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L163); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L160) |
| `public.mira_focus_sessions` | AI and memory | `actual_duration`, `completed`, `created_at`, `ended_at`, `goal`, `id`, `notes`, `planned_duration`, `started_at`, `user_id`, `xp_earned` | [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L179); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L176); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L173) |
| `public.mira_memories` | AI and memory | `category`, `confidence`, `created_at`, `embedding`, `id`, `key`, `last_referenced_at`, `source`, `updated_at`, `user_id`, `value` | [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L156); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L153); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L150) |
| `public.mira_pets` | AI and memory | `created_at`, `health`, `hunger`, `id`, `last_fed_at`, `last_interaction_at`, `level`, `mood`, `name`, `streak_days`, `total_conversations`, `total_focus_minutes`, `updated_at`, `user_id`, `xp`, `xp_to_next_level` | [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L118); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L115); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L112) |
| `public.mira_soul` | AI and memory | `boundaries`, `chat_tone`, `created_at`, `id`, `name`, `personality`, `push_tone`, `tone`, `updated_at`, `user_id`, `vibe` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100001_create_mira_soul.sql#L24) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100001_create_mira_soul.sql#L36); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100001_create_mira_soul.sql#L33); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100001_create_mira_soul.sql#L30) |
| `public.mira_user_accessories` | AI and memory | `accessory_id`, `id`, `is_equipped`, `unlocked_at`, `user_id` | [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L143); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L140); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L137) |
| `public.mira_user_achievements` | AI and memory | `achievement_id`, `id`, `unlocked_at`, `user_id` | [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L129); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260219100000_rename_tuna_to_mira.sql#L126) |
| `public.notes` | Content and CMS | `archived`, `content`, `created_at`, `creator_id`, `deleted`, `id`, `title`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L17) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L134); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L131); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L123); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L241) |
| `public.notification_preferences` | Notifications | `channel`, `created_at`, `enabled`, `event_type`, `id`, `scope`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200002_create_notification_preferences_table.sql#L19) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200009_upgrade_notifications_system.sql#L231); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200009_upgrade_notifications_system.sql#L209); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200009_upgrade_notifications_system.sql#L196) |
| `public.notification_push_devices` | Notifications | `app_flavor`, `created_at`, `device_id`, `id`, `last_seen_at`, `platform`, `token`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260328110000_add_push_notification_device_registry.sql#L30) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260328110000_add_push_notification_device_registry.sql#L58); [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260328110000_add_push_notification_device_registry.sql#L52); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260328110000_add_push_notification_device_registry.sql#L45) |
| `public.notifications` | Notifications | `action_url`, `archived_at`, `code`, `created_at`, `created_by`, `data`, `description`, `email`, `entity_id`, `entity_type`, `expires_at`, `id`, `metadata`, `parent_id`, `priority`, `read_at`, `scope`, `title`, `type`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200001_create_notifications_table.sql#L54) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024014000_tighten_notification_email_access.sql#L286); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024014000_tighten_notification_email_access.sql#L264); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024014000_tighten_notification_email_access.sql#L247); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024014000_tighten_notification_email_access.sql#L300); [public: REVOKE ALL public, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024014000_tighten_notification_email_access.sql#L299) |
| `public.onboarding_progress` | Identity | `completed_at`, `completed_missions`, `completed_steps`, `created_at`, `current_step`, `dismissed_at`, `flow_type`, `goals`, `guidance_mode`, `invited_emails`, `journey_revision`, `language_preference`, `notifications_enabled`, `persona`, `profile_completed`, `replay_app`, `team_workspace_id`, `theme_preference`, `tour_completed`, `updated_at`, `use_case`, `user_id`, `workspace_avatar_url`, `workspace_description`, `workspace_name` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250619161757_add_onboarding_progress.sql#L18) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250619161757_add_onboarding_progress.sql#L51); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250619161757_add_onboarding_progress.sql#L45); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250619161757_add_onboarding_progress.sql#L39) |
| `public.platform_email_roles` | Identity | `allow_challenge_management`, `allow_manage_all_challenges`, `allow_role_management`, `created_at`, `email`, `enabled` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250518033608_add_role_migration_cleanup.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250518033608_add_role_migration_cleanup.sql#L11) |
| `public.platform_entity_creation_limits` | System and configuration | `created_at`, `enabled`, `notes`, `per_day`, `per_hour`, `per_month`, `per_week`, `table_name`, `tier`, `total_limit`, `updated_at`, `updated_by` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260318160000_add_platform_entity_creation_limits.sql#L32) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260318160000_add_platform_entity_creation_limits.sql#L604); [public: REVOKE ALL anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260318160000_add_platform_entity_creation_limits.sql#L592); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260318160000_add_platform_entity_creation_limits.sql) |
| `public.platform_user_roles` | Identity | `allow_challenge_management`, `allow_discord_integrations`, `allow_manage_all_challenges`, `allow_role_management`, `allow_workspace_creation`, `created_at`, `enabled`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250517155400_add_platform_user_roles.sql#L26) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250518033608_add_role_migration_cleanup.sql#L25); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250518033608_add_role_migration_cleanup.sql#L18) |
| `public.poll_guest_votes` | System and configuration | `created_at`, `guest_id`, `id`, `option_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L191) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L523); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L382); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L380) |
| `public.poll_options` | System and configuration | `created_at`, `id`, `poll_id`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L201) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L532); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L424); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L422) |
| `public.poll_user_votes` | System and configuration | `created_at`, `id`, `option_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L224) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L562); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L554); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L508); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L506) |
| `public.polls` | System and configuration | `allow_anonymous_updates`, `created_at`, `creator_id`, `id`, `name`, `plan_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722152559_add_poll_schema.sql#L29) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722170914_refine_poll_schema.sql#L570); [public: public SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722152559_add_poll_schema.sql#L282); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722152559_add_poll_schema.sql#L274); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722152559_add_poll_schema.sql#L206); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250722152559_add_poll_schema.sql#L204) |
| `public.post_email_queue` | Notifications | `attempt_count`, `batch_id`, `blocked_reason`, `cancelled_at`, `claimed_at`, `created_at`, `group_id`, `id`, `last_attempt_at`, `last_error`, `post_id`, `sender_platform_user_id`, `sent_at`, `sent_email_id`, `status`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260320171543_add_post_email_queue.sql#L60) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260320171543_add_post_email_queue.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260727150000_scale_reports_and_post_email_maintenance.sql) |
| `public.product_categories` | Finance and commerce | `created_at`, `id`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L68) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L190) |
| `public.product_stock_changes` | Finance and commerce | `amount`, `beneficiary_id`, `created_at`, `creator_id`, `id`, `note`, `product_id`, `unit_id`, `warehouse_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L17) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L174); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L130); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L128) |
| `public.qr_login_challenges` | Identity | `approval_metadata`, `approved_at`, `approver_device_id`, `approver_email`, `approver_platform`, `approver_user_id`, `consumed_at`, `created_at`, `expires_at`, `id`, `request_metadata`, `secret_hash`, `status`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260505193000_add_qr_login_challenges.sql#L40) public: enable; [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260505193000_add_qr_login_challenges.sql#L44); [public: REVOKE ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260505193000_add_qr_login_challenges.sql#L43); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260505193000_add_qr_login_challenges.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260923130000_required_account_mfa.sql) |
| `public.quiz_options` | Education | `created_at`, `explanation`, `id`, `is_correct`, `points`, `quiz_id`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L11) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241026193156_add_module_quizzes.sql#L81); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L118); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L116) |
| `public.quiz_set_quizzes` | Education | `created_at`, `quiz_id`, `set_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L17) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241220080428_add_quiz_set_quizzes_rls.sql#L1); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L143); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L141) |
| `public.rate_limit_appeals` | Security | `cleared_blocked_ip_id`, `client_ip`, `created_at`, `created_rate_limit_rule_id`, `creator_id`, `diagnostics`, `id`, `message`, `page_path`, `proxy_block_reason`, `rate_limit_policy`, `rate_limit_window`, `request_method`, `request_path`, `response_status`, `retry_after_seconds`, `review_note`, `reviewed_at`, `reviewed_by`, `status`, `temporary_relief_expires_at`, `temporary_relief_granted_at`, `timezone`, `turnstile_verified_at`, `updated_at`, `user_agent`, `user_email`, `workspace_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260627114500_rate_limit_appeals.sql#L54) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260627114500_rate_limit_appeals.sql#L86); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260627114500_rate_limit_appeals.sql#L80); [public: GRANT DELETE, INSERT, REFERENCES, SELECT, TRIGGER, TRUNCATE, UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260627114500_rate_limit_appeals.sql#L93); [public: GRANT SELECT, INSERT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260627114500_rate_limit_appeals.sql#L92) |
| `public.realtime_log_aggregations` | Analytics | `channel_id`, `created_at`, `error_count`, `id`, `kind`, `sample_messages`, `time_bucket`, `total_count`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251120094312_create_realtime_log_aggregations.sql#L18) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251120094312_create_realtime_log_aggregations.sql#L57) |
| `public.recording_sessions` | Meetings | `created_at`, `id`, `meeting_id`, `status`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L24) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811082156_add_meeting_permissions.sql#L18); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L194); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L192) |
| `public.recurring_transactions` | Finance and commerce | `amount`, `category_id`, `created_at`, `description`, `end_date`, `frequency`, `id`, `is_active`, `last_occurrence`, `name`, `next_occurrence`, `start_date`, `updated_at`, `wallet_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000003_add_recurring_transactions.sql#L28) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000003_add_recurring_transactions.sql#L64); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000003_add_recurring_transactions.sql#L53); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000003_add_recurring_transactions.sql#L42) |
| `public.sent_emails` | Mail and delivery | `content`, `created_at`, `email`, `id`, `post_id`, `receiver_id`, `sender_id`, `source_email`, `source_name`, `subject`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240821103722_add_sent_emails.sql#L13) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250701063840_better_sent_emails_rls.sql#L9); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240821103722_add_sent_emails.sql#L94); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240821103722_add_sent_emails.sql#L67); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240821103722_add_sent_emails.sql#L65) |
| `public.sepay_connections` | Finance and commerce | `access_token_encrypted`, `access_token_expires_at`, `created_at`, `id`, `refresh_token_encrypted`, `scopes`, `sepay_company_id`, `status`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql#L115) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103400_harden_sepay_disconnect_and_workspace_consistency.sql) |
| `public.sepay_wallet_links` | Finance and commerce | `active`, `created_at`, `id`, `metadata`, `sepay_account_number`, `sepay_bank_account_id`, `sepay_gateway`, `sepay_sub_account_id`, `updated_at`, `wallet_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql#L116) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103400_harden_sepay_disconnect_and_workspace_consistency.sql) |
| `public.sepay_webhook_endpoints` | Finance and commerce | `active`, `created_at`, `deleted_at`, `id`, `last_used_at`, `rotated_at`, `sepay_webhook_id`, `token_hash`, `token_prefix`, `wallet_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql#L117) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103400_harden_sepay_disconnect_and_workspace_consistency.sql) |
| `public.sepay_webhook_events` | Finance and commerce | `created_transaction_id`, `endpoint_id`, `failure_reason`, `id`, `payload`, `processed_at`, `received_at`, `reference_code`, `sepay_event_id`, `status`, `transaction_date`, `transfer_amount`, `transfer_type`, `wallet_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql#L118) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103100_add_sepay_integration_tables.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422103400_harden_sepay_disconnect_and_workspace_consistency.sql) |
| `public.shortened_links` | System and configuration | `created_at`, `creator_id`, `domain`, `id`, `link`, `password_hash`, `password_hint`, `slug`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250630113626_add_link_shortener.sql#L9) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712162105_add_shorten_link_ws_id.sql#L50); [public: public INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712162105_add_shorten_link_ws_id.sql#L42); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250712162105_add_shorten_link_ws_id.sql#L22); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250630113626_add_link_shortener.sql#L59); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250630113626_add_link_shortener.sql#L57) |
| `public.support_inquiries` | System and configuration | `created_at`, `creator_id`, `email`, `id`, `images`, `is_read`, `is_resolved`, `message`, `name`, `product`, `subject`, `type` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241226071736_add_support_inquiries.sql#L13) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250823172114_support_inquiries_enhancements.sql#L101); [public: public INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241226071736_add_support_inquiries.sql#L70); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241226071736_add_support_inquiries.sql#L61); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241226071736_add_support_inquiries.sql#L59); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241226071736_add_support_inquiries.sql#L57) |
| `public.task_assignees` | Tasks | `created_at`, `task_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1129) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811162209_change_task_rls.sql#L3); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L677); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1055); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2222); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2221) |
| `public.task_board_public_links` | Tasks | `board_id`, `code`, `created_at`, `created_by_user_id`, `disabled_at`, `disabled_by_user_id`, `enabled`, `id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260621171500_add_task_board_public_links.sql#L54) public: enable; [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260621171500_add_task_board_public_links.sql#L59); [public: REVOKE ALL PRIVILEGES authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260621171500_add_task_board_public_links.sql#L58); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260621171500_add_task_board_public_links.sql) |
| `public.task_board_shares` | Tasks | `board_id`, `created_at`, `id`, `permission`, `shared_by_user_id`, `shared_with_email`, `shared_with_user_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260530120000_add_task_board_shares.sql#L78) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260530120000_add_task_board_shares.sql#L115); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260530120000_add_task_board_shares.sql#L108); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260530120000_add_task_board_shares.sql#L99); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260601005227_revoke_task_board_share_direct_access.sql#L7); [public: REVOKE ALL PRIVILEGES authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260601005227_revoke_task_board_share_direct_access.sql#L6) |
| `public.task_board_status_templates` | Tasks | `created_at`, `description`, `id`, `is_default`, `name`, `statuses`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250608140008_add_task_statuses.sql#L165) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250608140008_add_task_statuses.sql#L172); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250608140008_add_task_statuses.sql#L168) |
| `public.task_calendar_events` | Calendar and time | `completed`, `created_at`, `event_id`, `id`, `scheduled_minutes`, `scheduling_reason`, `task_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110001_add_task_calendar_events.sql#L25) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110001_add_task_calendar_events.sql#L82); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110001_add_task_calendar_events.sql#L64); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110001_add_task_calendar_events.sql#L46) |
| `public.task_capacity_rule_labels` | Tasks | `label_id`, `rule_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L49) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L54); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql) |
| `public.task_capacity_rule_lists` | Tasks | `list_id`, `rule_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L48) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L53); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql) |
| `public.task_capacity_rule_projects` | Tasks | `project_id`, `rule_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L50) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L55); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql) |
| `public.task_capacity_rules` | Tasks | `board_id`, `counting_mode`, `created_at`, `created_by`, `disabled_reason`, `enabled`, `enforcement`, `id`, `label_match_mode`, `limit_value`, `metric`, `name`, `project_match_mode`, `updated_at`, `updated_by` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L47) public: enable; [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql#L52); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260805160000_add_task_capacity_rules.sql) |
| `public.task_cycle_tasks` | Tasks | `created_at`, `cycle_id`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L29) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L94); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L85); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L105) |
| `public.task_cycles` | Tasks | `archived`, `created_at`, `creator_id`, `deleted`, `description`, `end_date`, `id`, `name`, `start_date`, `status`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L20) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L76); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L68); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L60); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929060000_add_task_cycles.sql#L104) |
| `public.task_drafts` | Tasks | `assignee_ids`, `board_id`, `created_at`, `creator_id`, `description`, `end_date`, `estimation_points`, `id`, `label_ids`, `list_id`, `name`, `priority`, `project_ids`, `start_date`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260207000000_add_task_drafts.sql#L22) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260207000000_add_task_drafts.sql#L25) |
| `public.task_history` | Tasks | `change_type`, `changed_at`, `changed_by`, `deleted_at`, `field_name`, `id`, `metadata`, `new_value`, `old_value`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200012_create_task_history_table.sql#L59) public: enable; [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206100000_fix_task_history_fk_and_add_rpc.sql#L16); [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200012_create_task_history_table.sql#L90); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108200012_create_task_history_table.sql#L84) |
| `public.task_initiatives` | Tasks | `archived`, `created_at`, `creator_id`, `deleted`, `description`, `id`, `name`, `status`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L51) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L195); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L187); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L179); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L243) |
| `public.task_labels` | Tasks | `label_id`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L159) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L171); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L166); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L161); [public: GRANT SELECT, INSERT, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L178); [public: GRANT SELECT, INSERT, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L177) |
| `public.task_leaderboard_members` | Tasks | `created_at`, `display_name`, `id`, `joined_by`, `leaderboard_id`, `status`, `team_id`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L264) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L388); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L374); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L451); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L443) |
| `public.task_leaderboard_teams` | Tasks | `color`, `created_at`, `created_by`, `id`, `leaderboard_id`, `name`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L263) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L351); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L337); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L450); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L442) |
| `public.task_leaderboards` | Tasks | `archived_at`, `created_at`, `created_by`, `description`, `id`, `join_code`, `metric_id`, `name`, `period_end`, `period_start`, `starred`, `status`, `updated_at`, `visibility`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L262) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L326); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L319); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L449); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L441) |
| `public.task_lists` | Tasks | `archived`, `board_id`, `color`, `created_at`, `creator_id`, `deleted`, `id`, `name`, `position`, `status` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1147) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L909); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2249); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2248) |
| `public.task_plan_items` | Tasks | `created_at`, `created_by_user_id`, `id`, `notes`, `plan_id`, `planned_end`, `planned_start`, `snapshot_title`, `sort_key`, `status`, `target_board_id`, `target_list_id`, `target_ws_id`, `task_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L241) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L346); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L329); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L312); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L425); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L420) |
| `public.task_plan_shares` | Tasks | `created_at`, `id`, `permission`, `plan_id`, `shared_by_user_id`, `shared_with_email`, `shared_with_user_id`, `shared_with_ws_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L242) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L405); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L379); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L360); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L426); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L421) |
| `public.task_plan_workspaces` | Tasks | `added_by_user_id`, `created_at`, `plan_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L240) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L298); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L287); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L280); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L424); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L419) |
| `public.task_plans` | Tasks | `archived_at`, `created_at`, `default_target_board_id`, `default_target_list_id`, `default_target_ws_id`, `id`, `owner_id`, `period_end`, `period_start`, `period_type`, `personal_ws_id`, `status`, `timezone`, `title`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L239) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L273); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L265); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L255); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L423); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260622090000_add_shareable_task_plans.sql#L418) |
| `public.task_profile_progress_settings` | Tasks | `created_at`, `display_name`, `show_goals`, `show_leaderboards`, `show_progress`, `updated_at`, `user_id`, `visibility`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L265) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L425); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L411); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L452); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L444) |
| `public.task_progress_achievements` | Tasks | `category`, `code`, `created_at`, `criteria`, `description`, `icon`, `id`, `name`, `sort_order`, `tier`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L95) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L101); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L143); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L139) |
| `public.task_progress_entries` | Tasks | `board_id`, `created_at`, `created_by`, `deleted_at`, `entry_date`, `id`, `list_id`, `metric_id`, `mode`, `note`, `project_id`, `source_id`, `source_type`, `tags`, `task_id`, `updated_at`, `value`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L260) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L290); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L283); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L447); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L439) |
| `public.task_progress_goals` | Tasks | `archived_at`, `board_id`, `created_at`, `description`, `goal_type`, `habit_frequency`, `habit_target_count`, `habit_threshold`, `id`, `metric_id`, `name`, `owner_id`, `period_end`, `period_start`, `project_id`, `recurrence`, `starred`, `status`, `tags`, `target_value`, `task_id`, `updated_at`, `visibility`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L261) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L308); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L301); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L448); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L440) |
| `public.task_progress_metrics` | Tasks | `aggregation`, `archived_at`, `created_at`, `created_by`, `description`, `id`, `is_default`, `name`, `unit_kind`, `unit_label`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L259) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L275); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L268); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L446); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260625113400_add_task_progress_parity.sql#L438) |
| `public.task_progress_user_achievements` | Tasks | `achievement_code`, `created_at`, `id`, `progress`, `unlocked_at`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L96) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L117); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L110); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L144); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L140) |
| `public.task_progress_user_stats` | Tasks | `created_at`, `last_milestone_at`, `level`, `streak_freezes`, `updated_at`, `user_id`, `ws_id`, `xp` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L97) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L132); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L125); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L145); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260716173718_task_progress_upgrade.sql#L141) |
| `public.task_project_initiatives` | Tasks | `created_at`, `initiative_id`, `project_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L61) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L213); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L204); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L244) |
| `public.task_project_tasks` | Tasks | `created_at`, `project_id`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L71) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903074200_require_manage_projects_for_task_project_links.sql#L64); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903074200_require_manage_projects_for_task_project_links.sql#L28); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903074200_require_manage_projects_for_task_project_links.sql#L4); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L245) |
| `public.task_project_update_attachments` | Tasks | `created_at`, `deleted_at`, `file_name`, `file_path`, `file_size`, `id`, `mime_type`, `update_id`, `uploaded_by` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031655_create_project_updates_tables.sql#L110) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L277); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L258); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L240) |
| `public.task_project_update_comments` | Tasks | `content`, `created_at`, `deleted_at`, `id`, `parent_id`, `update_id`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031655_create_project_updates_tables.sql#L75) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L218); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L185); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L166) |
| `public.task_project_update_reactions` | Tasks | `created_at`, `emoji`, `id`, `update_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031655_create_project_updates_tables.sql#L51) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L125); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L106); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L88) |
| `public.task_project_updates` | Tasks | `content`, `created_at`, `creator_id`, `deleted_at`, `id`, `project_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031655_create_project_updates_tables.sql#L18) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L68); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L41); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022031742_add_project_updates_rls_policies.sql#L25) |
| `public.task_projects` | Tasks | `archived`, `created_at`, `creator_id`, `deleted`, `description`, `description_yjs_state`, `end_date`, `health_status`, `id`, `lead_id`, `name`, `priority`, `start_date`, `status`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L34) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L162); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L154); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L146); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250929042000_add_notes.sql#L242) |
| `public.task_relationships` | Tasks | `created_at`, `created_by`, `id`, `source_task_id`, `target_task_id`, `type` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127051421_task_parent_children.sql#L247) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903072500_authorize_task_relationship_mutations.sql#L111); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903072500_authorize_task_relationship_mutations.sql#L46); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903072500_authorize_task_relationship_mutations.sql#L11) |
| `public.task_share_link_uses` | Tasks | `accessed_at`, `id`, `share_link_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L92) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L255); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L242); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L383); [public: GRANT SELECT, INSERT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L379) |
| `public.task_share_links` | Tasks | `code`, `created_at`, `created_by_user_id`, `id`, `permission`, `public_access`, `requires_invite`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L91) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107204000_task_share_links_single_link.sql#L77); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L231); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L223); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L382); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L378) |
| `public.task_shares` | Tasks | `created_at`, `id`, `permission`, `shared_by_user_id`, `shared_with_email`, `shared_with_user_id`, `task_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L90) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L190); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L182); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L171); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L381); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107201826_task_sharing.sql#L377) |
| `public.task_templates` | Tasks | `archived_at`, `assignee_ids`, `created_at`, `created_by`, `default_board_id`, `default_list_id`, `description`, `description_yjs_state`, `end_date`, `estimation_points`, `id`, `label_ids`, `name`, `priority`, `project_ids`, `slug`, `source_task_id`, `start_date`, `task_name`, `updated_at`, `visibility`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L49) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L257); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L250); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L236); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L264); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260629153000_add_task_templates.sql#L263) |
| `public.task_user_override_labels` | Tasks | `created_at`, `label_id`, `task_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L41) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L72); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L54); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L46); [public: GRANT DELETE, INSERT, REFERENCES, SELECT, TRIGGER, TRUNCATE, UPDATE anon, authenticated, service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L112) |
| `public.task_user_override_projects` | Tasks | `created_at`, `project_id`, `task_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L42) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L106); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L88); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L80); [public: GRANT DELETE, INSERT, REFERENCES, SELECT, TRIGGER, TRUNCATE, UPDATE anon, authenticated, service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506230000_add_personal_task_overlay_relations.sql#L116) |
| `public.task_user_overrides` | Tasks | `completed_at`, `created_at`, `due_date_override`, `estimation_override`, `notes`, `personal_added_at`, `personal_board_id`, `personal_list_id`, `personal_placed_at`, `personal_sort_key`, `personally_unassigned`, `priority_override`, `self_managed`, `task_id`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L54) public: enable; [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506215000_add_personal_task_board_placements.sql#L92); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260506215000_add_personal_task_board_placements.sql#L77); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L83) |
| `public.task_user_scheduling_settings` | Tasks | `auto_schedule`, `calendar_hours`, `created_at`, `is_splittable`, `max_split_duration_minutes`, `min_split_duration_minutes`, `task_id`, `total_duration`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251213190000_add_task_user_scheduling_settings.sql#L34) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251213190000_add_task_user_scheduling_settings.sql#L64); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251213190000_add_task_user_scheduling_settings.sql#L55); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251213190000_add_task_user_scheduling_settings.sql#L47) |
| `public.task_watchers` | Tasks | `created_at`, `id`, `task_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120000_add_task_watchers.sql#L18) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120000_add_task_watchers.sql#L48); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120000_add_task_watchers.sql#L34); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120000_add_task_watchers.sql#L21) |
| `public.tasks` | Tasks | `board_id`, `closed_at`, `completed`, `completed_at`, `created_at`, `creator_id`, `deleted_at`, `description`, `description_yjs_state`, `display_number`, `embedding`, `end_date`, `estimation_points`, `fts`, `id`, `list_id`, `name`, `priority`, `sort_key`, `start_date` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1153) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024024000_scope_list_less_tasks_to_creator.sql#L5); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2258); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2257) |
| `public.time_tracking_breaks` | Calendar and time | `break_duration_seconds`, `break_end`, `break_start`, `break_type_id`, `break_type_name`, `created_at`, `created_by`, `id`, `notes`, `session_id`, `updated_at` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L160) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L196); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L190); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L177) |
| `public.time_tracking_categories` | Calendar and time | `color`, `created_at`, `description`, `id`, `name`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L46) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L93); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L85) |
| `public.time_tracking_goals` | Calendar and time | `category_id`, `created_at`, `daily_goal_minutes`, `id`, `is_active`, `updated_at`, `user_id`, `weekly_goal_minutes`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L48) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250606070747_remote_schema.sql#L139); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L143) |
| `public.time_tracking_sessions` | Calendar and time | `category_id`, `created_at`, `date`, `description`, `duration_seconds`, `end_time`, `id`, `is_running`, `parent_session_id`, `pending_approval`, `productivity_score`, `start_time`, `tags`, `task_id`, `title`, `updated_at`, `user_id`, `was_resumed`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250601132359_add_time_tracking.sql#L47) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251223164642_sessions_rls_modification.sql#L10); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250828120000_add_time_editing_restrictions.sql#L85); [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250828120000_add_time_editing_restrictions.sql#L73) |
| `public.transaction_categories` | Finance and commerce | `color`, `created_at`, `description`, `icon`, `id`, `is_expense`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L95) |
| `public.transaction_tags` | Finance and commerce | `color`, `created_at`, `description`, `id`, `name`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L26) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L63); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L52); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L41) |
| `public.tulearn_gamification_events` | Education | `created_at`, `id`, `idempotency_key`, `metadata`, `source_id`, `source_type`, `user_id`, `ws_id`, `xp` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L92) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L125); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L157); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L152) |
| `public.tulearn_learner_state` | Education | `created_at`, `current_streak`, `hearts`, `last_activity_date`, `last_heart_refill_at`, `longest_streak`, `max_hearts`, `preferences`, `selected_workspace_id`, `streak_freezes`, `updated_at`, `user_id`, `ws_id`, `xp_total` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L93) public: enable; [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260603062911_harden_tulearn_learner_state_rls.sql#L47); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260603062911_harden_tulearn_learner_state_rls.sql#L24); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260603062911_harden_tulearn_learner_state_rls.sql#L10); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L158); [public: GRANT SELECT, INSERT, UPDATE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L153) |
| `public.tulearn_parent_invites` | Education | `accepted_at`, `created_at`, `expires_at`, `id`, `invited_by`, `parent_email`, `parent_user_id`, `revoked_at`, `status`, `student_workspace_user_id`, `token_hash`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L91) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L110); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L156); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L151) |
| `public.tulearn_parent_student_links` | Education | `accepted_at`, `created_at`, `created_by`, `id`, `parent_user_id`, `revoked_at`, `status`, `student_platform_user_id`, `student_workspace_user_id`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L90) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L95); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L155); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504100000_add_tulearn_learner_app.sql#L150) |
| `public.user_board_list_overrides` | Tasks | `board_id`, `created_at`, `id`, `list_id`, `notes`, `personal_status`, `scope_type`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L133) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L162); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L153); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260212163900_add_task_user_overrides.sql#L145) |
| `public.user_configs` | Identity | `created_at`, `id`, `updated_at`, `user_id`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260127081800_add_user_configs.sql#L18) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260127081800_add_user_configs.sql#L21) |
| `public.user_feedbacks` | Identity | `content`, `created_at`, `creator_id`, `group_id`, `id`, `require_attention`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L10) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L92) |
| `public.user_group_attendance` | Contacts and workforce | `created_at`, `date`, `group_id`, `id`, `notes`, `session_id`, `status`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L19) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L127) |
| `public.user_group_linked_products` | Contacts and workforce | `created_at`, `group_id`, `product_id`, `unit_id`, `warehouse_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L26) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230918111058_add_temp_tables_for_migration.sql#L162) |
| `public.user_group_metrics` | Contacts and workforce | `created_at`, `factor`, `group_id`, `id`, `is_weighted`, `name`, `unit`, `ws_id` | [public: REVOKE INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260519104313_restrict_user_group_metric_table_writes.sql#L1); [public: GRANT ALL PRIVILEGES service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260503154000_regrant_user_group_metric_tables.sql#L5); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260503110000_rename_group_metric_tables.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260930110000_user_group_activity_anchor_extraction.sql) |
| `public.user_indicators` | Contacts and workforce | `created_at`, `creator_id`, `indicator_id`, `user_id`, `value` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L29) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250917103843_group_metrics.sql#L91); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L172); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L170) |
| `public.user_private_details` | Identity | `birthday`, `default_workspace_id`, `deleted`, `email`, `fade_completed_tasks`, `first_day_of_week`, `full_name`, `new_email`, `services`, `task_auto_assign_to_self`, `time_format`, `timezone`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230421063238_add_user_private_details_protected_table.sql#L6) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518133139_use_user_profile_shared_workspace_helper.sql#L51); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230422060822_enable_update_for_user_private_details.sql#L1) |
| `public.user_suspensions` | Security | `created_at`, `expires_at`, `id`, `lifted_at`, `lifted_by`, `metadata`, `reason`, `suspended_at`, `suspended_by`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260217110000_add_user_suspensions.sql#L36) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260217110000_add_user_suspensions.sql#L69); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260217110000_add_user_suspensions.sql#L58); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260217110000_add_user_suspensions.sql#L48) |
| `public.user_workspace_configs` | Identity | `created_at`, `id`, `updated_at`, `user_id`, `value`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504120000_add_user_workspace_configs.sql#L16) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260504120000_add_user_workspace_configs.sql#L18) |
| `public.users` | Identity | `avatar_url`, `banner_url`, `bio`, `created_at`, `display_name`, `handle`, `id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1177) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260518133139_use_user_profile_shared_workspace_helper.sql#L34); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L678); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L1080); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2294); [public: GRANT ALL authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230202082703_remote_commit.sql#L2293) |
| `public.vietnamese_holidays` | System and configuration | `created_at`, `date`, `id`, `name`, `year` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L60) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L185); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L175); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L165) |
| `public.wallet_interest_configs` | Finance and commerce | `created_at`, `enabled`, `id`, `last_calculated_at`, `last_interest_amount`, `provider`, `total_interest_earned`, `tracking_end_date`, `tracking_start_date`, `updated_at`, `wallet_id`, `zalopay_tier` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L58) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L97); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L86); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L75) |
| `public.wallet_interest_rates` | Finance and commerce | `annual_rate`, `config_id`, `created_at`, `effective_from`, `effective_to`, `id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L59) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L146); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L134); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260130230000_add_wallet_interest_support.sql#L122) |
| `public.wallet_transaction_tags` | Finance and commerce | `created_at`, `tag_id`, `transaction_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L27) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L103); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L89); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251005000002_add_transaction_tags.sql#L75) |
| `public.wallet_transactions` | Finance and commerce | `amount`, `category_id`, `created_at`, `creator_id`, `description`, `id`, `invoice_id`, `is_amount_confidential`, `is_category_confidential`, `is_description_confidential`, `platform_creator_id`, `report_opt_in`, `taken_at`, `wallet_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330084328_rename_projects_to_teams.sql#L112) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108125450_add_confidential_transaction_support.sql#L261); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108125450_add_confidential_transaction_support.sql#L228); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251108125450_add_confidential_transaction_support.sql#L204) |
| `public.wallet_types` | Finance and commerce | `id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230422074758_add_credit_wallets_and_currencies.sql#L13) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230422074758_add_credit_wallets_and_currencies.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230428060550_add_initial_audit_tracking.sql) |
| `public.workforce_benefits` | Finance and commerce | `amount`, `benefit_type`, `contract_id`, `created_at`, `currency`, `effective_from`, `effective_until`, `id`, `is_recurring`, `name`, `notes`, `recurrence_period`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L284) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L366); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L357); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L351) |
| `public.workforce_compensation` | Finance and commerce | `base_hourly_rate`, `base_salary_annual`, `base_salary_monthly`, `contract_id`, `created_at`, `currency`, `effective_from`, `effective_until`, `id`, `insurance_salary`, `overtime_multiplier_daily`, `overtime_multiplier_holiday`, `overtime_multiplier_weekend`, `overtime_threshold_daily_hours`, `payment_frequency`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L283) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L338); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L329); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L323) |
| `public.workforce_contracts` | Finance and commerce | `contract_type`, `created_at`, `created_by`, `department`, `employment_status`, `end_date`, `file_url`, `id`, `job_title`, `notes`, `start_date`, `updated_at`, `user_id`, `working_location`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L282) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L441); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L310); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107193514_add_workforce_tables.sql#L301) |
| `public.workspace_ai_credit_balances` | AI and memory | `bonus_credits`, `created_at`, `id`, `period_end`, `period_start`, `total_allocated`, `total_used`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql#L79) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214130000_revise_ai_credit_allocation.sql#L64) |
| `public.workspace_ai_executions` | AI and memory | `api_key_id`, `created_at`, `finish_reason`, `id`, `input`, `input_tokens`, `model_id`, `output`, `output_tokens`, `reasoning_tokens`, `system_prompt`, `total_tokens`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250730081546_add_workspace_ai_executions.sql#L20) public: enable; [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250730081546_add_workspace_ai_executions.sql#L80); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250730081546_add_workspace_ai_executions.sql#L78); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250730081546_add_workspace_ai_executions.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260214120000_add_ai_credit_system.sql) |
| `public.workspace_ai_models` | AI and memory | `created_at`, `description`, `id`, `name`, `updated_at`, `url`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L11) public: enable; [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L173); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L171); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql) |
| `public.workspace_ai_prompts` | AI and memory | `created_at`, `creator_id`, `id`, `input`, `model`, `name`, `output`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240501103626_add_ws_ai_prompts.sql#L13) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240501103626_add_ws_ai_prompts.sql#L83); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240501103626_add_ws_ai_prompts.sql#L71); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240501103626_add_ws_ai_prompts.sql#L69) |
| `public.workspace_api_key_usage_logs` | Analytics | `api_key_id`, `created_at`, `endpoint`, `error_message`, `id`, `ip_address`, `method`, `request_params`, `response_time_ms`, `status_code`, `user_agent`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251023193610_add_workspace_api_key_usage_logs.sql#L38) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251023193610_add_workspace_api_key_usage_logs.sql#L80); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251023193610_add_workspace_api_key_usage_logs.sql#L41) |
| `public.workspace_api_keys` | System and configuration | `created_at`, `created_by`, `description`, `expires_at`, `id`, `key_hash`, `key_prefix`, `last_used_at`, `name`, `role_id`, `scopes`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L516) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022040001_enhance_workspace_api_keys.sql#L247); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022040001_enhance_workspace_api_keys.sql#L175); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251022040001_enhance_workspace_api_keys.sql#L136); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L566); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L564) |
| `public.workspace_boards` | Tasks | `allow_zero_estimates`, `archived_at`, `count_unestimated_issues`, `created_at`, `creator_id`, `default_closed_list_id`, `default_done_list_id`, `default_list_id`, `deleted_at`, `estimation_type`, `extended_estimation`, `icon`, `id`, `name`, `next_task_number`, `template_id`, `ticket_prefix`, `ws_id` | [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L680); [public: public ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330084328_rename_projects_to_teams.sql#L130) |
| `public.workspace_break_types` | System and configuration | `color`, `created_at`, `description`, `icon`, `id`, `is_default`, `name`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L57) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L93); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L82); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251219150209_break_tracking.sql#L71) |
| `public.workspace_calendar_categories` | Calendar and time | `color`, `created_at`, `id`, `name`, `position`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204165723_add_workspace_calendar_categories.sql#L15) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204165723_add_workspace_calendar_categories.sql#L82); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204165723_add_workspace_calendar_categories.sql#L66); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251204165723_add_workspace_calendar_categories.sql#L56) |
| `public.workspace_calendar_events` | Calendar and time | `color`, `created_at`, `description`, `end_at`, `external_calendar_id`, `external_event_id`, `external_updated_at`, `google_calendar_id`, `google_event_id`, `id`, `is_encrypted`, `last_synced_at`, `location`, `locked`, `provider`, `scheduling_metadata`, `scheduling_source`, `source_calendar_id`, `start_at`, `sync_error`, `sync_status`, `task_id`, `title`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230517144534_add_ws_calendar_events.sql#L24) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903083000_enforce_calendar_event_permission.sql#L80); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903083000_enforce_calendar_event_permission.sql#L49); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260903083000_enforce_calendar_event_permission.sql#L31) |
| `public.workspace_calendar_hour_settings` | Calendar and time | `created_at`, `data`, `type`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250501090814_add_calendar_hour_settings.sql#L11) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250501090814_add_calendar_hour_settings.sql#L63); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250501090814_add_calendar_hour_settings.sql#L61); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250501090814_add_calendar_hour_settings.sql#L59) |
| `public.workspace_calendar_sync_coordination` | Calendar and time | `created_at`, `last_upsert`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250616000000_add_calendar_sync_coordination.sql#L19) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250616000000_add_calendar_sync_coordination.sql#L22) |
| `public.workspace_chat_channels` | Chat | `created_at`, `created_by`, `description`, `id`, `is_private`, `name`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L42) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L69); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L65); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L56) |
| `public.workspace_chat_messages` | Chat | `channel_id`, `content`, `created_at`, `deleted_at`, `id`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261024023000_harden_definer_function_grants.sql#L127) public: enable; [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L228); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L186); [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L129) |
| `public.workspace_chat_participants` | Chat | `channel_id`, `id`, `joined_at`, `last_read_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L43) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L304); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L290); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003144301_create_realtime_chat_tables.sql#L276) |
| `public.workspace_chat_typing_indicators` | Chat | `channel_id`, `id`, `updated_at`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003161231_create_typing_indicator_table.sql#L15) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003161231_create_typing_indicator_table.sql#L51); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003161231_create_typing_indicator_table.sql#L46); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251003161231_create_typing_indicator_table.sql#L32) |
| `public.workspace_configs` | System and configuration | `created_at`, `id`, `updated_at`, `value`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240606112211_add_workspace_configs.sql#L10) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121064914_settings_configs_rls.sql#L6); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L394); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240606112211_add_workspace_configs.sql#L60); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240606112211_add_workspace_configs.sql#L58) |
| `public.workspace_course_module_groups` | Education | `color`, `created_at`, `group_id`, `icon`, `id`, `sort_key`, `title` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260428113000_add_workspace_course_module_groups.sql#L27) public: enable; Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260428113000_add_workspace_course_module_groups.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260930110000_user_group_activity_anchor_extraction.sql) |
| `public.workspace_course_modules` | Education | `content`, `created_at`, `extra_content`, `group_id`, `id`, `is_public`, `is_published`, `is_quiz_score_published`, `module_group_id`, `name`, `quiz_deadline`, `sort_key`, `vocabulary`, `youtube_links` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L22) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422090000_migrate_courses_to_user_groups.sql#L74); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L160); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L158) |
| `public.workspace_credit_pack_purchases` | AI and memory | `created_at`, `credit_pack_id`, `expires_at`, `granted_at`, `id`, `polar_subscription_id`, `status`, `tokens_granted`, `tokens_remaining`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260227190000_add_workspace_credit_packs.sql#L74) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260227190000_add_workspace_credit_packs.sql#L77); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260227190000_add_workspace_credit_packs.sql#L126); [public: GRANT SELECT service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260227190000_add_workspace_credit_packs.sql#L122) |
| `public.workspace_cron_executions` | Operations | `created_at`, `cron_run_id`, `duration_ms`, `end_time`, `endpoint_url`, `error`, `http_status`, `id`, `job_id`, `response`, `source`, `start_time`, `status` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L368) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250105083033_add_cron_job_rls.sql#L1); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L452); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L450) |
| `public.workspace_cron_jobs` | Operations | `active`, `created_at`, `cron_job_id`, `dataset_id`, `endpoint_url`, `external_app_id`, `external_job_key`, `failure_count`, `headers_config`, `http_method`, `id`, `last_run_at`, `last_status`, `locked_at`, `locked_by`, `name`, `next_run_at`, `retry_count`, `schedule`, `schedule_timezone`, `timeout_ms`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L24) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250105083033_add_cron_job_rls.sql#L14); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L233); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L231) |
| `public.workspace_dataset_cells` | Content and CMS | `column_id`, `created_at`, `data`, `dataset_id`, `id`, `row_id` | Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250109032020_handle_dataset_row_duplicates.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250109034016_handle_dataset_row_invoker_permissions.sql) |
| `public.workspace_dataset_columns` | Content and CMS | `alias`, `created_at`, `dataset_id`, `description`, `id`, `name` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L35) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L798); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L293); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L291) |
| `public.workspace_dataset_rows` | Content and CMS | `created_at`, `dataset_id`, `id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L556) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L822); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L746); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L744) |
| `public.workspace_datasets` | Content and CMS | `created_at`, `description`, `id`, `name`, `url`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L46) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L846); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L353); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241230065005_add_aiml_related_tables.sql#L351) |
| `public.workspace_default_included_user_groups` | System and configuration | `created_at`, `group_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401013000_store_default_included_groups_in_join_table.sql#L11) public: enable; [public: GRANT DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401013000_store_default_included_groups_in_join_table.sql#L21); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401013000_store_default_included_groups_in_join_table.sql#L20); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401013000_store_default_included_groups_in_join_table.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260930110000_user_group_activity_anchor_extraction.sql) |
| `public.workspace_default_permissions` | System and configuration | `created_at`, `enabled`, `member_type`, `permission`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L9) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L365); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240713130157_allow_workspace_users_to_view_permissions.sql#L1); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L80); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L78) |
| `public.workspace_documents` | Content and CMS | `content`, `created_at`, `id`, `is_public`, `legacy_content`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241024135555_add_document_rls.sql#L1) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241024135555_add_document_rls.sql#L3) |
| `public.workspace_email_credentials` | Mail and delivery | `access_id`, `access_key`, `created_at`, `id`, `region`, `source_email`, `source_name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250315194934_add_ws_email_credentials.sql#L13) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250315194934_add_ws_email_credentials.sql#L65); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250315194934_add_ws_email_credentials.sql#L63); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250315194934_add_ws_email_credentials.sql#L61) |
| `public.workspace_email_invite_roles` | Identity | `created_at`, `email`, `role_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L33) public: enable; [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L38); [public: REVOKE ALL PUBLIC, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L36); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql) |
| `public.workspace_email_invites` | Identity | `created_at`, `email`, `invited_by`, `role_id`, `type`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240530073059_invite_to_workspace_with_email.sql#L9) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204100000_enforce_seat_limits.sql#L73); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L297); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240912051258_ensure_email_lowercased_in_rls.sql#L99); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240530073059_invite_to_workspace_with_email.sql#L104); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240530073059_invite_to_workspace_with_email.sql#L102) |
| `public.workspace_encryption_keys` | System and configuration | `created_at`, `encrypted_key`, `id`, `key_version`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251214174704_add_workspace_encryption_keys.sql#L15) public: enable; [public: service\_role ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251214174704_add_workspace_encryption_keys.sql#L23) |
| `public.workspace_external_project_assets` | Content and CMS | `alt_text`, `asset_type`, `block_id`, `created_at`, `created_by`, `entry_id`, `id`, `metadata`, `sort_order`, `source_url`, `stable_source_id`, `storage_path`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L228) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L472); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L466); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L550) |
| `public.workspace_external_project_binding_audits` | Content and CMS | `actor_user_id`, `changed_at`, `destination_ws_id`, `id`, `next_canonical_id`, `previous_canonical_id`, `source_ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L224) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L421); [public: GRANT SELECT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L534) |
| `public.workspace_external_project_bindings` | Content and CMS | `canonical_project_id`, `created_at`, `created_by`, `is_enabled`, `settings`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160600_external_project_bindings_table.sql#L29) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160600_external_project_bindings_table.sql#L41); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160600_external_project_bindings_table.sql#L33); [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260708120900_add_richfield_external_project_adapter.sql#L4); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160600_external_project_bindings_table.sql#L48) |
| `public.workspace_external_project_blocks` | Content and CMS | `block_type`, `content`, `created_at`, `created_by`, `entry_id`, `id`, `sort_order`, `stable_source_id`, `title`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L227) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L459); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L453); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L546) |
| `public.workspace_external_project_collections` | Content and CMS | `collection_type`, `config`, `created_at`, `created_by`, `description`, `id`, `is_enabled`, `slug`, `title`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L225) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L433); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L427); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L538) |
| `public.workspace_external_project_entries` | Content and CMS | `collection_id`, `created_at`, `created_by`, `id`, `metadata`, `profile_data`, `published_at`, `scheduled_for`, `slug`, `sort_order`, `source_adapter`, `stable_source_id`, `status`, `subtitle`, `summary`, `title`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L226) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L446); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L440); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L542) |
| `public.workspace_external_project_entry_placements` | Content and CMS | `created_at`, `created_by`, `entry_id`, `id`, `metadata`, `placement_key`, `sort_order`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160800_external_project_entry_placements.sql#L36) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160800_external_project_entry_placements.sql#L45); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160800_external_project_entry_placements.sql#L39); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160800_external_project_entry_placements.sql#L52) |
| `public.workspace_external_project_entry_relations` | Content and CMS | `created_at`, `from_entry_id`, `id`, `metadata`, `relation_definition_id`, `relation_type`, `sort_order`, `to_entry_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L230) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L498); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L492); [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717060430_grant_external_project_relations_service_role.sql#L9); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L558) |
| `public.workspace_external_project_entry_taxonomy_assignments` | Content and CMS | `assignment_type`, `created_at`, `created_by`, `entry_id`, `id`, `sort_order`, `taxonomy_id`, `value`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160700_external_project_entry_taxonomy_assignments.sql#L41) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160700_external_project_entry_taxonomy_assignments.sql#L50); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160700_external_project_entry_taxonomy_assignments.sql#L44); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260614160700_external_project_entry_taxonomy_assignments.sql#L57) |
| `public.workspace_external_project_field_definitions` | Content and CMS | `collection_id`, `created_at`, `created_by`, `default_value`, `description`, `field_scope`, `field_type`, `id`, `is_enabled`, `is_required`, `key`, `label`, `options`, `sort_order`, `source`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517204500_add_external_project_field_definitions.sql#L78) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517204500_add_external_project_field_definitions.sql#L87); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517204500_add_external_project_field_definitions.sql#L81); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260517204500_add_external_project_field_definitions.sql#L94) |
| `public.workspace_external_project_import_jobs` | Content and CMS | `adapter`, `canonical_external_project_id`, `completed_at`, `created_at`, `id`, `report`, `requested_by`, `source_reference`, `started_at`, `status`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L231) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L511); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L505); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L562) |
| `public.workspace_external_project_publish_events` | Content and CMS | `canonical_external_project_id`, `created_at`, `entry_id`, `event_kind`, `id`, `payload`, `profile_data`, `triggered_by`, `visibility_scope`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L232) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L524); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L518); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L566) |
| `public.workspace_external_project_relation_definition_targets` | Content and CMS | `created_at`, `id`, `relation_definition_id`, `target_collection_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L95) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L114); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L109); [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717060430_grant_external_project_relations_service_role.sql#L5); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L123) |
| `public.workspace_external_project_relation_definitions` | Content and CMS | `cardinality`, `created_at`, `created_by`, `id`, `inverse_label`, `is_required`, `key`, `label`, `sort_order`, `source_collection_id`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L93) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L103); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L98); [public: GRANT SELECT, INSERT, UPDATE, DELETE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717060430_grant_external_project_relations_service_role.sql#L1); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260717010000_external_project_relations_and_entry_bundles.sql#L120) |
| `public.workspace_external_project_taxonomies` | Content and CMS | `created_at`, `created_by`, `id`, `label`, `metadata`, `slug`, `taxonomy_type`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L229) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L485); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L479); [public: GRANT SELECT, INSERT, UPDATE, DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260401190000_external_project_studio.sql#L554) |
| `public.workspace_flashcards` | Education | `back`, `created_at`, `front`, `id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L43) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023075429_handle_education_rls.sql#L76); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L244); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L242) |
| `public.workspace_guest_permissions` | Identity | `created_at`, `enable`, `guest_id`, `id`, `permission`, `resource_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L93) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L301); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L253); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L226); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L157); [public: GRANT SELECT service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L156) |
| `public.workspace_guests` | Identity | `created_at`, `id`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L25) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L210); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L198); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L189); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L81); [public: GRANT SELECT service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260422091500_add_workspace_guest_permissions.sql#L80) |
| `public.workspace_habit_tracker_entries` | System and configuration | `created_at`, `created_by`, `entry_date`, `entry_kind`, `id`, `note`, `occurred_at`, `primary_value`, `tags`, `tracker_id`, `updated_at`, `user_id`, `values`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L112) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L192); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L181); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L170); [public: REVOKE INSERT, UPDATE, DELETE public, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616002445_harden_habit_tracker_write_rls.sql#L32) |
| `public.workspace_habit_tracker_streak_actions` | System and configuration | `action_type`, `created_at`, `created_by`, `id`, `note`, `period_end`, `period_start`, `tracker_id`, `updated_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L113) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L236); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L225); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L214); [public: REVOKE INSERT, UPDATE, DELETE public, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616002445_harden_habit_tracker_write_rls.sql#L36) |
| `public.workspace_habit_tracker_entry_receipts` | System and configuration | `created_at`, `entry_id`, `idempotency_key`, `request_hash`, `tracker_id`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261025125800_add_habit_tracker_entry_receipts.sql#L35) public: enable; [public: GRANT SELECT, INSERT, UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261025125800_add_habit_tracker_entry_receipts.sql#L40); [public: REVOKE ALL public, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261025125800_add_habit_tracker_entry_receipts.sql#L38); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261025125800_add_habit_tracker_entry_receipts.sql) |
| `public.workspace_habit_trackers` | System and configuration | `aggregation_strategy`, `archived_at`, `color`, `composer_config`, `composer_mode`, `created_at`, `created_by`, `creation_key`, `description`, `freeze_allowance`, `icon`, `id`, `input_schema`, `is_active`, `name`, `primary_metric_key`, `quick_add_values`, `recovery_window_periods`, `start_date`, `target_operator`, `target_period`, `target_value`, `template_category`, `tracking_mode`, `updated_at`, `use_case`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L111) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L148); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L137); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260324110000_add_workspace_habit_trackers.sql#L126); [public: REVOKE INSERT, UPDATE, DELETE public, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260616002445_harden_habit_tracker_write_rls.sql#L28) |
| `public.workspace_habits` | System and configuration | `auto_schedule`, `calendar_hours`, `color`, `created_at`, `creator_id`, `day_of_month`, `day_of_week_monthly`, `days_of_week`, `deleted_at`, `dependency_habit_id`, `dependency_type`, `description`, `duration_minutes`, `end_date`, `frequency`, `id`, `ideal_instances_per_day`, `ideal_time`, `is_active`, `is_splittable`, `is_visible_in_calendar`, `max_duration_minutes`, `max_instances_per_day`, `min_duration_minutes`, `min_instances_per_day`, `monthly_type`, `name`, `priority`, `recurrence_interval`, `start_date`, `time_preference`, `updated_at`, `week_of_month`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L140) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L160); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L155); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251127110002_add_habits.sql#L150) |
| `public.workspace_invite_link_uses` | Identity | `id`, `invite_link_id`, `joined_at`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L51) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L272); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L262); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L110); [public: GRANT INSERT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L105) |
| `public.workspace_invite_links` | Identity | `code`, `created_at`, `creator_id`, `expires_at`, `id`, `max_uses`, `type`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L16) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L173); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L161); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260516180000_typed_workspace_default_permissions.sql#L146); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L109); [public: GRANT DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251015180000_workspace_invite_links.sql#L102) |
| `public.workspace_invite_roles` | Identity | `created_at`, `role_id`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L32) public: enable; [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L37); [public: REVOKE ALL PUBLIC, anon, authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql#L35); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260813182000_multi_role_workspace_invitations.sql) |
| `public.workspace_invites` | Identity | `created_at`, `role_id`, `type`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230224122522_migrate_orgs_to_workspaces.sql#L64) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204100000_enforce_seat_limits.sql#L53); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L258); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L241) |
| `public.workspace_meetings` | Meetings | `created_at`, `creator_id`, `id`, `name`, `time`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L49) public: enable; [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260906083000_restrict_online_meeting_creation.sql#L3); [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811082156_add_meeting_permissions.sql#L46); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L278); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250811074420_add_meeting_recordings.sql#L276) |
| `public.workspace_members` | Identity | `created_at`, `sort_key`, `type`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230224122522_migrate_orgs_to_workspaces.sql#L73) public: enable; [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260519235930_protect_workspace_member_type_updates.sql#L11); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260204100000_enforce_seat_limits.sql#L100); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L159) |
| `public.workspace_orders` | Finance and commerce | `billing_reason`, `created_at`, `credit_pack_id`, `currency`, `id`, `polar_order_id`, `polar_subscription_id`, `product_id`, `product_kind`, `status`, `total_amount`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L44) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L153); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L132); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L118); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L99); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131807_add_ws_orders.sql#L98) |
| `public.workspace_products` | Finance and commerce | `archived`, `avatar_url`, `category_id`, `created_at`, `creator_id`, `description`, `finance_category_id`, `id`, `manufacturer_id`, `name`, `owner_id`, `usage`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L79) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L191) |
| `public.workspace_quiz_attempt_answers` | Education | `attempt_id`, `id`, `is_correct`, `quiz_id`, `score_awarded`, `selected_option_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250707043640_remote_schema.sql#L3) public: enable; [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql#L100); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql#L98); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250707043640_remote_schema.sql) |
| `public.workspace_quiz_attempts` | Education | `attempt_number`, `completed_at`, `duration_seconds`, `id`, `set_id`, `started_at`, `submitted_at`, `total_score`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250707043640_remote_schema.sql#L5) public: enable; [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql#L142); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql#L140); Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250609092649_add_quiz_attempts.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250707043640_remote_schema.sql) |
| `public.workspace_quiz_sets` | Education | `allow_view_old_attempts`, `allow_view_results`, `attempt_limit`, `available_date`, `created_at`, `due_date`, `explanation_mode`, `id`, `instruction`, `name`, `results_released`, `time_limit_minutes`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L27) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L204); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L185); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241125133034_add_quiz_sets.sql#L183) |
| `public.workspace_quizzes` | Education | `answer`, `content`, `created_at`, `id`, `instruction`, `question`, `score`, `type`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L52) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023075429_handle_education_rls.sql#L85); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L286); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241023074139_add_education.sql#L284) |
| `public.workspace_role_members` | Identity | `created_at`, `role_id`, `user_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L18) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L329); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241215124137_fix_role_read_access.sql#L3); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L122); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240701174930_add_default_permissions_and_role_members.sql#L120) |
| `public.workspace_role_permissions` | Identity | `created_at`, `enabled`, `permission`, `role_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240626191436_add_workspace_role_permissions.sql#L11) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L352); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241215124137_fix_role_read_access.sql#L21); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240626191436_add_workspace_role_permissions.sql#L67); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240626191436_add_workspace_role_permissions.sql#L65) |
| `public.workspace_role_wallet_whitelist` | Identity | `created_at`, `custom_days`, `id`, `role_id`, `viewing_window`, `wallet_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121070141_wallet_role_whitelist.sql#L135) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121070141_wallet_role_whitelist.sql#L196); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121070141_wallet_role_whitelist.sql#L172); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121070141_wallet_role_whitelist.sql#L152) |
| `public.workspace_roles` | Identity | `created_at`, `id`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240623035802_add_initial_ws_role_support.sql#L9) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L318); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20241215124137_fix_role_read_access.sql#L11); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240623035802_add_initial_ws_role_support.sql#L59); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240623035802_add_initial_ws_role_support.sql#L57) |
| `public.workspace_secrets` | System and configuration | `created_at`, `id`, `name`, `value`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230927045405_add_workspace_secrets.sql#L9) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L498) |
| `public.workspace_settings` | System and configuration | `break_duration_minutes`, `break_enabled`, `break_interval_minutes`, `created_at`, `guest_user_checkup_threshold`, `missed_entry_date_threshold`, `referral_count_cap`, `referral_increment_percent`, `referral_promotion_id`, `referral_reward_type`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250922063320_referral_system.sql#L115) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260121064914_settings_configs_rls.sql#L15); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250922063320_referral_system.sql#L102); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250922063320_referral_system.sql#L100) |
| `public.workspace_subscriptions` | Finance and commerce | `cancel_at_period_end`, `created_at`, `current_period_end`, `current_period_start`, `id`, `polar_subscription_id`, `product_id`, `seat_count`, `status`, `updated_at`, `ws_id` | Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251208131119_rename_ws_subscriptions.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261002153000_security_egress_budgets.sql) |
| `public.workspace_task_labels` | Tasks | `color`, `created_at`, `creator_id`, `id`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L12) public: enable; [public: PUBLIC DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L103); [public: PUBLIC UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L95); [public: PUBLIC INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L87); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L64); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250911083732_add_task_labels_and_estimates.sql#L62) |
| `public.workspace_task_reminder_settings` | Tasks | `created_at`, `enabled`, `id`, `reminder_intervals`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120001_add_workspace_reminder_settings.sql#L20) public: enable; [public: PUBLIC ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120001_add_workspace_reminder_settings.sql#L33); [public: PUBLIC SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251206120001_add_workspace_reminder_settings.sql#L23) |
| `public.workspace_teams` | Identity | `created_at`, `deleted`, `id`, `name`, `ws_id` | Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330084328_rename_projects_to_teams.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260701070408_wrap_rls_perf_initplan.sql) |
| `public.workspace_user_fields` | Contacts and workforce | `created_at`, `default_value`, `description`, `id`, `name`, `notes`, `possible_values`, `type`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240326093612_add_ws_user_fields_p1.sql#L30) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240326093612_add_ws_user_fields_p1.sql#L183); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240326093612_add_ws_user_fields_p1.sql#L179); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240326093612_add_ws_user_fields_p1.sql#L177) |
| `public.workspace_user_group_tag_groups` | Contacts and workforce | `created_at`, `group_id`, `tag_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240611091707_add_user_group_tag_groups.sql#L8) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L416); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240611091707_add_user_group_tag_groups.sql#L62); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240611091707_add_user_group_tag_groups.sql#L60) |
| `public.workspace_user_group_tags` | Contacts and workforce | `color`, `created_at`, `id`, `name`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240609111927_add_ws_user_group_tags.sql#L9) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L405); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240609111927_add_ws_user_group_tags.sql#L59); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240609111927_add_ws_user_group_tags.sql#L57) |
| `public.workspace_user_groups` | Contacts and workforce | `archived`, `cert_template`, `created_at`, `creator_id`, `description`, `ending_date`, `id`, `is_course_published`, `is_guest`, `name`, `notes`, `starting_date`, `ws_id` | [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260107200000_allow_manage_users_to_view_all_groups.sql#L1) |
| `public.workspace_user_groups_users` | Contacts and workforce | `created_at`, `group_id`, `role`, `user_id` | Policy not indexed; [first mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230507065648_change_user_role_to_user_group.sql); [last mention](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20261011002105_tutoring_absence_credit_identity.sql) |
| `public.workspace_user_linked_users` | Contacts and workforce | `created_at`, `platform_user_id`, `virtual_user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231007142532_add_workspace_user_linked_users.sql#L7) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231007142532_add_workspace_user_linked_users.sql#L190); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20231007142532_add_workspace_user_linked_users.sql#L166) |
| `public.workspace_user_profile_link_submissions` | Contacts and workforce | `actor_auth_uid`, `created_at`, `id`, `profile_link_id`, `submitted_fields`, `workspace_user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L112) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L354); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L211); [public: GRANT INSERT authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L206) |
| `public.workspace_user_profile_links` | Contacts and workforce | `allowed_fields`, `code`, `created_at`, `creator_id`, `expires_at`, `id`, `max_uses`, `mode`, `prefill_existing_values`, `requires_auth`, `revoked_at`, `target_user_id`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L32) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L316); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L259); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L227); [public: GRANT ALL service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L210); [public: GRANT DELETE authenticated](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260615112900_workspace_user_profile_links.sql#L203) |
| `public.workspace_user_status_changes` | Contacts and workforce | `actor_auth_uid`, `archived`, `archived_until`, `audit_record_version_id`, `created_at`, `creator_id`, `id`, `source`, `user_id`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L315) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L487); [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L500); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L431); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20240227153037_add_external_migration_tables.sql#L429) |
| `public.workspace_users` | Contacts and workforce | `address`, `archived`, `archived_until`, `avatar_url`, `balance`, `birthday`, `created_at`, `created_by`, `display_name`, `email`, `ethnicity`, `full_name`, `gender`, `guardian`, `id`, `national_id`, `note`, `phone`, `referred_by`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L215) public: enable; [public: authenticated ALL](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230330161750_add_inventory_and_healthcare_tables.sql#L266) |
| `public.workspace_wallet_transfers` | Finance and commerce | `created_at`, `from_transaction_id`, `to_transaction_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230406110104_add_wallet_transfer_support.sql#L6) public: enable; [public: authenticated SELECT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230406110104_add_wallet_transfer_support.sql#L99); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230406110104_add_wallet_transfer_support.sql#L75); [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230406110104_add_wallet_transfer_support.sql#L53) |
| `public.workspace_whiteboards` | Content and CMS | `archived_at`, `created_at`, `creator_id`, `description`, `id`, `snapshot`, `thumbnail_url`, `title`, `updated_at`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250620034755_create_whiteboards.sql#L13) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260311103000_harden_whiteboards_against_abuse.sql#L51); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260311103000_harden_whiteboards_against_abuse.sql#L31); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20260311103000_harden_whiteboards_against_abuse.sql#L17); [public: GRANT UPDATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250620034755_create_whiteboards.sql#L67); [public: GRANT TRUNCATE service\_role](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20250620034755_create_whiteboards.sql#L65) |
| `public.workspaces` | Identity | `avatar_url`, `created_at`, `creator_id`, `deleted`, `energy_profile`, `first_day_of_week`, `handle`, `id`, `logo_url`, `name`, `personal`, `scheduling_settings`, `timezone`, `auth_role`, `auth_uid`, `id`, `old_record`, `old_record_id`, `op`, `record`, `record_id`, `table_name`, `ts`, `ws_id`, `avatar_url`, `display_name`, `email`, `full_name`, `id`, `ws_id`, `avatar_url`, `display_name`, `email`, `full_name`, `id`, `ws_id`, `created_at`, `id`, `user_id`, `ws_id`, `created_at`, `id`, `user_id`, `ws_id`, `created_at`, `id`, `personal_ws_id`, `user_id`, `attendance_count`, `full_name`, `group_id`, `is_completed`, `post_id`, `user_id`, `attendance_count`, `email`, `full_name`, `gender`, `group_id`, `is_completed`, `phone`, `post_id`, `user_id`, `ws_id`, `attendance_count`, `email`, `full_name`, `gender`, `group_id`, `phone`, `user_id`, `ws_id`, `browser`, `click_count`, `device_type`, `domain`, `first_click_at`, `last_click_at`, `link_id`, `os`, `slug`, `unique_visitors`, `city`, `click_count`, `country`, `country_region`, `domain`, `first_click_at`, `last_click_at`, `latitude`, `link_id`, `longitude`, `postal_code`, `slug`, `timezone`, `unique_visitors`, `vercel_region`, `creator_id`, `domain`, `first_click_at`, `last_click_at`, `link_created_at`, `link_id`, `original_url`, `slug`, `top_browser`, `top_city`, `top_country`, `top_device_type`, `top_os`, `top_referrer_domain`, `top_vercel_region`, `total_clicks`, `unique_browsers`, `unique_cities`, `unique_countries`, `unique_device_types`, `unique_operating_systems`, `unique_referrers`, `unique_visitors`, `ws_id`, `display_name`, `is_guest`, `plan_id`, `timeblock_count`, `user_id`, `avatar_url`, `display_name`, `domain_count`, `email`, `first_link_created`, `id`, `last_link_created`, `link_count`, `creator_count`, `domain`, `first_created`, `last_created`, `link_count`, `activity_date`, `session_count`, `total_duration`, `user_id`, `ws_id`, `category_color`, `category_id`, `category_name`, `created_at`, `day_of_week`, `description`, `duration_seconds`, `end_time`, `id`, `is_running`, `productivity_score`, `session_date`, `session_length_category`, `session_month`, `session_week`, `start_hour`, `start_time`, `tags`, `task_id`, `task_name`, `title`, `updated_at`, `user_id`, `was_resumed`, `ws_id`, `archived`, `created_at`, `ending_date`, `id`, `name`, `notes`, `sessions`, `starting_date`, `tag_count`, `tags`, `ws_id`, `amount`, `category_id`, `created_at`, `creator_id`, `description`, `id`, `invoice_id`, `is_amount_confidential`, `is_category_confidential`, `is_description_confidential`, `report_opt_in`, `taken_at`, `wallet_id`, `cells`, `created_at`, `dataset_id`, `row_id`, `code`, `created_at`, `creator_id`, `current_uses`, `expires_at`, `id`, `is_expired`, `is_full`, `max_uses`, `member_type`, `updated_at`, `ws_id`, `id`, `link_count`, `logo_url`, `name`, `avatar_url`, `created_at`, `display_name`, `email`, `handle`, `id`, `pending`, `type`, `ws_id`, `amount`, `archived`, `created_at`, `ending_date`, `id`, `name`, `notes`, `sessions`, `starting_date`, `ws_id`, `amount`, `archived`, `created_at`, `ending_date`, `id`, `is_guest`, `name`, `notes`, `sessions`, `starting_date`, `ws_id`, `allowed_fields`, `code`, `created_at`, `creator_id`, `current_uses`, `expires_at`, `id`, `is_expired`, `is_full`, `is_revoked`, `max_uses`, `mode`, `prefill_existing_values`, `requires_auth`, `revoked_at`, `target_user_id`, `updated_at`, `ws_id`, `address`, `archived`, `archived_until`, `avatar_url`, `balance`, `birthday`, `created_at`, `created_by`, `display_name`, `email`, `ethnicity`, `full_name`, `gender`, `group_count`, `groups`, `guardian`, `id`, `linked_users`, `national_id`, `note`, `phone`, `updated_at`, `updated_by`, `ws_id` | [RLS](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20230224122522_migrate_orgs_to_workspaces.sql#L83) public: enable; [public: authenticated DELETE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L191); [public: authenticated UPDATE](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251104101455_migrate_legacy_roles_to_role_permissions.sql#L173); [public: authenticated INSERT](https://github.com/tutur3u/platform/blob/8d6a13e58762aedff6b1ea5eabb6de474a257e99/apps/database/supabase/migrations/20251017171252_remove_workspace_creation_limits.sql#L34) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.