feat(fullstack): Add logical AND and OR operators to seed files, add Sensitiviäts-Check
This commit is contained in:
@@ -68,12 +68,13 @@ create table form_element_options
|
||||
form_element_id uuid not null,
|
||||
col_config_filter_expected_val varchar(255),
|
||||
col_config_filter_operator varchar(255) check (col_config_filter_operator in
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY',
|
||||
'IS_NOT_EMPTY')),
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY',
|
||||
'CONTAINS', 'NOT_CONTAINS')),
|
||||
col_config_source_table_ref varchar(255),
|
||||
label varchar(255) not null,
|
||||
option_value TEXT not null,
|
||||
row_constraint_table_reference varchar(255)
|
||||
row_constraint_table_reference varchar(255),
|
||||
visibility_conditions jsonb
|
||||
);
|
||||
|
||||
create table form_element
|
||||
@@ -89,9 +90,11 @@ create table form_element
|
||||
reference varchar(255),
|
||||
row_preset_filter_expected_val varchar(255),
|
||||
row_preset_filter_operator varchar(255) check (row_preset_filter_operator in
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY')),
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY', 'CONTAINS',
|
||||
'NOT_CONTAINS')),
|
||||
row_preset_source_table_ref varchar(255),
|
||||
title varchar(255),
|
||||
visibility_conditions jsonb,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
@@ -141,7 +144,8 @@ create table section_spawn_triggers
|
||||
section_spawn_condition_type varchar(255) check (section_spawn_condition_type in ('SHOW', 'HIDE')),
|
||||
section_spawn_expected_value varchar(255),
|
||||
section_spawn_operator varchar(255) check (section_spawn_operator in
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY')),
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY', 'CONTAINS',
|
||||
'NOT_CONTAINS')),
|
||||
template_reference varchar(255)
|
||||
);
|
||||
|
||||
@@ -169,16 +173,6 @@ create table uploaded_file
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table visibility_conditions
|
||||
(
|
||||
form_element_id uuid not null,
|
||||
form_element_condition_type varchar(255) check (form_element_condition_type in ('SHOW', 'HIDE')),
|
||||
form_element_expected_value varchar(255),
|
||||
form_element_operator varchar(255) check (form_element_operator in
|
||||
('EQUALS', 'NOT_EQUALS', 'IS_EMPTY', 'IS_NOT_EMPTY')),
|
||||
source_form_element_reference varchar(255)
|
||||
);
|
||||
|
||||
alter table if exists application_form
|
||||
add constraint FKhtad5onoy2jknhtyfmx6cvvey
|
||||
foreign key (created_by_id)
|
||||
@@ -259,8 +253,3 @@ alter table if exists uploaded_file
|
||||
add constraint FKtg323a9339lx0do79gu4eftao
|
||||
foreign key (uploaded_by_id)
|
||||
references app_user;
|
||||
|
||||
alter table if exists visibility_conditions
|
||||
add constraint FK5xuf7bd179ogpq5a1m3g8q7jb
|
||||
foreign key (form_element_id)
|
||||
references form_element;
|
||||
|
||||
Reference in New Issue
Block a user