Table: likes
Ce contenu n’est pas encore disponible dans votre langue.
Connected to
Section titled “Connected to”This table references:
federation_peers(id) via columnpeer_id
Columns
Section titled “Columns”| Column | Type | Nullable | Notes |
|---|---|---|---|
target_kind | text | no | — |
target_id | uuid | no | — |
user_ref | bigint | yes | — |
liked_at | timestamp | no | Default now() |
id | uuid | no | Default gen_random_uuid() |
peer_id | uuid | yes | References federation_peers(id) |
actor_uri | text | yes | — |
Constraints
Section titled “Constraints”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])))
Full DDL
Section titled “Full DDL”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.