Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / web / schemas / com.vayunmathur.web.data.WebDatabase / 3.json

3.json422 lines · 12.3 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 3,
5 "identityHash": "c877a1e66769e2c7a2c189a564e23714",
6 "entities": [
7 {
8 "tableName": "HistoryEntry",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `visitedAt` INTEGER NOT NULL, `faviconUrl` TEXT)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "url",
19 "columnName": "url",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "title",
25 "columnName": "title",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "visitedAt",
31 "columnName": "visitedAt",
32 "affinity": "INTEGER",
33 "notNull": true
34 },
35 {
36 "fieldPath": "faviconUrl",
37 "columnName": "faviconUrl",
38 "affinity": "TEXT"
39 }
40 ],
41 "primaryKey": {
42 "autoGenerate": true,
43 "columnNames": [
44 "id"
45 ]
46 }
47 },
48 {
49 "tableName": "Bookmark",
50 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `faviconUrl` TEXT, `folderId` INTEGER)",
51 "fields": [
52 {
53 "fieldPath": "id",
54 "columnName": "id",
55 "affinity": "INTEGER",
56 "notNull": true
57 },
58 {
59 "fieldPath": "url",
60 "columnName": "url",
61 "affinity": "TEXT",
62 "notNull": true
63 },
64 {
65 "fieldPath": "title",
66 "columnName": "title",
67 "affinity": "TEXT",
68 "notNull": true
69 },
70 {
71 "fieldPath": "createdAt",
72 "columnName": "createdAt",
73 "affinity": "INTEGER",
74 "notNull": true
75 },
76 {
77 "fieldPath": "faviconUrl",
78 "columnName": "faviconUrl",
79 "affinity": "TEXT"
80 },
81 {
82 "fieldPath": "folderId",
83 "columnName": "folderId",
84 "affinity": "INTEGER"
85 }
86 ],
87 "primaryKey": {
88 "autoGenerate": true,
89 "columnNames": [
90 "id"
91 ]
92 }
93 },
94 {
95 "tableName": "BookmarkFolder",
96 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `createdAt` INTEGER NOT NULL)",
97 "fields": [
98 {
99 "fieldPath": "id",
100 "columnName": "id",
101 "affinity": "INTEGER",
102 "notNull": true
103 },
104 {
105 "fieldPath": "name",
106 "columnName": "name",
107 "affinity": "TEXT",
108 "notNull": true
109 },
110 {
111 "fieldPath": "createdAt",
112 "columnName": "createdAt",
113 "affinity": "INTEGER",
114 "notNull": true
115 }
116 ],
117 "primaryKey": {
118 "autoGenerate": true,
119 "columnNames": [
120 "id"
121 ]
122 }
123 },
124 {
125 "tableName": "SitePermission",
126 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `origin` TEXT NOT NULL, `cameraAllowed` INTEGER, `microphoneAllowed` INTEGER, `locationAllowed` INTEGER, `notificationsAllowed` INTEGER, `updatedAt` INTEGER NOT NULL)",
127 "fields": [
128 {
129 "fieldPath": "id",
130 "columnName": "id",
131 "affinity": "INTEGER",
132 "notNull": true
133 },
134 {
135 "fieldPath": "origin",
136 "columnName": "origin",
137 "affinity": "TEXT",
138 "notNull": true
139 },
140 {
141 "fieldPath": "cameraAllowed",
142 "columnName": "cameraAllowed",
143 "affinity": "INTEGER"
144 },
145 {
146 "fieldPath": "microphoneAllowed",
147 "columnName": "microphoneAllowed",
148 "affinity": "INTEGER"
149 },
150 {
151 "fieldPath": "locationAllowed",
152 "columnName": "locationAllowed",
153 "affinity": "INTEGER"
154 },
155 {
156 "fieldPath": "notificationsAllowed",
157 "columnName": "notificationsAllowed",
158 "affinity": "INTEGER"
159 },
160 {
161 "fieldPath": "updatedAt",
162 "columnName": "updatedAt",
163 "affinity": "INTEGER",
164 "notNull": true
165 }
166 ],
167 "primaryKey": {
168 "autoGenerate": true,
169 "columnNames": [
170 "id"
171 ]
172 }
173 },
174 {
175 "tableName": "StorageInfo",
176 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `origin` TEXT NOT NULL, `host` TEXT NOT NULL, `cookieCount` INTEGER NOT NULL, `hasLocalStorage` INTEGER NOT NULL, `hasIndexedDb` INTEGER NOT NULL, `hasServiceWorker` INTEGER NOT NULL, `estimatedBytes` INTEGER NOT NULL, `lastSeen` INTEGER NOT NULL)",
177 "fields": [
178 {
179 "fieldPath": "id",
180 "columnName": "id",
181 "affinity": "INTEGER",
182 "notNull": true
183 },
184 {
185 "fieldPath": "origin",
186 "columnName": "origin",
187 "affinity": "TEXT",
188 "notNull": true
189 },
190 {
191 "fieldPath": "host",
192 "columnName": "host",
193 "affinity": "TEXT",
194 "notNull": true
195 },
196 {
197 "fieldPath": "cookieCount",
198 "columnName": "cookieCount",
199 "affinity": "INTEGER",
200 "notNull": true
201 },
202 {
203 "fieldPath": "hasLocalStorage",
204 "columnName": "hasLocalStorage",
205 "affinity": "INTEGER",
206 "notNull": true
207 },
208 {
209 "fieldPath": "hasIndexedDb",
210 "columnName": "hasIndexedDb",
211 "affinity": "INTEGER",
212 "notNull": true
213 },
214 {
215 "fieldPath": "hasServiceWorker",
216 "columnName": "hasServiceWorker",
217 "affinity": "INTEGER",
218 "notNull": true
219 },
220 {
221 "fieldPath": "estimatedBytes",
222 "columnName": "estimatedBytes",
223 "affinity": "INTEGER",
224 "notNull": true
225 },
226 {
227 "fieldPath": "lastSeen",
228 "columnName": "lastSeen",
229 "affinity": "INTEGER",
230 "notNull": true
231 }
232 ],
233 "primaryKey": {
234 "autoGenerate": true,
235 "columnNames": [
236 "id"
237 ]
238 }
239 },
240 {
241 "tableName": "DownloadEntry",
242 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `url` TEXT NOT NULL, `fileName` TEXT NOT NULL, `mimeType` TEXT, `contentLength` INTEGER NOT NULL, `startedAt` INTEGER NOT NULL)",
243 "fields": [
244 {
245 "fieldPath": "id",
246 "columnName": "id",
247 "affinity": "INTEGER",
248 "notNull": true
249 },
250 {
251 "fieldPath": "url",
252 "columnName": "url",
253 "affinity": "TEXT",
254 "notNull": true
255 },
256 {
257 "fieldPath": "fileName",
258 "columnName": "fileName",
259 "affinity": "TEXT",
260 "notNull": true
261 },
262 {
263 "fieldPath": "mimeType",
264 "columnName": "mimeType",
265 "affinity": "TEXT"
266 },
267 {
268 "fieldPath": "contentLength",
269 "columnName": "contentLength",
270 "affinity": "INTEGER",
271 "notNull": true
272 },
273 {
274 "fieldPath": "startedAt",
275 "columnName": "startedAt",
276 "affinity": "INTEGER",
277 "notNull": true
278 }
279 ],
280 "primaryKey": {
281 "autoGenerate": true,
282 "columnNames": [
283 "id"
284 ]
285 }
286 },
287 {
288 "tableName": "InstalledSite",
289 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `url` TEXT NOT NULL, `title` TEXT NOT NULL, `shortName` TEXT NOT NULL, `iconUrl` TEXT, `faviconUrl` TEXT, `themeColor` TEXT, `backgroundColor` TEXT, `displayMode` TEXT NOT NULL, `startUrl` TEXT NOT NULL, `origin` TEXT NOT NULL, `installedAt` INTEGER NOT NULL, PRIMARY KEY(`id`))",
290 "fields": [
291 {
292 "fieldPath": "id",
293 "columnName": "id",
294 "affinity": "TEXT",
295 "notNull": true
296 },
297 {
298 "fieldPath": "url",
299 "columnName": "url",
300 "affinity": "TEXT",
301 "notNull": true
302 },
303 {
304 "fieldPath": "title",
305 "columnName": "title",
306 "affinity": "TEXT",
307 "notNull": true
308 },
309 {
310 "fieldPath": "shortName",
311 "columnName": "shortName",
312 "affinity": "TEXT",
313 "notNull": true
314 },
315 {
316 "fieldPath": "iconUrl",
317 "columnName": "iconUrl",
318 "affinity": "TEXT"
319 },
320 {
321 "fieldPath": "faviconUrl",
322 "columnName": "faviconUrl",
323 "affinity": "TEXT"
324 },
325 {
326 "fieldPath": "themeColor",
327 "columnName": "themeColor",
328 "affinity": "TEXT"
329 },
330 {
331 "fieldPath": "backgroundColor",
332 "columnName": "backgroundColor",
333 "affinity": "TEXT"
334 },
335 {
336 "fieldPath": "displayMode",
337 "columnName": "displayMode",
338 "affinity": "TEXT",
339 "notNull": true
340 },
341 {
342 "fieldPath": "startUrl",
343 "columnName": "startUrl",
344 "affinity": "TEXT",
345 "notNull": true
346 },
347 {
348 "fieldPath": "origin",
349 "columnName": "origin",
350 "affinity": "TEXT",
351 "notNull": true
352 },
353 {
354 "fieldPath": "installedAt",
355 "columnName": "installedAt",
356 "affinity": "INTEGER",
357 "notNull": true
358 }
359 ],
360 "primaryKey": {
361 "autoGenerate": false,
362 "columnNames": [
363 "id"
364 ]
365 }
366 },
367 {
368 "tableName": "ShieldSetting",
369 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`host` TEXT NOT NULL, `level` TEXT, `blockTrackers` INTEGER, `cosmeticFiltering` INTEGER, `fingerprintProtection` INTEGER, `httpsUpgrade` INTEGER, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`host`))",
370 "fields": [
371 {
372 "fieldPath": "host",
373 "columnName": "host",
374 "affinity": "TEXT",
375 "notNull": true
376 },
377 {
378 "fieldPath": "level",
379 "columnName": "level",
380 "affinity": "TEXT"
381 },
382 {
383 "fieldPath": "blockTrackers",
384 "columnName": "blockTrackers",
385 "affinity": "INTEGER"
386 },
387 {
388 "fieldPath": "cosmeticFiltering",
389 "columnName": "cosmeticFiltering",
390 "affinity": "INTEGER"
391 },
392 {
393 "fieldPath": "fingerprintProtection",
394 "columnName": "fingerprintProtection",
395 "affinity": "INTEGER"
396 },
397 {
398 "fieldPath": "httpsUpgrade",
399 "columnName": "httpsUpgrade",
400 "affinity": "INTEGER"
401 },
402 {
403 "fieldPath": "updatedAt",
404 "columnName": "updatedAt",
405 "affinity": "INTEGER",
406 "notNull": true
407 }
408 ],
409 "primaryKey": {
410 "autoGenerate": false,
411 "columnNames": [
412 "host"
413 ]
414 }
415 }
416 ],
417 "setupQueries": [
418 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
419 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'c877a1e66769e2c7a2c189a564e23714')"
420 ]
421 }
422}