87 lines
No EOL
2.5 KiB
JSON
87 lines
No EOL
2.5 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 1,
|
|
"identityHash": "736766d33f85feabffe7c70b80063d4b",
|
|
"entities": [
|
|
{
|
|
"tableName": "history",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `mode` TEXT NOT NULL, `expression` TEXT NOT NULL, `result` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `base` TEXT, `bits` INTEGER, `signed` INTEGER, `removedAt` INTEGER)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "mode",
|
|
"columnName": "mode",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "expression",
|
|
"columnName": "expression",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "result",
|
|
"columnName": "result",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "createdAt",
|
|
"columnName": "createdAt",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "base",
|
|
"columnName": "base",
|
|
"affinity": "TEXT"
|
|
},
|
|
{
|
|
"fieldPath": "bits",
|
|
"columnName": "bits",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "signed",
|
|
"columnName": "signed",
|
|
"affinity": "INTEGER"
|
|
},
|
|
{
|
|
"fieldPath": "removedAt",
|
|
"columnName": "removedAt",
|
|
"affinity": "INTEGER"
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"autoGenerate": true,
|
|
"columnNames": [
|
|
"id"
|
|
]
|
|
},
|
|
"indices": [
|
|
{
|
|
"name": "index_history_mode_createdAt",
|
|
"unique": false,
|
|
"columnNames": [
|
|
"mode",
|
|
"createdAt"
|
|
],
|
|
"orders": [],
|
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_history_mode_createdAt` ON `${TABLE_NAME}` (`mode`, `createdAt`)"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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, '736766d33f85feabffe7c70b80063d4b')"
|
|
]
|
|
}
|
|
} |