Skip to content

public.users

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
iduuidgen_random_uuid()falsepublic.oauth_accounts public.user_bookmarks public.user_analysis_history public.user_github_org_memberships public.user_github_repositories public.github_app_installations public.refresh_tokens public.spec_documents public.user_specview_history public.usage_events public.user_subscriptions public.quota_reservations
emailvarchar(255)true
usernamevarchar(255)false
avatar_urltexttrue
last_login_attimestamp with time zonetrue
created_attimestamp with time zonenow()false
updated_attimestamp with time zonenow()false
token_versioninteger1false

Constraints

NameTypeDefinition
users_pkeyPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
users_pkeyCREATE UNIQUE INDEX users_pkey ON public.users USING btree (id)
idx_users_emailCREATE UNIQUE INDEX idx_users_email ON public.users USING btree (email) WHERE (email IS NOT NULL)
idx_users_usernameCREATE INDEX idx_users_username ON public.users USING btree (username)

Relations


Generated by tbls

Open-source test coverage insights