Advertisement
skrinetzki

public.statuses

Jun 25th, 2024
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. Table "public.statuses"
  2. Column | Type | Collation | Nullable | Default
  3. ------------------------------+-----------------------------+-----------+----------+--------------------------------
  4. id | bigint | | not null | timestamp_id('statuses'::text)
  5. uri | character varying | | |
  6. text | text | | not null | ''::text
  7. created_at | timestamp without time zone | | not null |
  8. updated_at | timestamp without time zone | | not null |
  9. in_reply_to_id | bigint | | |
  10. reblog_of_id | bigint | | |
  11. url | character varying | | |
  12. sensitive | boolean | | not null | false
  13. visibility | integer | | not null | 0
  14. spoiler_text | text | | not null | ''::text
  15. reply | boolean | | not null | false
  16. language | character varying | | |
  17. conversation_id | bigint | | |
  18. local | boolean | | |
  19. account_id | bigint | | not null |
  20. application_id | bigint | | |
  21. in_reply_to_account_id | bigint | | |
  22. poll_id | bigint | | |
  23. deleted_at | timestamp without time zone | | |
  24. edited_at | timestamp without time zone | | |
  25. trendable | boolean | | |
  26. ordered_media_attachment_ids | bigint[] | | |
  27. local_only | boolean | | |
  28. content_type | character varying | | |
  29. Indexes:
  30. "statuses_pkey" PRIMARY KEY, btree (id)
  31. "index_statuses_20190820" btree (account_id, id DESC, visibility, updated_at) WHERE deleted_at IS NULL
  32. "index_statuses_local_20190824" btree (id DESC, account_id) WHERE (local OR uri IS NULL) AND deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND (NOT reply OR in_reply_to_account_id = account_id)
  33. "index_statuses_on_account_id" btree (account_id)
  34. "index_statuses_on_deleted_at" btree (deleted_at) WHERE deleted_at IS NOT NULL
  35. "index_statuses_on_in_reply_to_account_id" btree (in_reply_to_account_id) WHERE in_reply_to_account_id IS NOT NULL
  36. "index_statuses_on_in_reply_to_id" btree (in_reply_to_id) WHERE in_reply_to_id IS NOT NULL
  37. "index_statuses_on_reblog_of_id_and_account_id" btree (reblog_of_id, account_id)
  38. "index_statuses_on_uri" UNIQUE, btree (uri text_pattern_ops) WHERE uri IS NOT NULL
  39. "index_statuses_public_20200119" btree (id DESC, account_id) WHERE deleted_at IS NULL AND visibility = 0 AND reblog_of_id IS NULL AND (NOT reply OR in_reply_to_account_id = account_id)
  40. Foreign-key constraints:
  41. "fk_9bda1543f7" FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE
  42. "fk_c7fa917661" FOREIGN KEY (in_reply_to_account_id) REFERENCES accounts(id) ON DELETE SET NULL
  43. "fk_rails_256483a9ab" FOREIGN KEY (reblog_of_id) REFERENCES statuses(id) ON DELETE CASCADE
  44. "fk_rails_94a6f70399" FOREIGN KEY (in_reply_to_id) REFERENCES statuses(id) ON DELETE SET NULL
  45. Referenced by:
  46. TABLE "favourites" CONSTRAINT "fk_b0e856845e" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  47. TABLE "bookmarks" CONSTRAINT "fk_rails_11207ffcfd" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  48. TABLE "statuses" CONSTRAINT "fk_rails_256483a9ab" FOREIGN KEY (reblog_of_id) REFERENCES statuses(id) ON DELETE CASCADE
  49. TABLE "custom_filter_statuses" CONSTRAINT "fk_rails_2f6d20c0cf" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  50. TABLE "polls" CONSTRAINT "fk_rails_3e0d9f1115" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  51. TABLE "media_attachments" CONSTRAINT "fk_rails_3ec0cfdd70" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE SET NULL
  52. TABLE "status_stats" CONSTRAINT "fk_rails_4a247aac42" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  53. TABLE "mentions" CONSTRAINT "fk_rails_59edbe2887" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  54. TABLE "notification_requests" CONSTRAINT "fk_rails_61c7aa9c1f" FOREIGN KEY (last_status_id) REFERENCES statuses(id) ON DELETE SET NULL
  55. TABLE "status_pins" CONSTRAINT "fk_rails_65c05552f1" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  56. TABLE "status_trends" CONSTRAINT "fk_rails_68c610dc1a" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  57. TABLE "statuses" CONSTRAINT "fk_rails_94a6f70399" FOREIGN KEY (in_reply_to_id) REFERENCES statuses(id) ON DELETE SET NULL
  58. TABLE "status_edits" CONSTRAINT "fk_rails_a960f234a0" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  59. TABLE "statuses_tags" CONSTRAINT "fk_rails_df0fe11427" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement