1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 2, 5 "identityHash": "02e2da2d36e6955200edd5fb49e63c72", 6 "entities": [ 7 { 8 "tableName": "communal_widget_table", 9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `widget_id` INTEGER NOT NULL, `component_name` TEXT NOT NULL, `item_id` INTEGER NOT NULL, `user_serial_number` INTEGER NOT NULL DEFAULT -1)", 10 "fields": [ 11 { 12 "fieldPath": "uid", 13 "columnName": "uid", 14 "affinity": "INTEGER", 15 "notNull": true 16 }, 17 { 18 "fieldPath": "widgetId", 19 "columnName": "widget_id", 20 "affinity": "INTEGER", 21 "notNull": true 22 }, 23 { 24 "fieldPath": "componentName", 25 "columnName": "component_name", 26 "affinity": "TEXT", 27 "notNull": true 28 }, 29 { 30 "fieldPath": "itemId", 31 "columnName": "item_id", 32 "affinity": "INTEGER", 33 "notNull": true 34 }, 35 { 36 "fieldPath": "userSerialNumber", 37 "columnName": "user_serial_number", 38 "affinity": "INTEGER", 39 "notNull": true, 40 "defaultValue": "-1" 41 } 42 ], 43 "primaryKey": { 44 "autoGenerate": true, 45 "columnNames": [ 46 "uid" 47 ] 48 } 49 }, 50 { 51 "tableName": "communal_item_rank_table", 52 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `rank` INTEGER NOT NULL DEFAULT 0)", 53 "fields": [ 54 { 55 "fieldPath": "uid", 56 "columnName": "uid", 57 "affinity": "INTEGER", 58 "notNull": true 59 }, 60 { 61 "fieldPath": "rank", 62 "columnName": "rank", 63 "affinity": "INTEGER", 64 "notNull": true, 65 "defaultValue": "0" 66 } 67 ], 68 "primaryKey": { 69 "autoGenerate": true, 70 "columnNames": [ 71 "uid" 72 ] 73 } 74 } 75 ], 76 "setupQueries": [ 77 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 78 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '02e2da2d36e6955200edd5fb49e63c72')" 79 ] 80 } 81}