Aller au contenu

Table: posts

Ce contenu n’est pas encore disponible dans votre langue.

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); Default public.post_initial_state_id()
team_iduuidyesReferences teams(id)
cover_thumbnail_asset_iduuidyesReferences assets(id)
subtitle_track_overridejsonbyes
deleted_reasontextyes
deleted_by_user_refbigintyes
maturebooleannoDefault false
ai_provenancetextyes
ai_purebooleannoDefault false
cover_focal_xdoubleyes
cover_focal_ydoubleyes
comments_enabledbooleannoDefault true
  • CONSTRAINT posts_ai_provenance_check CHECK (((ai_provenance IS NULL) OR (ai_provenance = ANY (ARRAY['none'::text, 'assisted'::text, 'generated'::text]))))
  • CONSTRAINT posts_cover_focal_check CHECK ((((cover_focal_x IS NULL) AND (cover_focal_y IS NULL)) OR (((cover_focal_x >= (0)::double precision) AND (cover_focal_x <= (1)::double precision)) AND ((cover_focal_y >= (0)::double precision) AND (cover_focal_y <= (1)::double precision)))))
  • 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 DEFAULT public.post_initial_state_id(),
team_id uuid,
cover_thumbnail_asset_id uuid,
subtitle_track_override jsonb,
deleted_reason text,
deleted_by_user_ref bigint,
mature boolean DEFAULT false NOT NULL,
ai_provenance text,
ai_pure boolean DEFAULT false NOT NULL,
cover_focal_x double precision,
cover_focal_y double precision,
comments_enabled boolean DEFAULT true NOT NULL,
CONSTRAINT posts_ai_provenance_check CHECK (((ai_provenance IS NULL) OR (ai_provenance = ANY (ARRAY['none'::text, 'assisted'::text, 'generated'::text])))),
CONSTRAINT posts_cover_focal_check CHECK ((((cover_focal_x IS NULL) AND (cover_focal_y IS NULL)) OR (((cover_focal_x >= (0)::double precision) AND (cover_focal_x <= (1)::double precision)) AND ((cover_focal_y >= (0)::double precision) AND (cover_focal_y <= (1)::double precision))))),
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-09-23T03:23:00.434Z.