• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "formatVersion": 1,
3  "database": {
4    "version": 2,
5    "identityHash": "aee9a6eed720c059df0f2ee0d6e96d89",
6    "entities": [
7      {
8        "tableName": "Entity1",
9        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, PRIMARY KEY(`id`))",
10        "fields": [
11          {
12            "fieldPath": "id",
13            "columnName": "id",
14            "affinity": "INTEGER",
15            "notNull": true
16          },
17          {
18            "fieldPath": "name",
19            "columnName": "name",
20            "affinity": "TEXT",
21            "notNull": false
22          }
23        ],
24        "primaryKey": {
25          "columnNames": [
26            "id"
27          ],
28          "autoGenerate": false
29        },
30        "indices": []
31      },
32      {
33        "tableName": "Entity2",
34        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT)",
35        "fields": [
36          {
37            "fieldPath": "id",
38            "columnName": "id",
39            "affinity": "INTEGER",
40            "notNull": true
41          },
42          {
43            "fieldPath": "name",
44            "columnName": "name",
45            "affinity": "TEXT",
46            "notNull": false
47          }
48        ],
49        "primaryKey": {
50          "columnNames": [
51            "id"
52          ],
53          "autoGenerate": true
54        },
55        "indices": [],
56        "foreignKeys": []
57      }
58    ],
59    "setupQueries": [
60      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
61      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"aee9a6eed720c059df0f2ee0d6e96d89\")"
62    ]
63  }
64}