5 "identityHash": "ed75412e9453605c9829ad7f3269f62e",
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",
272 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
273 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'ed75412e9453605c9829ad7f3269f62e')"