Skip to content

public.user_specview_history

Description

Columns

NameTypeDefaultNullableChildrenParentsComment
iduuidgen_random_uuid()false
user_iduuidfalsepublic.users
document_iduuidfalsepublic.spec_documents
created_attimestamp with time zonenow()false
updated_attimestamp with time zonenow()false

Constraints

NameTypeDefinition
fk_user_specview_history_userFOREIGN KEYFOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
fk_user_specview_history_documentFOREIGN KEYFOREIGN KEY (document_id) REFERENCES spec_documents(id) ON DELETE CASCADE
user_specview_history_pkeyPRIMARY KEYPRIMARY KEY (id)
uq_user_specview_history_user_documentUNIQUEUNIQUE (user_id, document_id)

Indexes

NameDefinition
user_specview_history_pkeyCREATE UNIQUE INDEX user_specview_history_pkey ON public.user_specview_history USING btree (id)
uq_user_specview_history_user_documentCREATE UNIQUE INDEX uq_user_specview_history_user_document ON public.user_specview_history USING btree (user_id, document_id)
idx_user_specview_history_cursorCREATE INDEX idx_user_specview_history_cursor ON public.user_specview_history USING btree (user_id, updated_at, id)
idx_user_specview_history_documentCREATE INDEX idx_user_specview_history_document ON public.user_specview_history USING btree (document_id)

Relations


Generated by tbls

Open-source test coverage insights