1{ 2 "formatVersion": 1, 3 "database": { 4 "version": 5, 5 "identityHash": "a83f96ef4babe730b3a00e8acb777a25", 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, `span_y` INTEGER NOT NULL DEFAULT 3, `span_y_new` 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 "fieldPath": "spanY", 44 "columnName": "span_y", 45 "affinity": "INTEGER", 46 "notNull": true, 47 "defaultValue": "3" 48 }, 49 { 50 "fieldPath": "spanYNew", 51 "columnName": "span_y_new", 52 "affinity": "INTEGER", 53 "notNull": true, 54 "defaultValue": "1" 55 } 56 ], 57 "primaryKey": { 58 "autoGenerate": true, 59 "columnNames": [ 60 "uid" 61 ] 62 } 63 }, 64 { 65 "tableName": "communal_item_rank_table", 66 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `rank` INTEGER NOT NULL DEFAULT 0)", 67 "fields": [ 68 { 69 "fieldPath": "uid", 70 "columnName": "uid", 71 "affinity": "INTEGER", 72 "notNull": true 73 }, 74 { 75 "fieldPath": "rank", 76 "columnName": "rank", 77 "affinity": "INTEGER", 78 "notNull": true, 79 "defaultValue": "0" 80 } 81 ], 82 "primaryKey": { 83 "autoGenerate": true, 84 "columnNames": [ 85 "uid" 86 ] 87 } 88 } 89 ], 90 "setupQueries": [ 91 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", 92 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a83f96ef4babe730b3a00e8acb777a25')" 93 ] 94 } 95}