Files
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

327 lines
9.4 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 12,
"identityHash": "67ddab66e37ae3f5566c103edd606d91",
"entities": [
{
"tableName": "exchange_rates",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`currencyCode` TEXT NOT NULL, `rate` TEXT, PRIMARY KEY(`currencyCode`))",
"fields": [
{
"fieldPath": "currencyCode",
"columnName": "currencyCode",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "rate",
"columnName": "rate",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"currencyCode"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "blockchain_state",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`bestChainDate` INTEGER, `bestChainHeight` INTEGER NOT NULL, `replaying` INTEGER NOT NULL, `impediments` TEXT NOT NULL, `chainlockHeight` INTEGER NOT NULL, `mnlistHeight` INTEGER NOT NULL, `percentageSync` INTEGER NOT NULL, `id` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "bestChainDate",
"columnName": "bestChainDate",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "bestChainHeight",
"columnName": "bestChainHeight",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "replaying",
"columnName": "replaying",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "impediments",
"columnName": "impediments",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "chainlockHeight",
"columnName": "chainlockHeight",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "mnlistHeight",
"columnName": "mnlistHeight",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "percentageSync",
"columnName": "percentageSync",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "transaction_metadata",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`txId` BLOB NOT NULL, `timestamp` INTEGER NOT NULL, `value` INTEGER NOT NULL, `type` TEXT NOT NULL, `taxCategory` TEXT, `currencyCode` TEXT, `rate` TEXT, `memo` TEXT NOT NULL, `service` TEXT, `customIconId` BLOB, PRIMARY KEY(`txId`))",
"fields": [
{
"fieldPath": "txId",
"columnName": "txId",
"affinity": "BLOB",
"notNull": true
},
{
"fieldPath": "timestamp",
"columnName": "timestamp",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "value",
"columnName": "value",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "type",
"columnName": "type",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "taxCategory",
"columnName": "taxCategory",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "currencyCode",
"columnName": "currencyCode",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "rate",
"columnName": "rate",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "memo",
"columnName": "memo",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "service",
"columnName": "service",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "customIconId",
"columnName": "customIconId",
"affinity": "BLOB",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"txId"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "address_metadata",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `isInput` INTEGER NOT NULL, `taxCategory` TEXT NOT NULL, `service` TEXT NOT NULL, PRIMARY KEY(`address`, `isInput`))",
"fields": [
{
"fieldPath": "address",
"columnName": "address",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "isInput",
"columnName": "isInput",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "taxCategory",
"columnName": "taxCategory",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "service",
"columnName": "service",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"address",
"isInput"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "icon_bitmaps",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` BLOB NOT NULL, `imageData` BLOB NOT NULL, `originalUrl` TEXT NOT NULL, `height` INTEGER NOT NULL, `width` INTEGER NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "BLOB",
"notNull": true
},
{
"fieldPath": "imageData",
"columnName": "imageData",
"affinity": "BLOB",
"notNull": true
},
{
"fieldPath": "originalUrl",
"columnName": "originalUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "height",
"columnName": "height",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "width",
"columnName": "width",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"id"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "gift_cards",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`txId` BLOB NOT NULL, `merchantName` TEXT NOT NULL, `price` REAL NOT NULL, `number` TEXT, `pin` TEXT, `barcodeValue` TEXT, `barcodeFormat` TEXT, `merchantUrl` TEXT, `note` TEXT, PRIMARY KEY(`txId`))",
"fields": [
{
"fieldPath": "txId",
"columnName": "txId",
"affinity": "BLOB",
"notNull": true
},
{
"fieldPath": "merchantName",
"columnName": "merchantName",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "price",
"columnName": "price",
"affinity": "REAL",
"notNull": true
},
{
"fieldPath": "number",
"columnName": "number",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "pin",
"columnName": "pin",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "barcodeValue",
"columnName": "barcodeValue",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "barcodeFormat",
"columnName": "barcodeFormat",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "merchantUrl",
"columnName": "merchantUrl",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "note",
"columnName": "note",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"txId"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
}
],
"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, '67ddab66e37ae3f5566c103edd606d91')"
]
}
}