diff --git a/workspace/create/00-core-tables.sql b/workspace/create/00-core-tables.sql index 97abe980348e86f49a5e9a834a157668389fd5ab..f116bc8a0c130fff1589e1cd63bc75cd9002a859 100644 --- a/workspace/create/00-core-tables.sql +++ b/workspace/create/00-core-tables.sql @@ -37,6 +37,7 @@ CREATE TABLE input_answer ( id SERIAL PRIMARY KEY, id_form_answer INTEGER, id_input INTEGER, + id_sub_form INTEGER, value TEXT, placement INTEGER ); @@ -75,3 +76,9 @@ CREATE TABLE form_user ( enabled BOOLEAN, forms INTEGER ); + +CREATE TABLE sub_form ( + id SERIAL PRIMARY KEY, + id_input INTEGER, + id_content_form INTEGER +); diff --git a/workspace/fixture/input_answer.csv b/workspace/fixture/input_answer.csv index 97b09ae491004204f8638d38119059812bd8ed62..4fd9955b1c7a8a891aaa0305b932a243a19a0578 100644 --- a/workspace/fixture/input_answer.csv +++ b/workspace/fixture/input_answer.csv @@ -1,15 +1,15 @@ -id;id_form_answer;id_input;value;placement -1; 1; 6;Answer to Question 1 Form 3; 0 -2; 1; 7;Answer to Question 2 Form 3; 0 -3; 2; 4;Answer to Question 2 Form 2; 0 -4; 2; 5;Answer to Question 1 Form 2; 0 -5; 3; 1;Answer to Question 1 Form 1; 0 -6; 3; 2;Answer to Question 2 Form 1; 0 -7; 3; 3;Answer to Question 3 Form 1; 0 -8; 4; 4;Answer to Question 2 Form 2; 0 -9; 4; 5;Answer to Question 1 Form 2; 0 -10; 5; 6;Answer to Question 1 Form 3; 0 -11; 5; 7;Answer to Question 2 Form 3; 0 -12; 6; 1;Answer to Question 1 Form 1; 0 -13; 6; 2;Answer to Question 2 Form 1; 0 -14; 6; 3;Answer to Question 3 Form 1; 0 +id;id_form_answer;id_input;id_sub_form;value;placement +1; 1; 6;;Answer to Question 1 Form 3; 0 +2; 1; 7;;Answer to Question 2 Form 3; 0 +3; 2; 4;;Answer to Question 2 Form 2; 0 +4; 2; 5;;Answer to Question 1 Form 2; 0 +5; 3; 1;;Answer to Question 1 Form 1; 0 +6; 3; 2;;Answer to Question 2 Form 1; 0 +7; 3; 3;;Answer to Question 3 Form 1; 0 +8; 4; 4;;Answer to Question 2 Form 2; 0 +9; 4; 5;;Answer to Question 1 Form 2; 0 +10; 5; 6;;Answer to Question 1 Form 3; 0 +11; 5; 7;;Answer to Question 2 Form 3; 0 +12; 6; 1;;Answer to Question 1 Form 1; 0 +13; 6; 2;;Answer to Question 2 Form 1; 0 +14; 6; 3;;Answer to Question 3 Form 1; 0 diff --git a/workspace/fixture/sub_form.csv b/workspace/fixture/sub_form.csv new file mode 100644 index 0000000000000000000000000000000000000000..18cc684a3342d475cd57cdd051b8e4e07355ac99 --- /dev/null +++ b/workspace/fixture/sub_form.csv @@ -0,0 +1 @@ +id;id_input;id_content_form \ No newline at end of file