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