5 "identityHash": "5a5aa2f77594578d228d211d5e4406a6",
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, `is_fallback` INTEGER NOT NULL)",
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",
96 "fieldPath": "isFallback",
97 "columnName": "is_fallback",
98 "affinity": "INTEGER",
112 "tableName": "template_accounts",
113 "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 )",
118 "affinity": "INTEGER",
122 "fieldPath": "templateId",
123 "columnName": "template_id",
124 "affinity": "INTEGER",
128 "fieldPath": "accountName",
134 "fieldPath": "position",
135 "columnName": "position",
136 "affinity": "INTEGER",
140 "fieldPath": "accountNameMatchGroup",
141 "columnName": "acc_match_group",
142 "affinity": "INTEGER",
146 "fieldPath": "currency",
147 "columnName": "currency",
148 "affinity": "INTEGER",
152 "fieldPath": "currencyMatchGroup",
153 "columnName": "currency_match_group",
154 "affinity": "INTEGER",
158 "fieldPath": "amount",
159 "columnName": "amount",
164 "fieldPath": "amountMatchGroup",
165 "columnName": "amount_match_group",
166 "affinity": "INTEGER",
170 "fieldPath": "accountComment",
171 "columnName": "comment",
176 "fieldPath": "accountCommentMatchGroup",
177 "columnName": "comment_match_group",
178 "affinity": "INTEGER",
182 "fieldPath": "negateAmount",
183 "columnName": "negate_amount",
184 "affinity": "INTEGER",
196 "name": "fk_template_accounts_template",
201 "createSql": "CREATE INDEX IF NOT EXISTS `fk_template_accounts_template` ON `${TABLE_NAME}` (`template_id`)"
204 "name": "fk_template_accounts_currency",
209 "createSql": "CREATE INDEX IF NOT EXISTS `fk_template_accounts_currency` ON `${TABLE_NAME}` (`currency`)"
214 "table": "templates",
215 "onDelete": "CASCADE",
216 "onUpdate": "RESTRICT",
220 "referencedColumns": [
225 "table": "currencies",
226 "onDelete": "RESTRICT",
227 "onUpdate": "RESTRICT",
231 "referencedColumns": [
238 "tableName": "currencies",
239 "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)",
244 "affinity": "INTEGER",
249 "columnName": "name",
254 "fieldPath": "position",
255 "columnName": "position",
260 "fieldPath": "hasGap",
261 "columnName": "has_gap",
262 "affinity": "INTEGER",
276 "tableName": "accounts",
277 "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`))",
280 "fieldPath": "level",
281 "columnName": "level",
282 "affinity": "INTEGER",
286 "fieldPath": "profile",
287 "columnName": "profile",
293 "columnName": "name",
298 "fieldPath": "nameUpper",
299 "columnName": "name_upper",
304 "fieldPath": "parentName",
305 "columnName": "parent_name",
310 "fieldPath": "expanded",
311 "columnName": "expanded",
312 "affinity": "INTEGER",
317 "fieldPath": "amountsExpanded",
318 "columnName": "amounts_expanded",
319 "affinity": "INTEGER",
324 "fieldPath": "generation",
325 "columnName": "generation",
326 "affinity": "INTEGER",
336 "autoGenerate": false
344 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
345 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5a5aa2f77594578d228d211d5e4406a6')"