ClientSharingPreferences table
The ClientSharingPreferences table in the FitStack - V2 schema has 10 columns, keyed by Id. 1 column in Users references it.
v2 ADD. Client-side standing policy, separate from any one coach. `BlockAllCoachAccess` is checked BEFORE grants, so a client can cut off every coach instantly without hunting through individual revocations.
Columns (10)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ClientId | text | not null | 1:1 with the user. |
| AutoApproveStandardScopes | boolean | not null | Skip the prompt for Standard-sensitivity scopes from an existing coach. Never applies to Sensitive scopes. |
| DefaultGrantDurationDays | integer | Pre-fills the duration on the consent screen. Null = no default. | |
| BlockAllCoachAccess | boolean | not null | Panic switch. While true every access check fails closed regardless of live grants, and no new requests may be filed. |
| NotifyOnEachAccess | boolean | not null | Notify the client every time a coach reads their data, not just on grant changes. |
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (1)
(ClientId)unique (IX_ClientSharingPreferences_ClientId)
Relationships
Users.IdreferencesClientSharingPreferences