From e79c665905a1ab922503b7af7cf2c9552a127860 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Wed, 3 Apr 2024 15:26:29 +0300 Subject: [PATCH 1/2] :card_file_box: Added fields for enabling connection strategies --- packages/api/scripts/init.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/api/scripts/init.sql b/packages/api/scripts/init.sql index f63cb3b1a..3277e46c2 100644 --- a/packages/api/scripts/init.sql +++ b/packages/api/scripts/init.sql @@ -231,7 +231,7 @@ CREATE TABLE cs_values ( id_cs_value uuid NOT NULL, value text NOT NULL, - id_ct_attribute uuid NOT NULL, + id_cs_attribute uuid NOT NULL, CONSTRAINT PK_ct_values PRIMARY KEY ( id_cs_value ) ); @@ -263,9 +263,9 @@ CREATE TABLE cs_entities CREATE TABLE cs_attributes ( id_cs_attribute uuid NOT NULL, - id_cs_entity uuid NOT NULL, attribute_slug text NOT NULL, data_type text NOT NULL, + id_cs_entity uuid NOT NULL, CONSTRAINT PK_ct_attributes PRIMARY KEY ( id_cs_attribute ) ); @@ -324,6 +324,7 @@ CREATE TABLE crm_deals_stages CREATE TABLE connection_strategies ( id_connection_strategy uuid NOT NULL, + status boolean NOT NULL, type text NOT NULL, id_project uuid NULL, CONSTRAINT PK_connection_strategies PRIMARY KEY ( id_connection_strategy ) @@ -331,6 +332,7 @@ CREATE TABLE connection_strategies +COMMENT ON COLUMN connection_strategies.status IS 'if the connection strategy should overwrite default strategy (from env)'; COMMENT ON COLUMN connection_strategies.type IS 'OAUTH2, API_KEY, PIPEDRIVE_CLOUD_OAUTH, PIPEDRIVE_CLOUD_API, HUBSPOT_CLOUD'; From b70730a723f8d3723b41c954092c0e37e19224af Mon Sep 17 00:00:00 2001 From: Rachid F Date: Mon, 8 Apr 2024 23:37:14 +0200 Subject: [PATCH 2/2] :card_file_box: Added status to connection strategies --- packages/api/scripts/init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/scripts/init.sql b/packages/api/scripts/init.sql index 3277e46c2..e48cd18e6 100644 --- a/packages/api/scripts/init.sql +++ b/packages/api/scripts/init.sql @@ -1,5 +1,4 @@ - -- ************************************** webhooks_reponses CREATE TABLE webhooks_reponses @@ -1135,6 +1134,7 @@ CREATE TABLE connections id_connection uuid NOT NULL, status text NOT NULL, provider_slug text NOT NULL, + vertical text NOT NULL, account_url text NULL, token_type text NOT NULL, access_token text NULL,