Appearance
public.notification_read_status
Description
Entidade que representa as notificações que foram lidas
Columns
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| id | uuid | false | Chave primária do registro de leitura | |||
| notification_id | uuid | false | ID da notificação que foi lida | |||
| user_id | uuid | false | ID do usuário que leu a notificação | |||
| read_at | timestamp without time zone | false | Data e hora em que a notificação foi marcada como lida |
Constraints
| Name | Type | Definition |
|---|---|---|
| pk_notification_read_status | PRIMARY KEY | PRIMARY KEY (id) |
| uk_user_notification | UNIQUE | UNIQUE (user_id, notification_id) |
Indexes
| Name | Definition |
|---|---|
| pk_notification_read_status | CREATE UNIQUE INDEX pk_notification_read_status ON public.notification_read_status USING btree (id) |
| uk_user_notification | CREATE UNIQUE INDEX uk_user_notification ON public.notification_read_status USING btree (user_id, notification_id) |
Relations
Generated by tbls