aboutsummaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2017-10-19 11:20:55 +0300
committerFilipp Lepalaan <filipp@mac.com>2017-10-19 11:20:55 +0300
commit8d560d6cf854fea81e0e0a2b8a22c406de4febb3 (patch)
tree04d9c5d26a27c982da5cba86fe3f4fac53149914 /schema.sql
downloaddirstat-master.tar.gz
dirstat-master.tar.bz2
dirstat-master.zip
Initial commitHEADmaster
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
new file mode 100644
index 0000000..eb74429
--- /dev/null
+++ b/schema.sql
@@ -0,0 +1,10 @@
+CREATE TABLE imports (id INTEGER PRIMARY KEY AUTOINCREMENT,
+ path TEXT,
+ starttime TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
+ endtime TIMESTAMP,
+ count INTEGER,
+ size INTEGER);
+CREATE TABLE paths (import_id INTEGER, path TEXT, type TEXT, mtime TIMESTAMP, size INTEGER);
+CREATE index idx1 ON paths(path);
+CREATE index idx2 ON paths(type);
+CREATE index idx3 ON imports(path);