Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | bigserial | 19 | √ | nextval('article_id_seq'::regclass) |
|
|
||||||||||||||||||||||||||||||
uuid | uuid | 2147483647 | null |
|
|
|||||||||||||||||||||||||||||||
int8 | 19 | null |
|
|
||||||||||||||||||||||||||||||||
upstream_id | int8 | 19 | √ | null |
|
|
||||||||||||||||||||||||||||||
title | varchar | 255 | null |
|
|
|||||||||||||||||||||||||||||||
slug | varchar | 255 | null |
|
|
|||||||||||||||||||||||||||||||
cover | int8 | 19 | √ | null |
|
|
||||||||||||||||||||||||||||||
summary | varchar | 255 | null |
|
|
|||||||||||||||||||||||||||||||
word_count | int4 | 10 | null |
|
|
|||||||||||||||||||||||||||||||
data_hash | varchar | 255 | √ | null |
|
|
||||||||||||||||||||||||||||||
media_hash | varchar | 255 | √ | null |
|
|
||||||||||||||||||||||||||||||
content | text | 2147483647 | null |
|
|
|||||||||||||||||||||||||||||||
state | text | 2147483647 | 'active'::text |
|
|
|||||||||||||||||||||||||||||||
public | bool | 1 | √ | false |
|
|
||||||||||||||||||||||||||||||
live | bool | 1 | √ | false |
|
|
||||||||||||||||||||||||||||||
created_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
||||||||||||||||||||||||||||||
updated_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
||||||||||||||||||||||||||||||
draft_id | int8 | 19 | √ | null |
|
|
||||||||||||||||||||||||||||||
remark | text | 2147483647 | √ | null |
|
|
||||||||||||||||||||||||||||||
sticky | bool | 1 | √ | false |
|
|
||||||||||||||||||||||||||||||
language | varchar | 255 | √ | null |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
article_pkey | Primary key | Asc | id |
article_author_id_index | Performance | Asc | author_id |
article_author_id_state_index | Performance | Asc/Asc | author_id + state |
article_created_at_index | Performance | Asc | created_at |
article_media_hash_index | Performance | Asc | media_hash |
article_state_index | Performance | Asc | state |
Check Constraints
Constraint Name | Constraint |
---|---|
article_state_check | ((state = ANY (ARRAY['active'::text, 'banned'::text, 'archived'::text]))) |