Modify Sheet struct, add OrphanFile table and db

This commit is contained in:
2024-02-07 18:40:39 +01:00
parent 7120520347
commit b102906f11
7 changed files with 176 additions and 22 deletions

View File

@ -1,2 +1,4 @@
CREATE TABLE IF NOT EXISTS sheets (id integer primary key autoincrement, name TEXT, path TEXT, file_size INTEGER, file_hash TEXT);
CREATE TABLE IF NOT EXISTS sheets (id integer primary key autoincrement, name TEXT, composer_id integer, path TEXT, file_size INTEGER, file_hash TEXT, last_opened INTEGER);
CREATE TABLE IF NOT EXISTS composers (id integer primary key autoincrement, name TEXT);
CREATE TABLE IF NOT EXISTS orphan_files (id integer primary key autoincrement, path TEXT, file_size INTEGER, file_hash TEXT, last_opened INTEGER);