-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CREATE TABLE transactions( | ||
account TEXT NOT NULL, | ||
timestamp INTEGER NOT NULL, | ||
amount REAL NOT NULL, | ||
currency TEXT NOT NULL, | ||
name TEXT NOT NULL, | ||
description TEXT NOT NULL, | ||
category TEXT NULL, | ||
note TEXT NULL, | ||
id INTEGER PRIMARY KEY AUTOINCREMENT); | ||
|
||
CREATE INDEX account ON transactions(account); | ||
CREATE INDEX timestamp ON transactions(timestamp ASC); | ||
|
||
|
||
CREATE TABLE categories( | ||
pattern TEXT NOT NULL, | ||
field TEXT NOT NULL, | ||
category TEXT NOT NULL | ||
); | ||
|
||
CREATE INDEX category ON categories(category ASC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters