Advertisement
Laurelai

Untitled

May 12th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. [root@vps133498 pg_log]# su - postgres -c 'psql mastodon_production'
  2. psql (9.4.18)
  3. Type "help" for help.
  4.  
  5. mastodon_production=# \d+ statuses
  6. Table "public.statuses"
  7. Column | Type | Modifiers | Storage | Stats target | Description
  8. ------------------------+-----------------------------+-------------------------------------------------+----------+--------------+-------------
  9. id | bigint | not null default timestamp_id('statuses'::text) | plain | |
  10. uri | character varying | | extended | |
  11. text | text | not null default ''::text | extended | |
  12. created_at | timestamp without time zone | not null | plain | |
  13. updated_at | timestamp without time zone | not null | plain | |
  14. in_reply_to_id | bigint | | plain | |
  15. reblog_of_id | bigint | | plain | |
  16. url | character varying | | extended | |
  17. sensitive | boolean | not null default false | plain | |
  18. visibility | integer | not null default 0 | plain | |
  19. spoiler_text | text | not null default ''::text | extended | |
  20. reply | boolean | not null default false | plain | |
  21. favourites_count | integer | not null default 0 | plain | |
  22. reblogs_count | integer | not null default 0 | plain | |
  23. language | character varying | | extended | |
  24. conversation_id | bigint | | plain | |
  25. local | boolean | | plain | |
  26. account_id | bigint | not null | plain | |
  27. application_id | bigint | | plain | |
  28. in_reply_to_account_id | bigint | | plain | |
  29. Indexes:
  30. "statuses_pkey" PRIMARY KEY, btree (id)
  31. "index_statuses_20180106" btree (account_id, id DESC, visibility, updated_at)
  32. "index_statuses_on_conversation_id" btree (conversation_id)
  33. "index_statuses_on_in_reply_to_id" btree (in_reply_to_id)
  34. "index_statuses_on_reblog_of_id_and_account_id" btree (reblog_of_id, account_id)
  35. Foreign-key constraints:
  36. "fk_9bda1543f7" FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE
  37. "fk_c7fa917661" FOREIGN KEY (in_reply_to_account_id) REFERENCES accounts(id) ON DELETE SET NULL
  38. "fk_rails_256483a9ab" FOREIGN KEY (reblog_of_id) REFERENCES statuses(id) ON DELETE CASCADE
  39. "fk_rails_94a6f70399" FOREIGN KEY (in_reply_to_id) REFERENCES statuses(id) ON DELETE SET NULL
  40. Referenced by:
  41. TABLE "favourites" CONSTRAINT "fk_b0e856845e" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  42. TABLE "statuses" CONSTRAINT "fk_rails_256483a9ab" FOREIGN KEY (reblog_of_id) REFERENCES statuses(id) ON DELETE CASCADE
  43. TABLE "media_attachments" CONSTRAINT "fk_rails_3ec0cfdd70" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE SET NULL
  44. TABLE "mentions" CONSTRAINT "fk_rails_59edbe2887" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  45. TABLE "status_pins" CONSTRAINT "fk_rails_65c05552f1" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  46. TABLE "statuses" CONSTRAINT "fk_rails_94a6f70399" FOREIGN KEY (in_reply_to_id) REFERENCES statuses(id) ON DELETE SET NULL
  47. TABLE "statuses_tags" CONSTRAINT "fk_rails_df0fe11427" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
  48. TABLE "deprecated_preview_cards" CONSTRAINT "fk_rails_e0cd3ac7fe" FOREIGN KEY (status_id) REFERENCES statuses(id) ON DELETE CASCADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement