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)

Columns of the ClientSharingPreferences table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ClientIdtextnot null1:1 with the user.
AutoApproveStandardScopesbooleannot nullSkip the prompt for Standard-sensitivity scopes from an existing coach. Never applies to Sensitive scopes.
DefaultGrantDurationDaysintegerPre-fills the duration on the consent screen. Null = no default.
BlockAllCoachAccessbooleannot nullPanic switch. While true every access check fails closed regardless of live grants, and no new requests may be filed.
NotifyOnEachAccessbooleannot nullNotify the client every time a coach reads their data, not just on grant changes.
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (1)

  • (ClientId) unique (IX_ClientSharingPreferences_ClientId)

Relationships

  • Users.Id references ClientSharingPreferences