Skip to content

Table: posts

This table references:

Referenced by:

ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
author_user_refbigintno
titletextnoDefault ''::text
descriptiontextnoDefault ''::text
visibilitytextnoDefault 'org-only'::text
cover_asset_iduuidyesReferences assets(id)
posted_attimestampnoDefault now()
like_countbigintnoDefault 0
comment_countbigintnoDefault 0
search_texttsvectoryes
origin_server_iduuidyes
deleted_attimestampyes
created_attimestampnoDefault now()
updated_attimestampnoDefault now()
state_iduuidyesReferences workflow_states(id)
team_iduuidyesReferences teams(id)
cover_thumbnail_asset_iduuidyesReferences assets(id)
subtitle_track_overridejsonbyes
deleted_reasontextyes
  • CONSTRAINT posts_visibility_check CHECK ((visibility = ANY (ARRAY['private'::text, 'org-only'::text, 'followers'::text, 'explicit-share'::text, 'public'::text])))
CREATE TABLE public.posts (
id uuid DEFAULT gen_random_uuid() NOT NULL,
author_user_ref bigint NOT NULL,
title text DEFAULT ''::text NOT NULL,
description text DEFAULT ''::text NOT NULL,
visibility text DEFAULT 'org-only'::text NOT NULL,
cover_asset_id uuid,
posted_at timestamp with time zone DEFAULT now() NOT NULL,
like_count bigint DEFAULT 0 NOT NULL,
comment_count bigint DEFAULT 0 NOT NULL,
search_text tsvector,
origin_server_id uuid,
deleted_at timestamp with time zone,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL,
state_id uuid,
team_id uuid,
cover_thumbnail_asset_id uuid,
subtitle_track_override jsonb,
deleted_reason text,
CONSTRAINT posts_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.