From 4cebfbabadfb6f500cf762923187017c47295961 Mon Sep 17 00:00:00 2001 From: madt1m Date: Fri, 20 Jul 2018 16:56:26 +0200 Subject: [PATCH] session: Implemented SessionDB Schema --- mitmproxy/io/sql/session_create.sql | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mitmproxy/io/sql/session_create.sql diff --git a/mitmproxy/io/sql/session_create.sql b/mitmproxy/io/sql/session_create.sql new file mode 100644 index 000000000..8387981c9 --- /dev/null +++ b/mitmproxy/io/sql/session_create.sql @@ -0,0 +1,26 @@ +CREATE TABLE FLOW ( +FID INTEGER PRIMARY KEY, +MID INTEGER, +BID INTEGER, +CONTENT BLOB +); + +CREATE TABLE META ( +MID INTEGER PRIMARY KEY, +INTERCEPTED INTEGER, +MARKED INTEGER, +MODE VARCHAR(20) +); + +CREATE TABLE BODY ( +BID INTEGER, +BREQ BLOB, +BRES BLOB +); + +CREATE TABLE ANNOTATION ( +AID INTEGER PRIMARY KEY, +FID INTEGER, +TYPE VARCHAR(20), +CONTENT BLOB +); \ No newline at end of file