Profiles & cities
profile_access_log
Who got, lost or changed access to a profile, and who did it (0027) — the facts an admin needs to judge a reclaim dispute.
Columns
| Column | Type | Null | Default | Keys |
|---|---|---|---|---|
| id | uuid | no | gen_random_uuid() | PK |
| profile_id | uuid | no | — | |
| actor_id | uuid | yes | — | |
| subject_id | uuid | yes | — | |
| action | text createdrequestedapprovedrejectedrole_changedremovedleft | no | — | |
| role | text | yes | — | |
| note | text | yes | — | |
| created_at | timestamp | yes | now() |
Value lists come from .$type<'a' | 'b'>() in the schema — enforced in TypeScript only, not by the database.
Keys, constraints & indexes
Used by
Code that reads or writes this table, found by static analysis of the tRPC routers and API handlers (including helpers they call).
tRPC procedures
REST & webhooks
- ANY /mcp
- ANY /mcp/public
Relations
Rendering diagram…
Diagram source
erDiagram
dancers {
uuid id PK
text email UK
text neon_auth_id UK
text username UK
}
profile_access_log {
uuid id PK
uuid profile_id FK
uuid actor_id FK
uuid subject_id FK
}
profiles {
uuid id PK
text username UK
}
profiles ||--o{ profile_access_log : "profile_id"
dancers |o--o{ profile_access_log : "actor_id"
dancers |o--o{ profile_access_log : "subject_id" Defined at server/database/schema.ts:463 as profileAccessLog.