feature_flag

-1 rows


Description

Internally-managed feature flags, read by both portals to gate UI and content

Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 √ null

Unique ID for the feature flag

flag_key text 2147483647 null

The unique key code checks to look up this flag, e.g. show_lead

is_enabled bool 1 false

Whether the flag is currently on; the single value most call sites need

value jsonb 2147483647 √ null

Optional JSON payload for flags that carry data beyond on/off, e.g. banner text/variant

description text 2147483647 √ null

Human-readable note on what the flag controls, shown in the admin UI

created_by int4 10 √ null
ccbc_user.id feature_flag_created_by_fkey R

created by user id

created_at timestamptz 35,6 now()

created at timestamp

updated_by int4 10 √ null
ccbc_user.id feature_flag_updated_by_fkey R

updated by user id

updated_at timestamptz 35,6 now()

updated at timestamp

archived_by int4 10 √ null
ccbc_user.id feature_flag_archived_by_fkey R

archived by user id

archived_at timestamptz 35,6 √ null

archived at timestamp

Indexes

Constraint Name Type Sort Column(s)
feature_flag_pkey Primary key Asc id
ccbc_public_feature_flag_archived_by_foreign_key Performance Asc archived_by
ccbc_public_feature_flag_created_by_foreign_key Performance Asc created_by
ccbc_public_feature_flag_updated_by_foreign_key Performance Asc updated_by
feature_flag_flag_key_key Must be unique Asc flag_key

Relationships