-- SEQUENCE: public.EncounterType_EncounterTypeId_seq

-- DROP SEQUENCE IF EXISTS public."EncounterType_EncounterTypeId_seq";

CREATE SEQUENCE IF NOT EXISTS public."EncounterType_EncounterTypeId_seq"
    INCREMENT 1
    START 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    CACHE 1;

ALTER SEQUENCE public."EncounterType_EncounterTypeId_seq"
    OWNER TO postgres;



-------------------------------------------------------------------------------------



-- Table: public.EncounterType

-- DROP TABLE IF EXISTS public."EncounterType";

CREATE TABLE IF NOT EXISTS public."EncounterType"
(
    "EncounterTypeId" integer NOT NULL DEFAULT nextval('"EncounterType_EncounterTypeId_seq"'::regclass),
    "EncounterName" character varying(150) COLLATE pg_catalog."default",
    "Active" boolean NOT NULL,
    "CreatedBy" integer NOT NULL,
    "CreatedDate" timestamp(6) without time zone,
    "ModifiedBy" integer,
    "ModifiedDate" timestamp(6) without time zone,
    CONSTRAINT "EncounterTypeId_pkey" PRIMARY KEY ("EncounterTypeId")
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS public."EncounterType"
    OWNER to postgres;