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

Modern-Apps.git / parentalcontrols / schemas / com.vayunmathur.parentalcontrols.data.ParentalControlsDatabase / 2.json

2.json232 lines · 6.7 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 2,
5 "identityHash": "4000b5abd2e2773450b97fb4c4e97281",
6 "entities": [
7 {
8 "tableName": "AppRule",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`packageName` TEXT NOT NULL, `dailyLimitMinutes` INTEGER, `blockedAtBedtime` INTEGER NOT NULL, `allowedInDowntime` INTEGER NOT NULL, PRIMARY KEY(`packageName`))",
10 "fields": [
11 {
12 "fieldPath": "packageName",
13 "columnName": "packageName",
14 "affinity": "TEXT",
15 "notNull": true
16 },
17 {
18 "fieldPath": "dailyLimitMinutes",
19 "columnName": "dailyLimitMinutes",
20 "affinity": "INTEGER"
21 },
22 {
23 "fieldPath": "blockedAtBedtime",
24 "columnName": "blockedAtBedtime",
25 "affinity": "INTEGER",
26 "notNull": true
27 },
28 {
29 "fieldPath": "allowedInDowntime",
30 "columnName": "allowedInDowntime",
31 "affinity": "INTEGER",
32 "notNull": true
33 }
34 ],
35 "primaryKey": {
36 "autoGenerate": false,
37 "columnNames": [
38 "packageName"
39 ]
40 }
41 },
42 {
43 "tableName": "BedtimeSchedule",
44 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `startMinute` INTEGER NOT NULL, `endMinute` INTEGER NOT NULL, `daysMask` INTEGER NOT NULL, PRIMARY KEY(`id`))",
45 "fields": [
46 {
47 "fieldPath": "id",
48 "columnName": "id",
49 "affinity": "INTEGER",
50 "notNull": true
51 },
52 {
53 "fieldPath": "enabled",
54 "columnName": "enabled",
55 "affinity": "INTEGER",
56 "notNull": true
57 },
58 {
59 "fieldPath": "startMinute",
60 "columnName": "startMinute",
61 "affinity": "INTEGER",
62 "notNull": true
63 },
64 {
65 "fieldPath": "endMinute",
66 "columnName": "endMinute",
67 "affinity": "INTEGER",
68 "notNull": true
69 },
70 {
71 "fieldPath": "daysMask",
72 "columnName": "daysMask",
73 "affinity": "INTEGER",
74 "notNull": true
75 }
76 ],
77 "primaryKey": {
78 "autoGenerate": false,
79 "columnNames": [
80 "id"
81 ]
82 }
83 },
84 {
85 "tableName": "DowntimeSchedule",
86 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `startMinute` INTEGER NOT NULL, `endMinute` INTEGER NOT NULL, `daysMask` INTEGER NOT NULL, PRIMARY KEY(`id`))",
87 "fields": [
88 {
89 "fieldPath": "id",
90 "columnName": "id",
91 "affinity": "INTEGER",
92 "notNull": true
93 },
94 {
95 "fieldPath": "enabled",
96 "columnName": "enabled",
97 "affinity": "INTEGER",
98 "notNull": true
99 },
100 {
101 "fieldPath": "startMinute",
102 "columnName": "startMinute",
103 "affinity": "INTEGER",
104 "notNull": true
105 },
106 {
107 "fieldPath": "endMinute",
108 "columnName": "endMinute",
109 "affinity": "INTEGER",
110 "notNull": true
111 },
112 {
113 "fieldPath": "daysMask",
114 "columnName": "daysMask",
115 "affinity": "INTEGER",
116 "notNull": true
117 }
118 ],
119 "primaryKey": {
120 "autoGenerate": false,
121 "columnNames": [
122 "id"
123 ]
124 }
125 },
126 {
127 "tableName": "SchoolTimeSchedule",
128 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `startMinute` INTEGER NOT NULL, `endMinute` INTEGER NOT NULL, `daysMask` INTEGER NOT NULL, PRIMARY KEY(`id`))",
129 "fields": [
130 {
131 "fieldPath": "id",
132 "columnName": "id",
133 "affinity": "INTEGER",
134 "notNull": true
135 },
136 {
137 "fieldPath": "enabled",
138 "columnName": "enabled",
139 "affinity": "INTEGER",
140 "notNull": true
141 },
142 {
143 "fieldPath": "startMinute",
144 "columnName": "startMinute",
145 "affinity": "INTEGER",
146 "notNull": true
147 },
148 {
149 "fieldPath": "endMinute",
150 "columnName": "endMinute",
151 "affinity": "INTEGER",
152 "notNull": true
153 },
154 {
155 "fieldPath": "daysMask",
156 "columnName": "daysMask",
157 "affinity": "INTEGER",
158 "notNull": true
159 }
160 ],
161 "primaryKey": {
162 "autoGenerate": false,
163 "columnNames": [
164 "id"
165 ]
166 }
167 },
168 {
169 "tableName": "DailyLimit",
170 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `dailyLimitMinutes` INTEGER, PRIMARY KEY(`id`))",
171 "fields": [
172 {
173 "fieldPath": "id",
174 "columnName": "id",
175 "affinity": "INTEGER",
176 "notNull": true
177 },
178 {
179 "fieldPath": "dailyLimitMinutes",
180 "columnName": "dailyLimitMinutes",
181 "affinity": "INTEGER"
182 }
183 ],
184 "primaryKey": {
185 "autoGenerate": false,
186 "columnNames": [
187 "id"
188 ]
189 }
190 },
191 {
192 "tableName": "BonusGrant",
193 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `packageName` TEXT, `bonusMinutes` INTEGER NOT NULL, `day` TEXT NOT NULL)",
194 "fields": [
195 {
196 "fieldPath": "id",
197 "columnName": "id",
198 "affinity": "INTEGER",
199 "notNull": true
200 },
201 {
202 "fieldPath": "packageName",
203 "columnName": "packageName",
204 "affinity": "TEXT"
205 },
206 {
207 "fieldPath": "bonusMinutes",
208 "columnName": "bonusMinutes",
209 "affinity": "INTEGER",
210 "notNull": true
211 },
212 {
213 "fieldPath": "day",
214 "columnName": "day",
215 "affinity": "TEXT",
216 "notNull": true
217 }
218 ],
219 "primaryKey": {
220 "autoGenerate": true,
221 "columnNames": [
222 "id"
223 ]
224 }
225 }
226 ],
227 "setupQueries": [
228 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
229 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '4000b5abd2e2773450b97fb4c4e97281')"
230 ]
231 }
232}