 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,
  "record_id" integer NOT NULL,
  "layout_id" integer NOT NULL,
  "value" text,
  PRIMARY KEY ("id"),
  CONSTRAINT "calcval_ux_record_layout" UNIQUE ("record_id", "layout_id")
);

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