ALTER TABLE "AppointmentCheckPoints" 
RENAME COLUMN "AccountId" 
TO "CreatedBy";

ALTER TABLE "AppointmentCheckPoints" 
ALTER COLUMN "CreatedBy" 
DROP NOT NULL;

ALTER TABLE "AppointmentCheckPoints"
DROP COLUMN "RoleId";

ALTER TABLE "AppointmentCheckPoints"
ADD COLUMN "ExternalUserId" integer;

