28 lines
1.5 KiB
JSON
28 lines
1.5 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 1,
|
|
"identityHash": "10ed8505009ecafab98dd61d2297a006",
|
|
"entities": [
|
|
{
|
|
"tableName": "games",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sha256` TEXT NOT NULL, `displayName` TEXT NOT NULL, `sizeBytes` INTEGER NOT NULL, `format` TEXT NOT NULL, `fileName` TEXT NOT NULL, `status` TEXT NOT NULL, `addedAtEpochMs` INTEGER NOT NULL, PRIMARY KEY(`sha256`))",
|
|
"fields": [
|
|
{ "fieldPath": "sha256", "columnName": "sha256", "affinity": "TEXT", "notNull": true },
|
|
{ "fieldPath": "displayName", "columnName": "displayName", "affinity": "TEXT", "notNull": true },
|
|
{ "fieldPath": "sizeBytes", "columnName": "sizeBytes", "affinity": "INTEGER", "notNull": true },
|
|
{ "fieldPath": "format", "columnName": "format", "affinity": "TEXT", "notNull": true },
|
|
{ "fieldPath": "fileName", "columnName": "fileName", "affinity": "TEXT", "notNull": true },
|
|
{ "fieldPath": "status", "columnName": "status", "affinity": "TEXT", "notNull": true },
|
|
{ "fieldPath": "addedAtEpochMs", "columnName": "addedAtEpochMs", "affinity": "INTEGER", "notNull": true }
|
|
],
|
|
"primaryKey": { "autoGenerate": false, "columnNames": ["sha256"] }
|
|
}
|
|
],
|
|
"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, '10ed8505009ecafab98dd61d2297a006')"
|
|
]
|
|
}
|
|
}
|