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

Modern-Apps.git / weather / schemas / com.vayunmathur.weather.data.WeatherDatabase / 2.json

2.json109 lines · 3.2 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 2,
5 "identityHash": "800fa8153fd8b091dae2b6627bf682d2",
6 "entities": [
7 {
8 "tableName": "SavedLocation",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `country` TEXT NOT NULL, `latitude` REAL NOT NULL, `longitude` REAL NOT NULL, `displayOrder` INTEGER NOT NULL, `isCurrent` INTEGER NOT NULL)",
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": true
22 },
23 {
24 "fieldPath": "country",
25 "columnName": "country",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "latitude",
31 "columnName": "latitude",
32 "affinity": "REAL",
33 "notNull": true
34 },
35 {
36 "fieldPath": "longitude",
37 "columnName": "longitude",
38 "affinity": "REAL",
39 "notNull": true
40 },
41 {
42 "fieldPath": "displayOrder",
43 "columnName": "displayOrder",
44 "affinity": "INTEGER",
45 "notNull": true
46 },
47 {
48 "fieldPath": "isCurrent",
49 "columnName": "isCurrent",
50 "affinity": "INTEGER",
51 "notNull": true
52 }
53 ],
54 "primaryKey": {
55 "autoGenerate": true,
56 "columnNames": [
57 "id"
58 ]
59 }
60 },
61 {
62 "tableName": "WeatherCache",
63 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`latRounded` REAL NOT NULL, `lonRounded` REAL NOT NULL, `forecastJson` TEXT NOT NULL, `airQualityJson` TEXT, `fetchedAtEpochMs` INTEGER NOT NULL, PRIMARY KEY(`latRounded`, `lonRounded`))",
64 "fields": [
65 {
66 "fieldPath": "latRounded",
67 "columnName": "latRounded",
68 "affinity": "REAL",
69 "notNull": true
70 },
71 {
72 "fieldPath": "lonRounded",
73 "columnName": "lonRounded",
74 "affinity": "REAL",
75 "notNull": true
76 },
77 {
78 "fieldPath": "forecastJson",
79 "columnName": "forecastJson",
80 "affinity": "TEXT",
81 "notNull": true
82 },
83 {
84 "fieldPath": "airQualityJson",
85 "columnName": "airQualityJson",
86 "affinity": "TEXT"
87 },
88 {
89 "fieldPath": "fetchedAtEpochMs",
90 "columnName": "fetchedAtEpochMs",
91 "affinity": "INTEGER",
92 "notNull": true
93 }
94 ],
95 "primaryKey": {
96 "autoGenerate": false,
97 "columnNames": [
98 "latRounded",
99 "lonRounded"
100 ]
101 }
102 }
103 ],
104 "setupQueries": [
105 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
106 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '800fa8153fd8b091dae2b6627bf682d2')"
107 ]
108 }
109}