diff options
author | Filipp Lepalaan <filipp@mac.com> | 2017-10-19 11:20:55 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2017-10-19 11:20:55 +0300 |
commit | 8d560d6cf854fea81e0e0a2b8a22c406de4febb3 (patch) | |
tree | 04d9c5d26a27c982da5cba86fe3f4fac53149914 /schema.sql | |
download | dirstat-master.tar.gz dirstat-master.tar.bz2 dirstat-master.zip |
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 10 |
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); |