5 "identityHash": "00c7b4a529107e23cd5925d75867f6d9",
8 "tableName": "templates",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `regular_expression` TEXT NOT NULL, `test_text` TEXT, `transaction_description` TEXT, `transaction_description_match_group` INTEGER, `transaction_comment` TEXT, `transaction_comment_match_group` INTEGER, `date_year` INTEGER, `date_year_match_group` INTEGER, `date_month` INTEGER, `date_month_match_group` INTEGER, `date_day` INTEGER, `date_day_match_group` INTEGER)",
14 "affinity": "INTEGER",
24 "fieldPath": "regularExpression",
25 "columnName": "regular_expression",
30 "fieldPath": "testText",
31 "columnName": "test_text",
36 "fieldPath": "transactionDescription",
37 "columnName": "transaction_description",
42 "fieldPath": "transactionDescriptionMatchGroup",
43 "columnName": "transaction_description_match_group",
44 "affinity": "INTEGER",
48 "fieldPath": "transactionComment",
49 "columnName": "transaction_comment",
54 "fieldPath": "transactionCommentMatchGroup",
55 "columnName": "transaction_comment_match_group",
56 "affinity": "INTEGER",
60 "fieldPath": "dateYear",
61 "columnName": "date_year",
62 "affinity": "INTEGER",
66 "fieldPath": "dateYearMatchGroup",
67 "columnName": "date_year_match_group",
68 "affinity": "INTEGER",
72 "fieldPath": "dateMonth",
73 "columnName": "date_month",
74 "affinity": "INTEGER",
78 "fieldPath": "dateMonthMatchGroup",
79 "columnName": "date_month_match_group",
80 "affinity": "INTEGER",
84 "fieldPath": "dateDay",
85 "columnName": "date_day",
86 "affinity": "INTEGER",
90 "fieldPath": "dateDayMatchGroup",
91 "columnName": "date_day_match_group",
92 "affinity": "INTEGER",
106 "tableName": "template_accounts",
107 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `template_id` INTEGER NOT NULL, `acc` TEXT, `position` INTEGER NOT NULL, `acc_match_group` INTEGER, `currency` INTEGER, `currency_match_group` INTEGER, `amount` REAL, `amount_match_group` INTEGER, `comment` TEXT, `comment_match_group` INTEGER, `negate_amount` INTEGER, FOREIGN KEY(`template_id`) REFERENCES `templates`(`id`) ON UPDATE RESTRICT ON DELETE CASCADE , FOREIGN KEY(`currency`) REFERENCES `currencies`(`id`) ON UPDATE RESTRICT ON DELETE RESTRICT )",
112 "affinity": "INTEGER",
116 "fieldPath": "templateId",
117 "columnName": "template_id",
118 "affinity": "INTEGER",
122 "fieldPath": "accountName",
128 "fieldPath": "position",
129 "columnName": "position",
130 "affinity": "INTEGER",
134 "fieldPath": "accountNameMatchGroup",
135 "columnName": "acc_match_group",
136 "affinity": "INTEGER",
140 "fieldPath": "currency",
141 "columnName": "currency",
142 "affinity": "INTEGER",
146 "fieldPath": "currencyMatchGroup",
147 "columnName": "currency_match_group",
148 "affinity": "INTEGER",
152 "fieldPath": "amount",
153 "columnName": "amount",
158 "fieldPath": "amountMatchGroup",
159 "columnName": "amount_match_group",
160 "affinity": "INTEGER",
164 "fieldPath": "accountComment",
165 "columnName": "comment",
170 "fieldPath": "accountCommentMatchGroup",
171 "columnName": "comment_match_group",
172 "affinity": "INTEGER",
176 "fieldPath": "negateAmount",
177 "columnName": "negate_amount",
178 "affinity": "INTEGER",
190 "name": "fk_template_accounts_template",
195 "createSql": "CREATE INDEX IF NOT EXISTS `fk_template_accounts_template` ON `${TABLE_NAME}` (`template_id`)"
198 "name": "fk_template_accounts_currency",
203 "createSql": "CREATE INDEX IF NOT EXISTS `fk_template_accounts_currency` ON `${TABLE_NAME}` (`currency`)"
208 "table": "templates",
209 "onDelete": "CASCADE",
210 "onUpdate": "RESTRICT",
214 "referencedColumns": [
219 "table": "currencies",
220 "onDelete": "RESTRICT",
221 "onUpdate": "RESTRICT",
225 "referencedColumns": [
232 "tableName": "currencies",
233 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `position` TEXT NOT NULL, `has_gap` INTEGER NOT NULL)",
238 "affinity": "INTEGER",
243 "columnName": "name",
248 "fieldPath": "position",
249 "columnName": "position",
254 "fieldPath": "hasGap",
255 "columnName": "has_gap",
256 "affinity": "INTEGER",
270 "tableName": "accounts",
271 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`level` INTEGER NOT NULL, `profile` TEXT NOT NULL, `name` TEXT NOT NULL, `name_upper` TEXT NOT NULL, `parent_name` TEXT, `expanded` INTEGER NOT NULL DEFAULT 1, `amounts_expanded` INTEGER NOT NULL DEFAULT 0, `generation` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`profile`, `name`))",
274 "fieldPath": "level",
275 "columnName": "level",
276 "affinity": "INTEGER",
280 "fieldPath": "profile",
281 "columnName": "profile",
287 "columnName": "name",
292 "fieldPath": "nameUpper",
293 "columnName": "name_upper",
298 "fieldPath": "parentName",
299 "columnName": "parent_name",
304 "fieldPath": "expanded",
305 "columnName": "expanded",
306 "affinity": "INTEGER",
311 "fieldPath": "amountsExpanded",
312 "columnName": "amounts_expanded",
313 "affinity": "INTEGER",
318 "fieldPath": "generation",
319 "columnName": "generation",
320 "affinity": "INTEGER",
330 "autoGenerate": false
338 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
339 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '00c7b4a529107e23cd5925d75867f6d9')"