 CREATE TABLE "enumval" (
   "id" serial NOT NULL,
   "enum_id" integer,
-  "value" text,
+  "value" citext,
   "layout_id" integer,
   "deleted" smallint DEFAULT 0 NOT NULL,
   "parent" integer,

  "id" serial NOT NULL,
  "firstname" character varying(45),
  "surname" character varying(45),
  "email" character varying(45),
  "username" character varying(45),
  "title" integer,
  "organisation" integer,
  "telephone" character varying(128),

  "id" serial NOT NULL,
  "record_id" integer NOT NULL,
  "layout_id" integer NOT NULL,
  "value" citext,
  PRIMARY KEY ("id"),
  CONSTRAINT "calcval_ux_record_layout" UNIQUE ("record_id", "layout_id")
);
