Post Type — supabase Architecture
Architecture documentation for the Post type/interface in payload-types.ts from the supabase codebase.
Entity Profile
Source Code
apps/cms/src/payload-types.ts lines 931–999
export interface Post {
id: number;
title: string;
slug?: string | null;
slugLock?: boolean | null;
/**
* Appears as subheading in the blog post preview.
*/
description?: string | null;
content: {
root: {
type: string;
children: {
type: string;
version: number;
[k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
};
/**
* Will show up as the blog post cover. Required.
*/
thumb?: (number | null) | Media;
/**
* Authors must be one or more. Required.
*/
authors?: (number | Author)[] | null;
/**
* Select only one category. Required.
*/
categories?: (number | Category)[] | null;
readingTime?: number | null;
/**
* Tags can be one or more. Optional.
*/
tags?: (number | Tag)[] | null;
toc_depth?: number | null;
/**
* Select a launch week to show launch week summary at the bottom of the blog post. Optional.
*/
launchweek?: ('6' | '7' | '8' | 'x' | 'ga' | '12' | '13' | '14' | '15') | null;
meta?: {
/**
* Defaults to the title of the post, if not set.
*/
title?: string | null;
/**
* Defaults to the "thumb" image, if not set.
*/
image?: (number | null) | Media;
/**
* Defaults to the description of the post, if not set.
*/
description?: string | null;
};
publishedAt?: string | null;
/**
* This date will determine the chronological order of the blog post. Required.
*/
date?: string | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free