@@ -14,14 +14,29 @@ CREATE TABLE IF NOT EXISTS sessions_archive (
1414 archived_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
1515);
1616
17- CREATE TABLE IF NOT EXISTS transactions_archive (
17+ CREATE TABLE IF NOT EXISTS pending_transactions_archive (
1818 id UUID PRIMARY KEY ,
1919 session_id UUID NOT NULL ,
2020 timestamp TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
2121 operation VARCHAR (20 ) NOT NULL CHECK (operation IN (' getfacl' , ' setfacl' )),
2222 target_path TEXT NOT NULL ,
2323 entries JSONB NOT NULL DEFAULT ' []' ::jsonb,
24- status TEXT CHECK (status IN (' pending' , ' success' , ' failed' )) NOT NULL ,
24+ status TEXT CHECK (status IN (' pending' )) NOT NULL ,
25+ error_msg TEXT ,
26+ output TEXT ,
27+ executed_by VARCHAR (255 ) NOT NULL ,
28+ duration_ms BIGINT ,
29+ created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
30+ );
31+
32+ CREATE TABLE IF NOT EXISTS results_transactions_archive (
33+ id UUID PRIMARY KEY ,
34+ session_id UUID NOT NULL ,
35+ timestamp TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
36+ operation VARCHAR (20 ) NOT NULL CHECK (operation IN (' getfacl' , ' setfacl' )),
37+ target_path TEXT NOT NULL ,
38+ entries JSONB NOT NULL DEFAULT ' []' ::jsonb,
39+ status TEXT CHECK (status IN (' success' , ' failed' )) NOT NULL ,
2540 error_msg TEXT ,
2641 output TEXT ,
2742 executed_by VARCHAR (255 ) NOT NULL ,
0 commit comments