Skip to content

Table: collection_posts

This table references:

ColumnTypeNullableNotes
collection_iduuidnoReferences collections(id)
post_iduuidnoReferences posts(id)
sort_orderintegernoDefault 0
pinnedbooleannoDefault true
expires_attimestampyes
added_attimestampnoDefault now()
CREATE TABLE public.collection_posts (
collection_id uuid NOT NULL,
post_id uuid NOT NULL,
sort_order integer DEFAULT 0 NOT NULL,
pinned boolean DEFAULT true NOT NULL,
expires_at timestamp with time zone,
added_at timestamp with time zone DEFAULT now() NOT NULL
);

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