NLinker icon

internal_mapping

NLinker | PRO | 12/13/16 04:40:11 AM UTC | 0 ⭐ | 7285 👁️ | Never ⏰ | []
PostgreSQL |

1.19 KB

|

None

|

0 👍

/

0 👎

CREATE TABLE apple_internal_mapping
(
  id             BIGSERIAL PRIMARY KEY NOT NULL,
  from_uuid      UUID                  NOT NULL,
  to_uuid        UUID                  NOT NULL,
  to_provider_id INTEGER               NOT NULL,
  entity_type    INTEGER               NOT NULL
);
CREATE INDEX apple_internal_mapping_from_uuid_idx
  ON apple_internal_mapping USING BTREE (from_uuid);
CREATE UNIQUE INDEX apple_internal_mapping_unique_idx
  ON apple_internal_mapping (from_uuid, to_uuid);
CREATE INDEX apple_internal_mapping_entity_type_idx
  ON apple_internal_mapping (entity_type);
 
CREATE TABLE spotify_internal_mapping
(
  id             BIGSERIAL PRIMARY KEY NOT NULL,
  from_uuid      UUID                  NOT NULL,
  to_uuid        UUID                  NOT NULL,
  to_provider_id INTEGER               NOT NULL,
  entity_type    INTEGER               NOT NULL
);
CREATE INDEX spotify_internal_mapping_from_uuid_idx
  ON spotify_internal_mapping USING BTREE (from_uuid);
CREATE UNIQUE INDEX spotify_internal_mapping_unique_idx
  ON spotify_internal_mapping (from_uuid, to_uuid);
CREATE INDEX spotify_internal_mapping_entity_type_idx
  ON spotify_internal_mapping (entity_type);

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎