Advertisement
clime

Untitled

Oct 18th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                          TABLE "public.web_member"
  2.         COLUMN         |           TYPE           |                        Modifiers                        
  3. -----------------------+--------------------------+---------------------------------------------------------
  4.  id                    | INTEGER                  | NOT NULL DEFAULT NEXTVAL('web_member_id_seq'::regclass)
  5.  name                  | CHARACTER VARYING(64)    | NOT NULL
  6.  phone                 | CHARACTER VARYING(32)    | NOT NULL
  7.  sex                   | INTEGER                  |
  8.  preff_difficulty_from | INTEGER                  |
  9.  preff_difficulty_to   | INTEGER                  |
  10.  latitude              | DOUBLE PRECISION         |
  11.  longitude             | DOUBLE PRECISION         |
  12.  location_index        | CHARACTER(24)            | NOT NULL
  13.  country_id            | INTEGER                  | NOT NULL DEFAULT 2
  14.  city                  | CHARACTER VARYING(64)    | NOT NULL
  15.  description           | text                     | NOT NULL
  16.  user_id               | INTEGER                  | NOT NULL
  17.  last_modified         | TIMESTAMP WITH TIME zone |
  18.  normalized_name       | CHARACTER VARYING(64)    | NOT NULL
  19.  date_joined           | TIMESTAMP WITH TIME zone |
  20. Indexes:
  21.     "web_member_pkey" PRIMARY KEY, btree (id)
  22.     "web_member_user_id_uniq" UNIQUE CONSTRAINT, btree (user_id)
  23.     "web_member_country_id" btree (country_id)
  24.     "web_member_location_index" btree (location_index)
  25.     "web_member_user_id" btree (user_id)
  26. Foreign-KEY constraints:
  27.     "country_id_refs_id_da95fd32a0949f0" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
  28.     "user_id_refs_id_197cdfaff9279c92" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  29. Referenced BY:
  30.     TABLE "web_route" CONSTRAINT "added_by_id_refs_id_157791930f5e12d5" FOREIGN KEY (added_by_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  31.     TABLE "web_crag" CONSTRAINT "added_by_id_refs_id_1745ebe43b31bec6" FOREIGN KEY (added_by_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  32.     TABLE "web_media" CONSTRAINT "added_by_id_refs_id_29e8560d89e8af62" FOREIGN KEY (added_by_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  33.     TABLE "web_comment" CONSTRAINT "author_id_refs_id_64c699bea28c99e9" FOREIGN KEY (author_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  34.     TABLE "web_media_members" CONSTRAINT "member_id_refs_id_4cc8ce6dd79993f6" FOREIGN KEY (member_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  35.     TABLE "web_eventparticipant" CONSTRAINT "member_id_refs_id_6542f66c2e273db6" FOREIGN KEY (member_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  36.     TABLE "web_event" CONSTRAINT "owned_by_id_refs_id_5b47892dfdc4d292" FOREIGN KEY (owned_by_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  37.     TABLE "web_messagerecipient" CONSTRAINT "recipient_id_refs_id_3ea959c00c27f261" FOREIGN KEY (recipient_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  38.     TABLE "web_message" CONSTRAINT "sender_id_refs_id_72ba9faa2a1c0547" FOREIGN KEY (sender_id) REFERENCES web_member(id) DEFERRABLE INITIALLY DEFERRED
  39. Triggers:
  40.     save_normalized_member_name AFTER INSERT OR UPDATE ON web_member FOR EACH ROW EXECUTE PROCEDURE save_normalized_member_name()
  41.     set_member_location_index BEFORE INSERT OR UPDATE ON web_member FOR EACH ROW EXECUTE PROCEDURE set_member_location_index()
  42.  
  43.  
  44.  
  45.                                       TABLE "public.watson_searchentry"
  46.      COLUMN      |          TYPE           |                            Modifiers                            
  47. -----------------+-------------------------+-----------------------------------------------------------------
  48.  id              | INTEGER                 | NOT NULL DEFAULT NEXTVAL('watson_searchentry_id_seq'::regclass)
  49.  engine_slug     | CHARACTER VARYING(200)  | NOT NULL
  50.  content_type_id | INTEGER                 | NOT NULL
  51.  object_id       | text                    | NOT NULL
  52.  object_id_int   | INTEGER                 |
  53.  title           | CHARACTER VARYING(1000) | NOT NULL
  54.  description     | text                    | NOT NULL
  55.  content         | text                    | NOT NULL
  56.  url             | CHARACTER VARYING(1000) | NOT NULL
  57.  meta_encoded    | text                    | NOT NULL
  58.  search_tsv      | tsvector                | NOT NULL
  59. Indexes:
  60.     "watson_searchentry_pkey" PRIMARY KEY, btree (id)
  61.     "watson_searchentry_content_type_id" btree (content_type_id)
  62.     "watson_searchentry_engine_slug" btree (engine_slug)
  63.     "watson_searchentry_engine_slug_like" btree (engine_slug varchar_pattern_ops)
  64.     "watson_searchentry_object_id_int" btree (object_id_int)
  65.     "watson_searchentry_search_tsv" gin (search_tsv)
  66. Foreign-KEY constraints:
  67.     "content_type_id_refs_id_21a2c219b8bb212f" FOREIGN KEY (content_type_id) REFERENCES django_content_type(id) DEFERRABLE INITIALLY DEFERRED
  68. Triggers:
  69.     watson_searchentry_trigger BEFORE INSERT OR UPDATE ON watson_searchentry FOR EACH ROW EXECUTE PROCEDURE watson_searchentry_trigger_handler()
  70.  
  71.  
  72.  
  73.                                      TABLE "public.web_user"
  74.     COLUMN     |           TYPE           |                       Modifiers                      
  75. ---------------+--------------------------+-------------------------------------------------------
  76.  id            | INTEGER                  | NOT NULL DEFAULT NEXTVAL('web_user_id_seq'::regclass)
  77.  password      | CHARACTER VARYING(128)   | NOT NULL
  78.  last_login    | TIMESTAMP WITH TIME zone | NOT NULL
  79.  is_superuser  | BOOLEAN                  | NOT NULL
  80.  email         | CHARACTER VARYING(75)    | NOT NULL
  81.  is_active     | BOOLEAN                  | NOT NULL
  82.  is_staff      | BOOLEAN                  | NOT NULL
  83.  date_created  | TIMESTAMP WITH TIME zone |
  84.  last_modified | TIMESTAMP WITH TIME zone |
  85. Indexes:
  86.     "web_user_pkey" PRIMARY KEY, btree (id)
  87.     "web_user_email_key" UNIQUE CONSTRAINT, btree (email)
  88.     "web_user_email_like" btree (email varchar_pattern_ops)
  89. Referenced BY:
  90.     TABLE "djangoratings_similaruser" CONSTRAINT "from_user_id_refs_id_4bf6919558e6e464" FOREIGN KEY (from_user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  91.     TABLE "djangoratings_similaruser" CONSTRAINT "to_user_id_refs_id_4bf6919558e6e464" FOREIGN KEY (to_user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  92.     TABLE "web_member" CONSTRAINT "user_id_refs_id_197cdfaff9279c92" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  93.     TABLE "djangoratings_ignoredobject" CONSTRAINT "user_id_refs_id_1c7310623ccfde79" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  94.     TABLE "djangoratings_vote" CONSTRAINT "user_id_refs_id_332b4e96bf1fa6c7" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  95.     TABLE "web_user_groups" CONSTRAINT "user_id_refs_id_3995dbc0686a6e33" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  96.     TABLE "web_user_user_permissions" CONSTRAINT "user_id_refs_id_69b47a84ab5eab1f" FOREIGN KEY (user_id) REFERENCES web_user(id) DEFERRABLE INITIALLY DEFERRED
  97.  
  98.  
  99.  
  100.                                      TABLE "public.web_country"
  101.     COLUMN     |           TYPE           |                        Modifiers                        
  102. ---------------+--------------------------+----------------------------------------------------------
  103.  id            | INTEGER                  | NOT NULL DEFAULT NEXTVAL('web_country_id_seq'::regclass)
  104.  name          | CHARACTER VARYING(64)    | NOT NULL
  105.  code          | CHARACTER VARYING(2)     | NOT NULL
  106.  date_created  | TIMESTAMP WITH TIME zone |
  107.  last_modified | TIMESTAMP WITH TIME zone |
  108. Indexes:
  109.     "web_country_pkey" PRIMARY KEY, btree (id)
  110.     "web_country_name" btree (name)
  111. Referenced BY:
  112.     TABLE "web_crag" CONSTRAINT "country_id_refs_id_1384050a9bd763af" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
  113.     TABLE "web_city" CONSTRAINT "country_id_refs_id_55d3b49fd200671" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
  114.     TABLE "web_event" CONSTRAINT "country_id_refs_id_5f487906379304d7" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
  115.     TABLE "web_eventdestination" CONSTRAINT "country_id_refs_id_a7787a11041d874" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
  116.     TABLE "web_member" CONSTRAINT "country_id_refs_id_da95fd32a0949f0" FOREIGN KEY (country_id) REFERENCES web_country(id) DEFERRABLE INITIALLY DEFERRED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement