Ir al contenido

Table: collections

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

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
owner_user_refbigintno
nametextno
descriptiontextnoDefault ''::text
visibilitytextnoDefault 'private'::text
membershiptextnoDefault 'manual'::text
expires_attimestampyes
purposetextyes
origin_server_iduuidyes
created_attimestampnoDefault now()
updated_attimestampnoDefault now()
search_texttsvectoryes
smart_querytextyes
deleted_attimestampyes
deleted_reasontextyes
  • CONSTRAINT collections_membership_check CHECK ((membership = ANY (ARRAY['manual'::text, 'query'::text, 'hybrid'::text])))
  • CONSTRAINT collections_visibility_check CHECK ((visibility = ANY (ARRAY['private'::text, 'org-only'::text, 'followers'::text, 'explicit-share'::text, 'public'::text])))
CREATE TABLE public.collections (
id uuid DEFAULT gen_random_uuid() NOT NULL,
owner_user_ref bigint NOT NULL,
name text NOT NULL,
description text DEFAULT ''::text NOT NULL,
visibility text DEFAULT 'private'::text NOT NULL,
membership text DEFAULT 'manual'::text NOT NULL,
expires_at timestamp with time zone,
purpose text,
origin_server_id uuid,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
search_text tsvector,
smart_query text,
deleted_at timestamp with time zone,
deleted_reason text,
CONSTRAINT collections_membership_check CHECK ((membership = ANY (ARRAY['manual'::text, 'query'::text, 'hybrid'::text]))),
CONSTRAINT collections_visibility_check CHECK ((visibility = ANY (ARRAY['private'::text, 'org-only'::text, 'followers'::text, 'explicit-share'::text, 'public'::text])))
);

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