diff --git a/workspace/create/00-core-tables.sql b/workspace/create/00-core-tables.sql index 5f4bba3502145400195fb4a391b0e2953c5baa29..a8fdae6fc3b93db9b731a2118ec07676e02c79a2 100644 --- a/workspace/create/00-core-tables.sql +++ b/workspace/create/00-core-tables.sql @@ -90,3 +90,19 @@ CREATE TABLE form_owner ( id_form INTEGER ); +CREATE TABLE tables ( + id SERIAL PRIMARY KEY, + table_id INTEGER, + row INTEGER, + column_t INTEGER, + value TEXT, + enabled BOOLEAN DEFAULT true, + CONSTRAINT table_id_row_col UNIQUE (table_id, row, column_t) +); + +/* CREATE SEQUENCE input_table_table_id_seq; */ +CREATE TABLE input_table ( + table_id SERIAL PRIMARY KEY, + input_id INTEGER +); +/* ALTER SEQUENCE input_table_table_id_seq OWNED BY input_table.table_id; */ diff --git a/workspace/fixture/input_operation.csv b/workspace/fixture/input_operation.csv index 53d4bebf7c28205333a8eec7a8b1706ec254abbf..822a058f7db4457a8fda04d918e7d21a3be9dd24 100644 --- a/workspace/fixture/input_operation.csv +++ b/workspace/fixture/input_operation.csv @@ -2,4 +2,5 @@ id;name 0;ADD 1;REMOVE 2;SWAP -3;REENABLED \ No newline at end of file +3;REENABLED +4;TABLE \ No newline at end of file