Skip to content

Instantly share code, notes, and snippets.

@sgrif

sgrif/schema.txt Secret

Created December 11, 2016 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgrif/e4dc082ec1da7c4464d8a08c292fbeb6 to your computer and use it in GitHub Desktop.
Save sgrif/e4dc082ec1da7c4464d8a08c292fbeb6 to your computer and use it in GitHub Desktop.
Table "public.posts"
Column | Type | Modifiers | Storage | Stats target | Description
---------+-------------------+----------------------------------------------------+----------+--------------+-------------
id | integer | not null default nextval('posts_id_seq'::regclass) | plain | |
user_id | integer | not null | plain | |
title | character varying | not null | extended | |
body | text | | extended | |
Indexes:
"posts_pkey" PRIMARY KEY, btree (id)
Foreign-key constraints:
"posts_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id)
[local] sean@db_driver_benchmarks=# \d+ users
Table "public.users"
Column | Type | Modifiers | Storage | Stats target | Description
------------+-------------------+----------------------------------------------------+----------+--------------+-------------
id | integer | not null default nextval('users_id_seq'::regclass) | plain | |
name | character varying | not null | extended | |
hair_color | character varying | | extended | |
Indexes:
"users_pkey" PRIMARY KEY, btree (id)
Referenced by:
TABLE "posts" CONSTRAINT "posts_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment