Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eav strategies #346

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions packages/api/scripts/init.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


-- ************************************** webhooks_reponses

CREATE TABLE webhooks_reponses
Expand Down Expand Up @@ -231,7 +230,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 )
);

Expand Down Expand Up @@ -263,9 +262,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 )
);

Expand Down Expand Up @@ -324,13 +323,15 @@ 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 )
);



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';


Expand Down Expand Up @@ -1133,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,
Expand Down
Loading