Skip to content

public.notification_recipient ​

Description ​

Entidade que representa o vínculo entre as notificações e os destinatários (ex: usuário ou setor)

Columns ​

NameTypeDefaultNullableChildrenParentsComment
iduuidfalseChave primária do registro do destinatário
notification_iduuidfalsepublic.notificationChave estrangeira para a notificação
recipient_iduuidfalseUUID do destinatário (pode ser um usuário ou um setor)
recipient_typevarchar(50)falseTipo do destinatário (USER ou SECTOR)

Constraints ​

NameTypeDefinition
fk_notification_recipient_on_notificationFOREIGN KEYFOREIGN KEY (notification_id) REFERENCES notification(id)
pk_notification_recipientPRIMARY KEYPRIMARY KEY (id)

Indexes ​

NameDefinition
pk_notification_recipientCREATE UNIQUE INDEX pk_notification_recipient ON public.notification_recipient USING btree (id)
idx_recipient_idCREATE INDEX idx_recipient_id ON public.notification_recipient USING btree (recipient_id)

Relations ​

er


Generated by tbls

TIS.