US-01: Database Schema and RLS Policies in Supabase (PostgreSQL) #1

Closed
opened 2026-09-23 17:42:50 +00:00 by gabogg · 2 comments
Owner

User Story

As a system developer and administrator, I need to create the and tables with unique indexes and Row Level Security (RLS) policies in PostgreSQL (Supabase) to ensure data persistence and integrity for daily shifts.

Acceptance Criteria

  • Table with columns: uid=1000(gabogg) gid=1001(gabogg) groups=1001(gabogg),10(wheel),18(dialout),100(users),968(docker),1000(autologin),1005(nintendo_switch) (UUID PK), (DATE), (TEXT CHECK ('DIURNO', 'NOCTURNO')), (JSONB), (JSONB), (JSONB), (JSONB), (JSONB), , and .
  • Unique index on to enable atomic upserts.
  • Index on for fast calendar queries.
  • Full RLS policies enabled for and roles (SELECT, INSERT, UPDATE, DELETE).
  • Table for master personnel catalog with status, experience, and weekly shift rotation.
  • SQL migration file tracked under .
## User Story As a system developer and administrator, I need to create the and tables with unique indexes and Row Level Security (RLS) policies in PostgreSQL (Supabase) to ensure data persistence and integrity for daily shifts. ## Acceptance Criteria - [ ] Table with columns: uid=1000(gabogg) gid=1001(gabogg) groups=1001(gabogg),10(wheel),18(dialout),100(users),968(docker),1000(autologin),1005(nintendo_switch) (UUID PK), (DATE), (TEXT CHECK ('DIURNO', 'NOCTURNO')), (JSONB), (JSONB), (JSONB), (JSONB), (JSONB), , and . - [ ] Unique index on to enable atomic upserts. - [ ] Index on for fast calendar queries. - [ ] Full RLS policies enabled for and roles (SELECT, INSERT, UPDATE, DELETE). - [ ] Table for master personnel catalog with status, experience, and weekly shift rotation. - [ ] SQL migration file tracked under .
gabogg changed title from US-01: Esquema de Base de Datos y Políticas RLS en Supabase (PostgreSQL) to US-01: Database Schema and RLS Policies in Supabase (PostgreSQL) 2026-09-23 17:46:04 +00:00
Author
Owner

Addressed in Pull Request #12: #12

Addressed in Pull Request #12: https://git.gaboggamer.online/gabogg/orinokia-mall-control/pulls/12
Author
Owner

Closed via merged PR #12.

Closed via merged PR #12.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gabogg/orinokia-mall-control#1
No description provided.