alter table "LookupValue" add column "RowColor" character varying(30);

------	

	
	alter table "ScanMachineAvailability" add column  "ReferenceBreakId" integer;
   alter table "ScanMachineAvailability" add column "ReferenceBlockId" integer;
	
alter table "ScanMachineAvailability" add CONSTRAINT "FK_ScanMachineAvailability_ReferenceBlockId" FOREIGN KEY ("ReferenceBlockId")
        REFERENCES public."LookupValue" ("LookupValueId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE;
		
		
	
alter table "ScanMachineAvailability" add CONSTRAINT "FK_ScanMachineAvailability_ReferenceBreakId" FOREIGN KEY ("ReferenceBreakId")
        REFERENCES public."LookupValue" ("LookupValueId") MATCH SIMPLE
        ON UPDATE CASCADE
        ON DELETE CASCADE;

----

 INSERT INTO public."Lookup"(
	"LookupId", "Name", "Description")
	VALUES (21, 'ScanAvailabilityBlock','ScanAvailabilityBlocks' );


----

		 INSERT INTO public."Lookup"(
	"LookupId", "Name", "Description")
	VALUES (20, 'ScanAvailabilityBreak','ScanAvailabilityBreaks' );

----

INSERT INTO public."LookupValue"(
	 "LookupId", "Name")
	VALUES (21, 'Temporary Block'),
	(21,'Permanant Block'),
	(21,'Available'),
	(21,'UnAvailable');


----


INSERT INTO public."LookupValue"(
	 "LookupId", "Name")
	VALUES (20, 'Lunch Break'),
	(20,'Coffee Break'),
	(20,'Tea Break'),
	(20,'Available');

------