clime

web_member + watson_searchentry

Oct 18th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 5.06 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment