diff --git a/sql/structure.sql b/sql/structure.sql
index c8b335098556369399d3b94589af8eec713177b0..8ece6b218855e2411bf712f30b81b4600564931a 100755
--- a/sql/structure.sql
+++ b/sql/structure.sql
@@ -1883,7 +1883,17 @@ CONSTRAINT acknowledgment_receipts_pkey PRIMARY KEY (id)
 )
 WITH (OIDS=FALSE);
 
-DROP TABLE IF EXISTS indexing_models;
+CREATE TABLE custom_fields
+(
+    id serial NOT NULL,
+    label character varying(256) NOT NULL,
+    type character varying(256) NOT NULL,
+    values jsonb,
+    CONSTRAINT custom_fields_pkey PRIMARY KEY (id),
+    CONSTRAINT custom_fields_unique_key UNIQUE (label)
+)
+WITH (OIDS=FALSE);
+
 CREATE TABLE indexing_models
 (
     id SERIAL NOT NULL,
@@ -1897,17 +1907,6 @@ CREATE TABLE indexing_models
 )
 WITH (OIDS=FALSE);
 
-CREATE TABLE indexing_models
-(
-  id SERIAL NOT NULL,
-  label character varying(256) NOT NULL,
-  "default" BOOLEAN NOT NULL,
-  owner INTEGER NOT NULL,
-  private BOOLEAN NOT NULL,
-  CONSTRAINT indexing_models_pkey PRIMARY KEY (id)
-)
-WITH (OIDS=FALSE);
-
 CREATE TABLE indexing_models_fields
 (
     id SERIAL NOT NULL,