/*
 Navicat Premium Data Transfer

 Source Server         : 96 Server 5433
 Source Server Type    : PostgreSQL
 Source Server Version : 100003
 Source Host           : 192.168.8.96:5433
 Source Catalog        : Hims_21_June_2021
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 100003
 File Encoding         : 65001

 Date: 18/04/2022 14:49:29
*/


-- ----------------------------
-- Table structure for LocationAccountMap
-- ----------------------------
DROP TABLE IF EXISTS "public"."LocationAccountMap";
CREATE TABLE "public"."LocationAccountMap" (
  "LocationAccountMapId" serial,
  "LocationId" int4 NOT NULL,
  "AccountId" int4 NOT NULL
)
;

-- ----------------------------
-- Primary Key structure for table LocationAccountMap
-- ----------------------------
ALTER TABLE "public"."LocationAccountMap" ADD CONSTRAINT "LocationAccountMap_pkey" PRIMARY KEY ("LocationAccountMapId");

-- ----------------------------
-- Foreign Keys structure for table LocationAccountMap
-- ----------------------------
ALTER TABLE "public"."LocationAccountMap" ADD CONSTRAINT "FK_LocationAccountMap_AccountId" FOREIGN KEY ("AccountId") REFERENCES "public"."Account" ("AccountId") ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE "public"."LocationAccountMap" ADD CONSTRAINT "FK_LocationAccountMap_LocationId" FOREIGN KEY ("LocationId") REFERENCES "public"."Location" ("LocationId") ON DELETE CASCADE ON UPDATE CASCADE;
