/*
 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:15
*/


-- ----------------------------
-- Table structure for Location
-- ----------------------------
DROP TABLE IF EXISTS "public"."Location";
CREATE TABLE "public"."Location" (
  "LocationId" serial,
  "Name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "CreatedBy" int4 NOT NULL,
  "CreatedDate" timestamp(6) NOT NULL
)
;

-- ----------------------------
-- Records of Location
-- ----------------------------
INSERT INTO "public"."Location"("Name","CreatedBy","CreatedDate") VALUES ( 'Hitech City', 1029, now());
INSERT INTO "public"."Location"("Name","CreatedBy","CreatedDate") VALUES ('Uppal', 1029, now());

-- ----------------------------
-- Primary Key structure for table Location
-- ----------------------------
ALTER TABLE "public"."Location" ADD CONSTRAINT "Location_pkey" PRIMARY KEY ("LocationId");

-- ----------------------------
-- Foreign Keys structure for table Location
-- ----------------------------
ALTER TABLE "public"."Location" ADD CONSTRAINT "FK_Location_CreatedBy" FOREIGN KEY ("CreatedBy") REFERENCES "public"."Account" ("AccountId") ON DELETE NO ACTION ON UPDATE NO ACTION;
