@@ -662,7 +662,11 @@ CREATE TABLE reference_values (
662662 id bigint NOT NULL ,
663663 created_at timestamp with time zone NOT NULL ,
664664 updated_at timestamp with time zone NOT NULL ,
665- node_function_id bigint NOT NULL
665+ node_function_id bigint NOT NULL ,
666+ depth integer DEFAULT 0 NOT NULL ,
667+ node integer DEFAULT 0 NOT NULL ,
668+ scope integer [] DEFAULT ' {}' ::integer [] NOT NULL ,
669+ data_type_identifier_id bigint NOT NULL
666670);
667671
668672CREATE SEQUENCE reference_values_id_seq
@@ -1197,6 +1201,8 @@ CREATE INDEX index_parameter_definitions_on_runtime_parameter_definition_id ON p
11971201
11981202CREATE INDEX index_reference_paths_on_reference_value_id ON reference_paths USING btree (reference_value_id);
11991203
1204+ CREATE INDEX index_reference_values_on_data_type_identifier_id ON reference_values USING btree (data_type_identifier_id);
1205+
12001206CREATE INDEX index_reference_values_on_node_function_id ON reference_values USING btree (node_function_id);
12011207
12021208CREATE INDEX index_runtime_function_definitions_on_return_type_id ON runtime_function_definitions USING btree (return_type_id);
@@ -1354,6 +1360,9 @@ ALTER TABLE ONLY flow_type_settings
13541360ALTER TABLE ONLY flows
13551361 ADD CONSTRAINT fk_rails_ab927e0ecb FOREIGN KEY (project_id) REFERENCES namespace_projects(id) ON DELETE CASCADE ;
13561362
1363+ ALTER TABLE ONLY reference_values
1364+ ADD CONSTRAINT fk_rails_bb34a5d62c FOREIGN KEY (data_type_identifier_id) REFERENCES data_type_identifiers(id) ON DELETE RESTRICT;
1365+
13571366ALTER TABLE ONLY flows
13581367 ADD CONSTRAINT fk_rails_bb587eff6a FOREIGN KEY (input_type_id) REFERENCES data_types(id) ON DELETE RESTRICT;
13591368
0 commit comments