• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "formatVersion": 1,
3  "database": {
4    "version": 7,
5    "identityHash": "5653c29453937d8e34dc031af1ab4c7d",
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            "name": "index_Entity1_name",
33            "unique": true,
34            "columnNames": [
35              "name"
36            ],
37            "createSql": "CREATE UNIQUE INDEX `index_Entity1_name` ON `${TABLE_NAME}` (`name`)"
38          }
39        ],
40        "foreignKeys": []
41      },
42      {
43        "tableName": "Entity2",
44        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `addedInV3` TEXT, `name` TEXT, PRIMARY KEY(`id`))",
45        "fields": [
46          {
47            "fieldPath": "id",
48            "columnName": "id",
49            "affinity": "INTEGER",
50            "notNull": true
51          },
52          {
53            "fieldPath": "addedInV3",
54            "columnName": "addedInV3",
55            "affinity": "TEXT",
56            "notNull": false
57          },
58          {
59            "fieldPath": "name",
60            "columnName": "name",
61            "affinity": "TEXT",
62            "notNull": false
63          }
64        ],
65        "primaryKey": {
66          "columnNames": [
67            "id"
68          ],
69          "autoGenerate": false
70        },
71        "indices": [],
72        "foreignKeys": []
73      },
74      {
75        "tableName": "Entity4",
76        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT, PRIMARY KEY(`id`), FOREIGN KEY(`name`) REFERENCES `Entity1`(`name`) ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED)",
77        "fields": [
78          {
79            "fieldPath": "id",
80            "columnName": "id",
81            "affinity": "INTEGER",
82            "notNull": true
83          },
84          {
85            "fieldPath": "name",
86            "columnName": "name",
87            "affinity": "TEXT",
88            "notNull": false
89          }
90        ],
91        "primaryKey": {
92          "columnNames": [
93            "id"
94          ],
95          "autoGenerate": false
96        },
97        "indices": [],
98        "foreignKeys": [
99          {
100            "table": "Entity1",
101            "onDelete": "NO ACTION",
102            "onUpdate": "NO ACTION",
103            "columns": [
104              "name"
105            ],
106            "referencedColumns": [
107              "name"
108            ]
109          }
110        ]
111      }
112    ],
113    "setupQueries": [
114      "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
115      "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"5653c29453937d8e34dc031af1ab4c7d\")"
116    ]
117  }
118}