Ir al contenido

Table: likes

Esta página aún no está disponible en tu idioma.

This table references:

ColumnTypeNullableNotes
target_kindtextno
target_iduuidno
user_refbigintyes
liked_attimestampnoDefault now()
iduuidnoDefault gen_random_uuid()
peer_iduuidyesReferences federation_peers(id)
actor_uritextyes
  • CONSTRAINT likes_origin_check CHECK ((((user_ref IS NOT NULL) AND (peer_id IS NULL) AND (actor_uri IS NULL)) OR ((user_ref IS NULL) AND (peer_id IS NOT NULL) AND (actor_uri IS NOT NULL))))
  • CONSTRAINT likes_target_kind_check CHECK ((target_kind = ANY (ARRAY['post'::text, 'asset'::text, 'comment'::text])))
CREATE TABLE public.likes (
target_kind text NOT NULL,
target_id uuid NOT NULL,
user_ref bigint,
liked_at timestamp with time zone DEFAULT now() NOT NULL,
id uuid DEFAULT gen_random_uuid() NOT NULL,
peer_id uuid,
actor_uri text,
CONSTRAINT likes_origin_check CHECK ((((user_ref IS NOT NULL) AND (peer_id IS NULL) AND (actor_uri IS NULL)) OR ((user_ref IS NULL) AND (peer_id IS NOT NULL) AND (actor_uri IS NOT NULL)))),
CONSTRAINT likes_target_kind_check CHECK ((target_kind = ANY (ARRAY['post'::text, 'asset'::text, 'comment'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.