]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/raw/sql_0.sql
major refactor, make account summary and transaction list fragments, part of the...
[mobile-ledger.git] / app / src / main / res / raw / sql_0.sql
1 create table if not exists accounts(name varchar);
2 create index if not exists idx_accounts_name on accounts(name);
3 create table if not exists options(name varchar, value varchar);
4 create unique index if not exists idx_options_name on options(name);
5 create table if not exists account_values(account varchar not null, currency varchar not null, value decimal(18,2) not null);
6 create index if not exists idx_account_values_account on account_values(account);
7 create unique index if not exists un_account_values on account_values(account,currency);