diff --git a/database/app_data.db b/database/app_data.db index 7b2a33b..64483f7 100644 Binary files a/database/app_data.db and b/database/app_data.db differ diff --git a/migrations.sql b/migrations.sql index ddbf7bd..085134f 100644 --- a/migrations.sql +++ b/migrations.sql @@ -40,11 +40,30 @@ CREATE TABLE IF NOT EXISTS accounts CREATE TABLE IF NOT EXISTS transactions ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - account_id INTEGER, - amount REAL, - description TEXT, - timestamp DATETIME DEFAULT CURRENT_TIMESTAMP, + id INTEGER PRIMARY KEY AUTOINCREMENT, + account_id INTEGER, + + amount REAL, + fee REAL, + status TEXT, + type TEXT, + phone TEXT, + name TEXT, + + short_description TEXT, + updated_short_description TEXT, + description TEXT, + updated_description TEXT, + + bank_name TEXT, + bank_time TEXT, + + + tr_external_id TEXT, + + update_time DATETIME, + complete_time DATETIME, + timestamp DATETIME DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (account_id) REFERENCES accounts (id) ON DELETE CASCADE, UNIQUE (amount, timestamp) ); \ No newline at end of file