{ "formatVersion": 1, "database": { "version": 1, "identityHash": "c7461b85a32f3164856cd24fbb176831", "entities": [ { "tableName": "AccountDb", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`account_id` TEXT NOT NULL, `account_currencyCode` TEXT NOT NULL, `account_countryCode` TEXT NOT NULL, `account_amount` INTEGER NOT NULL, `account_name` TEXT NOT NULL, `account_type` TEXT NOT NULL, `account_createdAt` INTEGER NOT NULL, `account_updatedAt` INTEGER, PRIMARY KEY(`account_id`))", "fields": [ { "fieldPath": "id", "columnName": "account_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "currencyCode", "columnName": "account_currencyCode", "affinity": "TEXT", "notNull": true }, { "fieldPath": "countryCode", "columnName": "account_countryCode", "affinity": "TEXT", "notNull": true }, { "fieldPath": "amount", "columnName": "account_amount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "account_name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "type", "columnName": "account_type", "affinity": "TEXT", "notNull": true }, { "fieldPath": "createdAt", "columnName": "account_createdAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "updatedAt", "columnName": "account_updatedAt", "affinity": "INTEGER", "notNull": false } ], "primaryKey": { "columnNames": [ "account_id" ], "autoGenerate": false }, "indices": [ { "name": "index_AccountDb_account_name", "unique": true, "columnNames": [ "account_name" ], "orders": [], "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_AccountDb_account_name` ON `${TABLE_NAME}` (`account_name`)" } ], "foreignKeys": [] }, { "tableName": "TransactionDb", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`transaction_id` TEXT NOT NULL, `transaction_accountId` TEXT NOT NULL, `transaction_categoryType` TEXT NOT NULL, `transaction_currencyCode` TEXT NOT NULL, `transaction_countryCode` TEXT NOT NULL, `transaction_amount` INTEGER NOT NULL, `transaction_type` TEXT NOT NULL, `transaction_date` INTEGER NOT NULL, `transaction_createdAt` INTEGER NOT NULL, `transaction_updatedAt` INTEGER, `transaction_note` TEXT NOT NULL, `transaction_transferAccountId` TEXT, PRIMARY KEY(`transaction_id`), FOREIGN KEY(`transaction_accountId`) REFERENCES `AccountDb`(`account_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "transaction_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "accountId", "columnName": "transaction_accountId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "categoryType", "columnName": "transaction_categoryType", "affinity": "TEXT", "notNull": true }, { "fieldPath": "currencyCode", "columnName": "transaction_currencyCode", "affinity": "TEXT", "notNull": true }, { "fieldPath": "countryCode", "columnName": "transaction_countryCode", "affinity": "TEXT", "notNull": true }, { "fieldPath": "amount", "columnName": "transaction_amount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "type", "columnName": "transaction_type", "affinity": "TEXT", "notNull": true }, { "fieldPath": "date", "columnName": "transaction_date", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "createdAt", "columnName": "transaction_createdAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "updatedAt", "columnName": "transaction_updatedAt", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "note", "columnName": "transaction_note", "affinity": "TEXT", "notNull": true }, { "fieldPath": "transferAccountId", "columnName": "transaction_transferAccountId", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "columnNames": [ "transaction_id" ], "autoGenerate": false }, "indices": [ { "name": "index_TransactionDb_transaction_accountId", "unique": false, "columnNames": [ "transaction_accountId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_TransactionDb_transaction_accountId` ON `${TABLE_NAME}` (`transaction_accountId`)" } ], "foreignKeys": [ { "table": "AccountDb", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "transaction_accountId" ], "referencedColumns": [ "account_id" ] } ] }, { "tableName": "AccountRecordDb", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`account_record_id` TEXT NOT NULL, `account_record_accountId` TEXT NOT NULL, `account_record_amount` INTEGER NOT NULL, `account_record_createdAt` INTEGER NOT NULL, PRIMARY KEY(`account_record_id`), FOREIGN KEY(`account_record_accountId`) REFERENCES `AccountDb`(`account_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "account_record_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "accountId", "columnName": "account_record_accountId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "amount", "columnName": "account_record_amount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "createdAt", "columnName": "account_record_createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "account_record_id" ], "autoGenerate": false }, "indices": [ { "name": "index_AccountRecordDb_account_record_accountId", "unique": false, "columnNames": [ "account_record_accountId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_AccountRecordDb_account_record_accountId` ON `${TABLE_NAME}` (`account_record_accountId`)" } ], "foreignKeys": [ { "table": "AccountDb", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "account_record_accountId" ], "referencedColumns": [ "account_id" ] } ] }, { "tableName": "TransactionRecordDb", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`transaction_record_id` TEXT NOT NULL, `transaction_record_transactionId` TEXT NOT NULL, `transaction_record_amount` INTEGER NOT NULL, `transaction_record_createdAt` INTEGER NOT NULL, PRIMARY KEY(`transaction_record_id`), FOREIGN KEY(`transaction_record_transactionId`) REFERENCES `TransactionDb`(`transaction_id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "transaction_record_id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "transactionId", "columnName": "transaction_record_transactionId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "amount", "columnName": "transaction_record_amount", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "createdAt", "columnName": "transaction_record_createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "transaction_record_id" ], "autoGenerate": false }, "indices": [ { "name": "index_TransactionRecordDb_transaction_record_transactionId", "unique": false, "columnNames": [ "transaction_record_transactionId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_TransactionRecordDb_transaction_record_transactionId` ON `${TABLE_NAME}` (`transaction_record_transactionId`)" } ], "foreignKeys": [ { "table": "TransactionDb", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "transaction_record_transactionId" ], "referencedColumns": [ "transaction_id" ] } ] } ], "views": [], "setupQueries": [ "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c7461b85a32f3164856cd24fbb176831')" ] } }