Skip to content

public.oauth_accounts

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
iduuidgen_random_uuid()false
user_iduuidfalsepublic.users
provideroauth_providerfalse
provider_user_idvarchar(255)false
provider_usernamevarchar(255)true
access_tokentexttrue
scopevarchar(500)true
created_attimestamp with time zonenow()false
updated_attimestamp with time zonenow()false

Constraints

NameTypeDefinition
fk_oauth_accounts_userFOREIGN KEYFOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
oauth_accounts_pkeyPRIMARY KEYPRIMARY KEY (id)
uq_oauth_provider_userUNIQUEUNIQUE (provider, provider_user_id)

Indexes

NameDefinition
oauth_accounts_pkeyCREATE UNIQUE INDEX oauth_accounts_pkey ON public.oauth_accounts USING btree (id)
uq_oauth_provider_userCREATE UNIQUE INDEX uq_oauth_provider_user ON public.oauth_accounts USING btree (provider, provider_user_id)
idx_oauth_accounts_user_idCREATE INDEX idx_oauth_accounts_user_id ON public.oauth_accounts USING btree (user_id)
idx_oauth_accounts_user_providerCREATE INDEX idx_oauth_accounts_user_provider ON public.oauth_accounts USING btree (user_id, provider)

Relations


Generated by tbls

Open-source test coverage insights