Skip to content
Snippets Groups Projects
Verified Commit af2f5ba4 authored by Damien's avatar Damien
Browse files

FEAT #12509 TIME 0:30 Custom fields contacts

parent 7f527296
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,32 @@ CREATE TABLE resources_custom_fields
WITH (OIDS=FALSE);
/* CONTACTS CUSTOM FIELDS */
DROP TABLE IF EXISTS contacts_custom_fields_list;
CREATE TABLE contacts_custom_fields_list
(
id serial NOT NULL,
label character varying(256) NOT NULL,
type character varying(256) NOT NULL,
values jsonb,
CONSTRAINT contacts_custom_fields_list_pkey PRIMARY KEY (id),
CONSTRAINT contacts_custom_fields_list_unique_key UNIQUE (label)
)
WITH (OIDS=FALSE);
DROP TABLE IF EXISTS contacts_custom_fields;
CREATE TABLE contacts_custom_fields
(
id serial NOT NULL,
contact_id INTEGER NOT NULL,
custom_field_id INTEGER NOT NULL,
value jsonb NOT NULL,
CONSTRAINT contacts_custom_fields_pkey PRIMARY KEY (id),
CONSTRAINT contacts_custom_fields_unique_key UNIQUE (contact_id, custom_field_id)
)
WITH (OIDS=FALSE);
/* INDEXING MODELS */
DROP TABLE IF EXISTS indexing_models;
CREATE TABLE indexing_models
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment