5 "identityHash": "be3773207074d191c145ae00acff65da",
8 "tableName": "patterns",
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",
104 "name": "un_patterns_id",
109 "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `un_patterns_id` ON `${TABLE_NAME}` (`id`)"
115 "tableName": "pattern_accounts",
116 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pattern_id` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT 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(`pattern_id`) REFERENCES `patterns`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`currency`) REFERENCES `currencies`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
119 "fieldPath": "patternId",
120 "columnName": "pattern_id",
121 "affinity": "INTEGER",
127 "affinity": "INTEGER",
131 "fieldPath": "accountName",
137 "fieldPath": "position",
138 "columnName": "position",
139 "affinity": "INTEGER",
143 "fieldPath": "accountNameMatchGroup",
144 "columnName": "acc_match_group",
145 "affinity": "INTEGER",
149 "fieldPath": "currency",
150 "columnName": "currency",
151 "affinity": "INTEGER",
155 "fieldPath": "currencyMatchGroup",
156 "columnName": "currency_match_group",
157 "affinity": "INTEGER",
161 "fieldPath": "amount",
162 "columnName": "amount",
167 "fieldPath": "amountMatchGroup",
168 "columnName": "amount_match_group",
169 "affinity": "INTEGER",
173 "fieldPath": "accountComment",
174 "columnName": "comment",
179 "fieldPath": "accountCommentMatchGroup",
180 "columnName": "comment_match_group",
181 "affinity": "INTEGER",
185 "fieldPath": "negateAmount",
186 "columnName": "negate_amount",
187 "affinity": "INTEGER",
199 "name": "un_pattern_accounts",
204 "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `un_pattern_accounts` ON `${TABLE_NAME}` (`id`)"
207 "name": "fk_pattern_accounts_pattern",
212 "createSql": "CREATE INDEX IF NOT EXISTS `fk_pattern_accounts_pattern` ON `${TABLE_NAME}` (`pattern_id`)"
215 "name": "fk_pattern_accounts_currency",
220 "createSql": "CREATE INDEX IF NOT EXISTS `fk_pattern_accounts_currency` ON `${TABLE_NAME}` (`currency`)"
226 "onDelete": "NO ACTION",
227 "onUpdate": "NO ACTION",
231 "referencedColumns": [
236 "table": "currencies",
237 "onDelete": "NO ACTION",
238 "onUpdate": "NO ACTION",
242 "referencedColumns": [
249 "tableName": "currencies",
250 "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)",
255 "affinity": "INTEGER",
260 "columnName": "name",
265 "fieldPath": "position",
266 "columnName": "position",
271 "fieldPath": "hasGap",
272 "columnName": "has_gap",
273 "affinity": "INTEGER",
289 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
290 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'be3773207074d191c145ae00acff65da')"