core_user


Columns

Column Type Size Nulls Auto Default Children Parents Comments
id int4 10 √ null
action.creator_id fk_action_creator_id R
action.made_public_by_id fk_action_made_public_by_id C
api_key.creator_id fk_api_key_created_by_user_id R
api_key.updated_by_id fk_api_key_updated_by_id_user_id R
api_key.user_id fk_api_key_user_id R
application_permissions_revision.user_id fk_general_permissions_revision_user_id R
auth_identity.user_id fk_auth_identity_core_user_id C
bookmark_ordering.user_id fk_bookmark_ordering_user_id C
card_bookmark.user_id fk_card_bookmark_user_id C
collection.personal_owner_id fk_collection_personal_owner_id C
collection_bookmark.user_id fk_collection_bookmark_user_id C
collection_permission_graph_revision.user_id fk_collection_revision_user_id C
comment.creator_id fk_comment_creator_id C
comment_reaction.user_id fk_comment_reaction_user_id C
core_session.user_id fk_session_ref_user_id C
dashboard_bookmark.user_id fk_dashboard_bookmark_user_id C
dashboard_favorite.user_id fk_dashboard_favorite_user_id C
document.creator_id fk_document_ref_creator_id C
document.made_public_by_id fk_document_made_public_by_id C
document_bookmark.user_id fk_document_bookmark_user_id C
glossary.creator_id fk_glossary_ref_creator_id C
login_history.user_id fk_login_history_user_id C
measure.creator_id fk_measure_ref_creator_id C
metabase_database.creator_id fk_database_creator_id N
metabot_conversation.user_id fk_metabot_conversation_user_id R
metric.creator_id fk_metric_ref_creator_id C
model_index.creator_id fk_model_index_creator_id C
native_query_snippet.creator_id fk_snippet_creator_id C
notification.creator_id fk_notification_creator_id C
notification_recipient.user_id fk_notification_recipient_user_id C
permissions_group_membership.user_id fk_permissions_group_membership_user_id C
permissions_revision.user_id fk_permissions_revision_user_id C
persisted_info.creator_id fk_persisted_info_ref_creator_id R
pulse.creator_id fk_pulse_ref_creator_id C
pulse_channel_recipient.user_id fk_pulse_channel_recipient_ref_user_id C
recent_views.user_id fk_recent_views_ref_user_id C
remote_sync_task.initiated_by fk_remote_sync_task_initiated_by N
report_card.creator_id fk_card_ref_user_id C
report_card.made_public_by_id fk_card_made_public_by_id C
report_cardfavorite.owner_id fk_cardfavorite_ref_user_id C
report_dashboard.creator_id fk_dashboard_ref_user_id C
report_dashboard.made_public_by_id fk_dashboard_made_public_by_id C
revision.user_id fk_revision_ref_user_id C
secret.creator_id fk_secret_ref_user_id R
security_advisory.acknowledged_by fk_security_advisory_acknowledged_by N
segment.creator_id fk_segment_ref_creator_id C
support_access_grant_log.revoked_by_user_id fk_support_access_grant_log_revoked_by_user_id N
support_access_grant_log.user_id fk_support_access_grant_log_user_id N
timeline.creator_id fk_timeline_creator_id C
timeline_event.creator_id fk_event_creator_id C
transform.creator_id fk_transform_ref_creator_id C
transform.owner_user_id fk_transform_owner_user_id N
transform_run.user_id fk_transform_run_user_id N
user_key_value.user_id fk_user_key_value_user_id R
user_parameter_value.user_id fk_user_parameter_value_user_id C
view_log.user_id fk_view_log_ref_user_id C
workspace_merge.creator_id fk_workspace_merge_creator_id R
workspace_merge_transform.merging_user_id fk_workspace_merge_transform_merging_user_id R
workspace_transform.creator_id fk_workspace_transform_creator_id N

{“what”:“Unique integer identifier for each user row.”,“why”:“Needed to reference users from other tables; without it rows cannot be uniquely addressed.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.004640490+00:00”}

email citext 2147483647 null

{“what”:“Email address used for login and contact; format validated by type.”,“why”:“Primary login credential; without it users cannot authenticate or receive account notifications.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.049694790+00:00”}

first_name varchar 254 √ null

{“what”:“User’s given name as free text.”,“why”:“Used for personalization in UI and emails; missing leaves greetings generic.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.076567139+00:00”}

last_name varchar 254 √ null

{“what”:“User’s family name as free text.”,“why”:“Used for full name display and sorting; missing makes name ambiguous.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.113663050+00:00”}

password varchar 254 √ null

{“what”:“Hashed password string; never plaintext.”,“why”:“Authenticates login; without it password-based login is impossible.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.156916147+00:00”}

password_salt varchar 254 √ 'default'::character varying

{“what”:“Salt value appended to password before hashing; default placeholder.”,“why”:“Strengthens hash against rainbow tables; missing salt weakens security.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.188472353+00:00”}

date_joined timestamptz 35,6 null

{“what”:“Timestamp when user account was created.”,“why”:“Used for account age and audit; without it creation time is unknown.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.242539526+00:00”}

last_login timestamptz 35,6 √ null

{“what”:“Timestamp of most recent successful login.”,“why”:“Shows user activity; missing means never logged in or unknown.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.273335037+00:00”}

is_superuser bool 1 false

{“what”:“Flag indicating full admin privileges.”,“why”:“Controls access to admin features; without it privilege escalation is undefined.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.331582454+00:00”}

is_active bool 1 true

{“what”:“Flag indicating account can log in and be used.”,“why”:“Disables accounts without deletion; without it deactivated users could still authenticate.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.592646850+00:00”}

reset_token varchar 254 √ null

{“what”:“One-time token for password reset flow.”,“why”:“Validates password reset requests; missing token prevents secure reset.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.717322429+00:00”}

reset_triggered int8 19 √ null

{“what”:“Unix timestamp when reset token was issued.”,“why”:“Enforces token expiry; without it old tokens remain valid indefinitely.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.765021684+00:00”}

is_qbnewb bool 1 true

{“what”:“Flag indicating user is new to QuickBase features.”,“why”:“Triggers onboarding tutorials; without it new users miss guidance.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.806654850+00:00”}

login_attributes text 2147483647 √ null

{“what”:“JSON string of extra login metadata (IP, device).”,“why”:“Used for security analytics; without it login context is lost.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.821575331+00:00”}

updated_at timestamptz 35,6 √ null

{“what”:“Timestamp of last row update.”,“why”:“Tracks record changes; without it stale data cannot be detected.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.836454410+00:00”}

sso_source varchar 254 √ null

{“what”:“Identity provider name for SSO logins (e.g., Google).”,“why”:“Distinguishes SSO from local auth; without it login method is unknown.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:29.860864346+00:00”}

locale varchar 5 √ null

{“what”:“Language/region code like en-US.”,“why”:“Localizes UI and emails; missing forces default language.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.048116904+00:00”}

is_datasetnewb bool 1 true

{“what”:“Flag indicating user is new to dataset features.”,“why”:“Shows dataset onboarding prompts; without it new users miss help.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.069955479+00:00”}

settings text 2147483647 √ null

{“what”:“JSON string of user preferences.”,“why”:“Persists UI settings; without it preferences reset each session.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.337465579+00:00”}

type varchar 64 'personal'::character varying

{“what”:“Account type: personal, team, or service.”,“why”:“Determines permissions and behavior; without it account role is ambiguous.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.439581347+00:00”}

entity_id bpchar 21 √ null

{“what”:“Identifier linking to an external entity (e.g., org).”,“why”:“Associates user with a tenant or group; missing breaks multi-tenant scoping.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.459259641+00:00”}

deactivated_at timestamptz 35,6 √ null

{“what”:“Timestamp when account was deactivated.”,“why”:“Records deactivation time; without it deactivation status is unclear.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.471728922+00:00”}

tenant_id int4 10 √ null
tenant.id fk_core_user_tenant_id R

{“what”:“Foreign key to tenant/organization.”,“why”:“Scopes data to a tenant; missing makes multi-tenant isolation impossible.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.496804060+00:00”}

jwt_attributes text 2147483647 √ null

{“what”:“JSON string of claims embedded in JWT tokens.”,“why”:“Customizes token payload; without it JWT lacks user-specific data.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.522049041+00:00”}

deactivated_with_tenant bool 1 √ null

{“what”:“Flag indicating deactivation was due to tenant deletion.”,“why”:“Explains deactivation reason; without it cause is unknown.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.543705429+00:00”}

is_data_analyst bool 1 false

{“what”:“Flag granting data analyst role permissions.”,“why”:“Controls access to analytics tools; without it role is undefined.”,“by”:“fleet-annotator-worker”,“at”:“2026-09-23T04:07:30.564660654+00:00”}

Indexes

Constraint Name Type Sort Column(s)
core_user_pkey Primary key Asc id
core_user_email_key Must be unique Asc email
core_user_entity_id_key Must be unique Asc entity_id
idx_core_user_tenant_id Performance Asc tenant_id
idx_lower_email Performance
idx_user_full_name Performance
idx_user_qualified_id Performance

Relationships