-- IMPORTANT NOTE where ever you see -- Uncomment, then uncomment next line(s) and run the command

BEGIN TRANSACTION;
-- SCHEMA: mobile
-- DROP SCHEMA IF EXISTS mobile ;
BEGIN TRANSACTION;
CREATE SCHEMA IF NOT EXISTS mobile
    AUTHORIZATION postgres;

-- Action Table
CREATE SEQUENCE IF NOT EXISTS "mobile"."ActionType_Seq";
CREATE TABLE IF NOT EXISTS "mobile"."ActionType" (
  "ActionTypeId" int4 NOT NULL DEFAULT nextval('"mobile"."ActionType_Seq"'::regclass),
  "Name" varchar(255) COLLATE "pg_catalog"."default",
  CONSTRAINT "ActionType_pkey" PRIMARY KEY ("ActionTypeId")
)
;

ALTER TABLE "mobile"."ActionType" 
  OWNER TO "postgres";

-- Warning Table
-- Table: mobile.WarningLog

-- DROP TABLE IF EXISTS mobile."WarningLog";

CREATE SEQUENCE IF NOT EXISTS mobile."WarningLog_Seq";
CREATE TABLE IF NOT EXISTS mobile."WarningLog"
(
    "WarningLogId" integer NOT NULL DEFAULT nextval('mobile."WarningLog_Seq"'::regclass),
    "Uuid" text COLLATE pg_catalog."default",
    "ActionTypeId" integer,
    "Message" text COLLATE pg_catalog."default",
    "Payload" text COLLATE pg_catalog."default",
    "Error" text COLLATE pg_catalog."default",
    "Date" text COLLATE pg_catalog."default" DEFAULT now(),
    "SupportIdName" text COLLATE pg_catalog."default",
    CONSTRAINT "WarningLog_pkey" PRIMARY KEY ("WarningLogId"),
    CONSTRAINT "FK_ActionTypeId" FOREIGN KEY ("ActionTypeId")
        REFERENCES mobile."ActionType" ("ActionTypeId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS mobile."WarningLog"
    OWNER to postgres;

-- Information Log Table
-- Table: mobile.InformationLog

-- DROP TABLE IF EXISTS mobile."InformationLog";

CREATE SEQUENCE IF NOT EXISTS mobile."InformationLog_Seq";
CREATE TABLE IF NOT EXISTS mobile."InformationLog"
(
    "InformationLogId" integer NOT NULL DEFAULT nextval('mobile."InformationLog_Seq"'::regclass),
    "Uuid" text COLLATE pg_catalog."default",
    "ActionTypeId" integer,
    "SupportId" integer,
    "Message" text COLLATE pg_catalog."default",
    "Date" timestamp(0) without time zone DEFAULT now(),
    "SupportIdName" text COLLATE pg_catalog."default",
    CONSTRAINT "InformationLog_pkey" PRIMARY KEY ("InformationLogId"),
    CONSTRAINT "FK_ActionTypeId" FOREIGN KEY ("ActionTypeId")
        REFERENCES mobile."ActionType" ("ActionTypeId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS mobile."InformationLog"
    OWNER to postgres;

-- Error Log table
CREATE SEQUENCE IF NOT EXISTS "mobile"."ErrorLog_Seq";
CREATE TABLE IF NOT EXISTS "mobile"."ErrorLog" (
  "ErrorLogId" int4 NOT NULL DEFAULT nextval('"mobile"."ErrorLog_Seq"'::regclass),
  "Uuid" text,
  "Level" varchar(255) COLLATE "pg_catalog"."default",
  "Message" text COLLATE "pg_catalog"."default",
  "Date" text COLLATE "pg_catalog"."default",
  "MachineName" varchar(255) COLLATE "pg_catalog"."default",
  "Logger" text COLLATE "pg_catalog"."default",
  "Properties" varchar(255) COLLATE "pg_catalog"."default",
  "CallSite" varchar(255) COLLATE "pg_catalog"."default",
  "Exception" text COLLATE "pg_catalog"."default",
  "IsRead" bool,
  "Payload" text COLLATE "pg_catalog"."default",
  "ClientIp" varchar(255) COLLATE "pg_catalog"."default",
  "Information" varchar(255) COLLATE "pg_catalog"."default",
  "Identity" varchar(255) COLLATE "pg_catalog"."default"
)
;

ALTER TABLE "mobile"."ErrorLog" 
  OWNER TO "postgres";

-- Action Table Data
INSERT INTO mobile."ActionType" ("ActionTypeId", "Name") VALUES(1, 'QM_CheckIn') ON CONFLICT DO NOTHING;
INSERT INTO mobile."ActionType" ("ActionTypeId", "Name") VALUES(2, 'QM_Start') ON CONFLICT DO NOTHING;
INSERT INTO mobile."ActionType" ("ActionTypeId", "Name") VALUES(3, 'QM_Complete') ON CONFLICT DO NOTHING;

-- ConsultLookupMaster Table
-- Table: mobile.ConsultLookupMaster

-- DROP TABLE IF EXISTS mobile."ConsultLookupMaster";
CREATE SEQUENCE IF NOT EXISTS "mobile"."ConsultLookupMaster_ConsultLookupMasterId_seq";
-- mobile."ConsultLookupMaster" definition

-- Drop table

-- DROP TABLE mobile."ConsultLookupMaster";

CREATE TABLE mobile."ConsultLookupMaster" (
	"ConsultLookupMasterId" serial4 NOT NULL,
	"Name" varchar(255) NOT NULL,
	"SpecializationId" int4 NOT NULL,
	"IsShow" bool NULL DEFAULT true,
	CONSTRAINT "ConsultLookupMaster_pkey" PRIMARY KEY ("ConsultLookupMasterId")
);

-- mobile."ConsultLookupMaster" foreign keys

ALTER TABLE mobile."ConsultLookupMaster" ADD CONSTRAINT "FK_SpecializationId" FOREIGN KEY ("SpecializationId") REFERENCES public."Specialization"("SpecializationId");

ALTER TABLE IF EXISTS mobile."ConsultLookupMaster"
    OWNER to postgres;


-- Table: mobile.ConsultLookup
-- DROP TABLE IF EXISTS mobile."ConsultLookup";
CREATE SEQUENCE IF NOT EXISTS "mobile"."ConsultLookup_ConsultLookupId_seq";
CREATE TABLE IF NOT EXISTS mobile."ConsultLookup"
(
    "ConsultLookupId" integer NOT NULL DEFAULT nextval('mobile."ConsultLookup_ConsultLookupId_seq"'::regclass),
    "Name" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Image" text COLLATE pg_catalog."default",
    "ConsultLookupMasterId" integer NOT NULL,
    "SpecializationMainId" integer,
    "ShowOnMainPage" boolean,
    CONSTRAINT "ConsultLookup_pkey" PRIMARY KEY ("ConsultLookupId"),
    CONSTRAINT "FK_ConsultLookup_ConsultLookupMasterId" FOREIGN KEY ("ConsultLookupMasterId")
        REFERENCES mobile."ConsultLookupMaster" ("ConsultLookupMasterId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_ConsultLookup_SpecializationMainId" FOREIGN KEY ("SpecializationMainId")
        REFERENCES public."Specialization" ("SpecializationId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)

TABLESPACE pg_default;

-- ConsultLookupMaster Data
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(1, 'Specialities', 49, false) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(2, 'Common Health Issues', 49, false) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(8, 'Stomach and Indigestion', 49, false) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(15, 'DMO', 50, false) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(22, 'MD Physician', 92, false) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(3, 'General Physician', 49, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(5, 'Dermatologist', 49, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(10, 'Sexologist', 49, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(11, 'Psychiatry', 49, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(12, 'Orthopedist', 49, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(6, 'ENT', 55, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(7, 'Obstetrician', 48, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(13, 'Gynecologist', 53, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(14, 'Neurology', 57, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(9, 'Urologogist', 56, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(16, 'Neonatal', 51, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(17, 'Cardiology', 58, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(18, 'Surgical Oncology', 59, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(19, 'Maternity', 54, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(20, 'Fetal Medicine', 52, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookupMaster" ("ConsultLookupMasterId", "Name", "SpecializationId", "IsShow") VALUES(21, 'Diabetology', 93, true) ON CONFLICT DO NOTHING;



-- ConsultLookup Data
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(37, 'Fever', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661943770/Consult%20Items/fever_qa84de.jpg', 3, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(27, 'Rheumatology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511470/Consult%20Items/rheumatology_ahqrxk.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(85, 'Incontinence', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/incontince_oagtxg.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(23, 'General Surgery', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/general-surgery_d63mre.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(100, 'Nausea', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664521101/Consult%20Items/nausea_xsjyqu.jpg', 18, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(68, 'Piles', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/piles_gfptnl.jpg', 8, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(74, 'Penis Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/penis-pain_i6cze4.jpg', 10, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(57, 'Sore Throat', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/sore-throat_ukdfu0.jpg', 6, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(51, 'Leg Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/leg-pain_t0cagg.jpg', 12, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(99, 'Swelling', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/swelling_lneazh.jpg', 18, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(70, 'Urinary Tract Infection', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/urinary-tract_shefma.jpg', 9, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(12, 'Neurology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/neurology_ktv8jx.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(71, 'Hiv Aids', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/hiv-aids_bfgna4.jpg', 10, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(90, 'Neonatal', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/neonatal_b6qqgj.jpg', 16, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(104, 'Diabetology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664044126/Consult%20Items/diabetology_araiwz.jpg', 21, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(87, 'Seizures', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/seizures_brsrrl.jpg', 14, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(41, 'Pimples & Acne', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661942020/Consult%20Items/Pimples-_-Acne_idn9qw.jpg', 5, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(42, 'Frequent Urination', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661943396/Consult%20Items/Frequent-Urination_blfaa6.jpg', 9, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(44, 'Flu', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661944252/Consult%20Items/flu_xeyatw.jpg', 3, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(45, 'Dry Eyes', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661946035/Consult%20Items/dry-eyes_vlnf2p.jpg', 3, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(46, 'Breathing Problems', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661946433/Consult%20Items/breathing-problems_c2ikyh.jpg', 3, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(47, 'Fatigue', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661946646/Consult%20Items/fatigue_cqfjew.jpg', 3, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(48, 'Pregnancy Issues', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661946896/Consult%20Items/pregnancy-issues_bgp6fc.jpg', 19, true) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(14, 'Diet and nutrition', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664043841/Consult%20Items/diet-and-nutrition_grmqhw.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(13, 'Cardiology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664043559/Consult%20Items/cardiology_px3sye.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(15, 'Diabetology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664044126/Consult%20Items/diabetology_araiwz.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(16, 'Eye and vision', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661946035/Consult%20Items/dry-eyes_vlnf2p.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(31, 'Acne', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1661942020/Consult%20Items/Pimples-_-Acne_idn9qw.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(64, 'Vaginal Discharge', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/vaginal-discharge_metxwg.jpg', 7, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(53, 'Vitilio', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/vitiligo_q3rhod.jpg', 5, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(25, 'Veterinary', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/veterinary_yftqru.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(10, 'Urology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/urology_zwsp1u.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(33, 'Thyroid', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473527/Consult%20Items/thyroid_bmgksv.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(58, 'Snoring', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/snoring_oh2wkw.jpg', 6, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(7, 'Stomach and digestion', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/stomatch-and-digestion_c8pfx3.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(6, 'Psychiatry', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/psychiatry_ij7ilj.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(11, 'Orthopedic', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/orthopedic_uuyby8.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(34, 'Headaches', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/headache_k6w3bs.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(54, 'Hair loss', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/hair-loss_mzeurj.jpg', 5, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(35, 'Fungal Infection', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/fungal-infection_baqm5z.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(39, 'Dizziness', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/dizziness_tm8hla.jpg', 3, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(19, 'Ayurveda', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/ayurveda_mcgrkf.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(75, 'Autism', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473521/Consult%20Items/autism_xq3ynd.jpg', 11, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(29, 'Stomach Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511471/Consult%20Items/stomach-pain_ojh1k6.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(80, 'Vaginal Bleeding', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664523324/Consult%20Items/vaginal-bleeding_f1dogv.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(95, 'Arrhythmia', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/arrhythmia_kzcclp.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(98, 'Congenital heart disease', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/congestive-heart-failure_jpsoqn.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(103, 'Fetal Medicine', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/fetal-medicine_atmo7j.jpg', 20, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(83, 'Vaginal odor', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/vaginal-odor_imxk27.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(50, 'Shoulder Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/shoulder-pain_keiwdb.jpg', 12, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(5, 'Sexology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/sexology_ibauz2.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(40, 'Pneumonia', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/pneumonia_uyufuv.jpg', 3, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(76, 'Schizophrenia', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/schizophrenia_ipyekh.jpg', 11, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(24, 'Psychological Counselling', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473526/Consult%20Items/psychological_hldpar.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(22, 'Physiotherapy', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/physiatheraphy_gsmny3.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(32, 'PCOS', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/pcos_kj0wpm.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(78, 'Panic Attack', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/panic-attack_t6kqaf.jpg', 11, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(8, 'Pediatrics', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/pediatrics_kuqt1r.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(49, 'Knee Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473525/Consult%20Items/knee-pain_m1i6lm.jpg', 12, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(63, 'Ovarian Cysts', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/ovarian-cysts_lyfidc.jpg', 7, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(61, 'Menopause', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/menopause_yujxsh.jpg', 7, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(66, 'Jaundice', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/jaundice_cyh5p0.jpg', 8, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(62, 'Irregular Periods', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/irregular-periods_uxcrlj.jpg', 7, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(38, 'High blood pressure', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/high-blod-pressure_jcdxct.jpg', 3, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(92, 'High blood pressure', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473524/Consult%20Items/high-blod-pressure_jcdxct.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(28, 'Gastroenterology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/gastroenterology_bcxudr.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(73, 'Erection Problems', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/erection-problems_uc68ca.jpg', 10, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(2, 'Gynaecology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/gynaecology_i3jt4a.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(52, 'Carpal Tunnel Syndrome', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/carpal-tunnel_bbsjfh.jpg', 12, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(77, 'Bipolar Disorder', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/bipolar-disorder_wyvslg.jpg', 11, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(21, 'Cancer', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/cancer_fmmgv0.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(17, 'Dental', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473523/Consult%20Items/dental_r5nqlo.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(67, 'Constipation', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/constipation_oayu0c.jpg', 8, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(26, 'Nephrology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/_nephrology_devuoo.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(36, 'Back Pain', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/back-pain_tcadtv.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(55, 'Acne Scars', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473522/Consult%20Items/acne-scars_lzgab4.jpg', 5, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(65, 'Acidity', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664473521/Consult%20Items/acidity_fyo880.jpg', 8, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(60, 'Mouth Sores', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511471/Consult%20Items/mouth-scores_fl1ixu.jpg', 6, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(59, 'Coughing', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511470/Consult%20Items/coughing_cdbttw.jpg', 6, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(20, 'Homeopathy', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511471/Consult%20Items/homeopathy_alcm6p.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(30, 'Vertigo', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511472/Consult%20Items/vertigo_wkk3pt.jpg', 2, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(4, 'Dermatology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664511471/Consult%20Items/dermatology_nyqeer.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(81, 'Bumps and blisters', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/bumps-and-bilsters_swdvkl.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(91, 'Colonary artery disease', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/colonary-artery-disease_nheas6.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(82, 'Breast issues', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/breast-issues_fv22nv.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(89, 'District Medical Officer', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/dmo_qwrtdy.jpg', 15, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(9, 'Ear, Nose, Throat', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/ent_ddb8zr.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(3, 'General Physician', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/general-physician_gmibep.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(84, 'Low libido', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/low-libido_w6577l.jpg', 13, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(102, 'Maternity', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/maternity_asg5qz.jpg', 19, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(18, 'Pulmonology', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/pulmonologiest_ubrwyx.jpg', 1, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(88, 'Loss of memory', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/loss-of-memory_kv8ehl.jpg', 14, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(96, 'Peripheral artery disease', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520579/Consult%20Items/peiphel-artery-disease_le1fh3.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(72, 'Premature Ejaculation', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/pe_gdvmpe.jpg', 10, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(69, 'Premature Ejaculation', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520578/Consult%20Items/pe_gdvmpe.jpg', 9, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(86, 'Loss of sensation', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664521102/Consult%20Items/loss-of-sensation_tv9pgd.jpg', 14, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(93, 'Cardiac arrest', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664521101/Consult%20Items/cardiac-arrest_qzjmwp.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(56, 'Dandruff', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664521101/Consult%20Items/dandruff_v9ifbg.jpg', 5, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(94, 'Congestive heart failure', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664520580/Consult%20Items/congestive-heart-failure_jpsoqn.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(97, 'Heart stroke', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664521315/Consult%20Items/heart-stroke_p3nypm.jpg', 17, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(105, 'MD Physician', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664523324/Consult%20Items/md-doctor_yjruwx.jpg', 22, NULL) ON CONFLICT DO NOTHING;
INSERT INTO mobile."ConsultLookup" ("ConsultLookupId", "Name", "Image", "ConsultLookupMasterId", "ShowOnMainPage") VALUES(79, 'Painful Periods', 'https://res.cloudinary.com/dosvsw89u/image/upload/v1664523324/Consult%20Items/painful-periods_wwa94y.jpg', 13, NULL) ON CONFLICT DO NOTHING;


-- Table: public.MobileAccount
-- Table: mobile.MobileAccount

-- DROP TABLE IF EXISTS mobile."MobileAccount";

CREATE SEQUENCE IF NOT EXISTS mobile."FirebaseAccount_FirebaseAccountId_seq";
CREATE TABLE IF NOT EXISTS mobile."MobileAccount"
(
    "MobileAccountId" integer NOT NULL DEFAULT nextval('mobile."FirebaseAccount_FirebaseAccountId_seq"'::regclass),
    "Uuid" text COLLATE pg_catalog."default" NOT NULL,
    "AccountId" integer NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "Email" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Password" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Otp" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Mobile" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "CountryCode" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    CONSTRAINT "FirebaseAccount_pkey" PRIMARY KEY ("MobileAccountId"),
    CONSTRAINT "UQ_MobileAccount_Email" UNIQUE ("Email"),
    CONSTRAINT "FK_AccountId_Account" FOREIGN KEY ("AccountId")
        REFERENCES public."Account" ("AccountId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS mobile."MobileAccount"
    OWNER to postgres;

-- Table: mobile.TempAccount

-- DROP TABLE IF EXISTS mobile."TempAccount";

CREATE SEQUENCE IF NOT EXISTS mobile."TempAccount_TempAccountId_seq";
CREATE TABLE IF NOT EXISTS mobile."TempAccount"
(
    "TempAccountId" integer NOT NULL DEFAULT nextval('mobile."TempAccount_TempAccountId_seq"'::regclass),
    "CountryCode" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Mobile" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Email" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "Otp" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    "CreatedDate" timestamp without time zone NOT NULL,
    "Password" character varying(255) COLLATE pg_catalog."default" NOT NULL,
    CONSTRAINT "TempAccount_pkey" PRIMARY KEY ("TempAccountId"),
    CONSTRAINT "UQ_TempAccount_Mobile" UNIQUE ("CountryCode", "Mobile"),
    CONSTRAINT "UQ_TempMobile_Email" UNIQUE ("Email")
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS mobile."TempAccount"
    OWNER to postgres;

GRANT ALL ON TABLE mobile."TempAccount" TO postgres;

GRANT ALL ON TABLE mobile."TempAccount" TO PUBLIC;

COMMIT;
-- Rollback