create sequence  "ANCCardGeneration_ANCCardGenerationId_seq";

CREATE TABLE IF NOT EXISTS public."ANCCardGeneration"
(
    "ANCCardGenerationId" integer NOT NULL DEFAULT nextval('"ANCCardGeneration_ANCCardGenerationId_seq"'::regclass),
    "Department" text,
	"ANCNo" character varying(255),
	"HusbandName"character varying(255),
	"HusbandAge" int,
	"Remarks" text,
	"RegistrationDate" text,
	"ANCNoExists" text,
    	"Active" boolean DEFAULT true,
	"ProviderId" integer NOT NULL,
    "PatientId" integer NOT NULL,
    CONSTRAINT "ANCCardGeneration_pkey" PRIMARY KEY ("ANCCardGenerationId"),
    CONSTRAINT "FK_ANCCardGeneration_PatientId" FOREIGN KEY ("PatientId")
        REFERENCES public."Patient" ("PatientId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION,
    CONSTRAINT "FK_ANCCardGeneration_ProviderId" FOREIGN KEY ("ProviderId")
        REFERENCES public."Provider" ("ProviderId") MATCH SIMPLE
        ON UPDATE NO ACTION
        ON DELETE NO ACTION
   
)