Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

146 lines
4.2 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 5,
"identityHash": "60593f21cbc84599f39a7b793ed9e24f",
"entities": [
{
"tableName": "Coin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `symbol` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `currentPrice` TEXT NOT NULL, `priceChangePercentage24h` TEXT NOT NULL, `prices24h` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "symbol",
"columnName": "symbol",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "currentPrice",
"columnName": "currentPrice",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "priceChangePercentage24h",
"columnName": "priceChangePercentage24h",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "prices24h",
"columnName": "prices24h",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "FavouriteCoin",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `symbol` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `currentPrice` TEXT NOT NULL, `priceChangePercentage24h` TEXT NOT NULL, `prices24h` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "symbol",
"columnName": "symbol",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "imageUrl",
"columnName": "imageUrl",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "currentPrice",
"columnName": "currentPrice",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "priceChangePercentage24h",
"columnName": "priceChangePercentage24h",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "prices24h",
"columnName": "prices24h",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "FavouriteCoinId",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
]
},
"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, '60593f21cbc84599f39a7b793ed9e24f')"
]
}
}