Advertisement
NLinker

internal_mapping

Dec 12th, 2016
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE apple_internal_mapping
  2. (
  3.   id             BIGSERIAL PRIMARY KEY NOT NULL,
  4.   from_uuid      UUID                  NOT NULL,
  5.   to_uuid        UUID                  NOT NULL,
  6.   to_provider_id INTEGER               NOT NULL,
  7.   entity_type    INTEGER               NOT NULL
  8. );
  9. CREATE INDEX apple_internal_mapping_from_uuid_idx
  10.   ON apple_internal_mapping USING BTREE (from_uuid);
  11. CREATE UNIQUE INDEX apple_internal_mapping_unique_idx
  12.   ON apple_internal_mapping (from_uuid, to_uuid);
  13. CREATE INDEX apple_internal_mapping_entity_type_idx
  14.   ON apple_internal_mapping (entity_type);
  15.  
  16. CREATE TABLE spotify_internal_mapping
  17. (
  18.   id             BIGSERIAL PRIMARY KEY NOT NULL,
  19.   from_uuid      UUID                  NOT NULL,
  20.   to_uuid        UUID                  NOT NULL,
  21.   to_provider_id INTEGER               NOT NULL,
  22.   entity_type    INTEGER               NOT NULL
  23. );
  24. CREATE INDEX spotify_internal_mapping_from_uuid_idx
  25.   ON spotify_internal_mapping USING BTREE (from_uuid);
  26. CREATE UNIQUE INDEX spotify_internal_mapping_unique_idx
  27.   ON spotify_internal_mapping (from_uuid, to_uuid);
  28. CREATE INDEX spotify_internal_mapping_entity_type_idx
  29.   ON spotify_internal_mapping (entity_type);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement