Added the capability to upload CSV files

This commit is contained in:
Manuel Forcén Muñoz 2024-03-18 23:04:48 +01:00
parent 90b02eef79
commit d1e736d7a7
19 changed files with 678 additions and 99 deletions

View file

@ -44,8 +44,10 @@ CREATE TABLE IF NOT EXISTS transactions (
transaction_timestamp DATETIME,
category INTEGER,
amount INTEGER,
hash TEXT,
FOREIGN KEY (account) REFERENCES accounts(account_id),
FOREIGN KEY (category) REFERENCES categories(category_id)
);
CREATE INDEX idx_transactions_ts ON transactions(account, transaction_timestamp);
CREATE INDEX idx_transactions_hash ON transactions(hash);