Files
actual/packages/loot-core/migrations/1707267033000_reports.sql
Neil 8568aebdbb Custom Reports: save reports (*new SQL table creation*) (#2335)
* updated saved work

* merge fixes

* Disable CREATE TABLE

* notes

* turn on db table

* Fix TableGraph recall crash

* table format changes

* type fixes

* fixing some card displays

* merge fixes

* revert table change

* cardMenu width

* notes

* fix filtering logic

* reload saved filters

* lint fix

* visual graph changes

* slice fixes

* typescript update
2024-02-21 18:12:26 +00:00

28 lines
700 B
SQL

BEGIN TRANSACTION;
CREATE TABLE custom_reports
(
id TEXT PRIMARY KEY,
name TEXT,
start_date TEXT,
end_date TEXT,
date_static INTEGER DEFAULT 0,
date_range TEXT,
mode TEXT DEFAULT 'total',
group_by TEXT DEFAULT 'Category',
balance_type TEXT DEFAULT 'Expense',
show_empty INTEGER DEFAULT 0,
show_offbudget INTEGER DEFAULT 0,
show_hidden INTEGER DEFAULT 0,
show_uncategorized INTEGER DEFAULT 0,
selected_categories TEXT,
graph_type TEXT DEFAULT 'BarGraph',
conditions TEXT,
conditions_op TEXT DEFAULT 'and',
metadata TEXT,
interval TEXT DEFAULT 'Monthly',
color_scheme TEXT,
tombstone INTEGER DEFAULT 0
);
COMMIT;