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

Modern-Apps.git / todo / schemas / com.vayunmathur.todo.data.TodoDatabase / 3.json

3.json306 lines · 9.1 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 3,
5 "identityHash": "efaa234effa3d50d4962a5daaeb3fe3c",
6 "entities": [
7 {
8 "tableName": "Todo",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `notes` TEXT NOT NULL, `done` INTEGER NOT NULL, `position` REAL NOT NULL, `dueAt` INTEGER, `createdAt` INTEGER NOT NULL, `syncId` TEXT NOT NULL, `updatedAt` INTEGER NOT NULL, `deleted` INTEGER NOT NULL, `parentSyncId` TEXT, `listSyncId` TEXT, `section` TEXT, `tags` TEXT NOT NULL, `priority` INTEGER NOT NULL, `dueAllDay` INTEGER NOT NULL, `startAt` INTEGER, `recurrence` TEXT, `reminderAt` INTEGER, `completedAt` INTEGER, `estimateMinutes` INTEGER, `blockedBy` TEXT NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "title",
19 "columnName": "title",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "notes",
25 "columnName": "notes",
26 "affinity": "TEXT",
27 "notNull": true
28 },
29 {
30 "fieldPath": "done",
31 "columnName": "done",
32 "affinity": "INTEGER",
33 "notNull": true
34 },
35 {
36 "fieldPath": "position",
37 "columnName": "position",
38 "affinity": "REAL",
39 "notNull": true
40 },
41 {
42 "fieldPath": "dueAt",
43 "columnName": "dueAt",
44 "affinity": "INTEGER"
45 },
46 {
47 "fieldPath": "createdAt",
48 "columnName": "createdAt",
49 "affinity": "INTEGER",
50 "notNull": true
51 },
52 {
53 "fieldPath": "syncId",
54 "columnName": "syncId",
55 "affinity": "TEXT",
56 "notNull": true
57 },
58 {
59 "fieldPath": "updatedAt",
60 "columnName": "updatedAt",
61 "affinity": "INTEGER",
62 "notNull": true
63 },
64 {
65 "fieldPath": "deleted",
66 "columnName": "deleted",
67 "affinity": "INTEGER",
68 "notNull": true
69 },
70 {
71 "fieldPath": "parentSyncId",
72 "columnName": "parentSyncId",
73 "affinity": "TEXT"
74 },
75 {
76 "fieldPath": "listSyncId",
77 "columnName": "listSyncId",
78 "affinity": "TEXT"
79 },
80 {
81 "fieldPath": "section",
82 "columnName": "section",
83 "affinity": "TEXT"
84 },
85 {
86 "fieldPath": "tags",
87 "columnName": "tags",
88 "affinity": "TEXT",
89 "notNull": true
90 },
91 {
92 "fieldPath": "priority",
93 "columnName": "priority",
94 "affinity": "INTEGER",
95 "notNull": true
96 },
97 {
98 "fieldPath": "dueAllDay",
99 "columnName": "dueAllDay",
100 "affinity": "INTEGER",
101 "notNull": true
102 },
103 {
104 "fieldPath": "startAt",
105 "columnName": "startAt",
106 "affinity": "INTEGER"
107 },
108 {
109 "fieldPath": "recurrence",
110 "columnName": "recurrence",
111 "affinity": "TEXT"
112 },
113 {
114 "fieldPath": "reminderAt",
115 "columnName": "reminderAt",
116 "affinity": "INTEGER"
117 },
118 {
119 "fieldPath": "completedAt",
120 "columnName": "completedAt",
121 "affinity": "INTEGER"
122 },
123 {
124 "fieldPath": "estimateMinutes",
125 "columnName": "estimateMinutes",
126 "affinity": "INTEGER"
127 },
128 {
129 "fieldPath": "blockedBy",
130 "columnName": "blockedBy",
131 "affinity": "TEXT",
132 "notNull": true
133 }
134 ],
135 "primaryKey": {
136 "autoGenerate": true,
137 "columnNames": [
138 "id"
139 ]
140 },
141 "indices": [
142 {
143 "name": "index_Todo_syncId",
144 "unique": false,
145 "columnNames": [
146 "syncId"
147 ],
148 "orders": [],
149 "createSql": "CREATE INDEX IF NOT EXISTS `index_Todo_syncId` ON `${TABLE_NAME}` (`syncId`)"
150 },
151 {
152 "name": "index_Todo_listSyncId",
153 "unique": false,
154 "columnNames": [
155 "listSyncId"
156 ],
157 "orders": [],
158 "createSql": "CREATE INDEX IF NOT EXISTS `index_Todo_listSyncId` ON `${TABLE_NAME}` (`listSyncId`)"
159 },
160 {
161 "name": "index_Todo_parentSyncId",
162 "unique": false,
163 "columnNames": [
164 "parentSyncId"
165 ],
166 "orders": [],
167 "createSql": "CREATE INDEX IF NOT EXISTS `index_Todo_parentSyncId` ON `${TABLE_NAME}` (`parentSyncId`)"
168 }
169 ]
170 },
171 {
172 "tableName": "TodoList",
173 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `syncId` TEXT NOT NULL, `name` TEXT NOT NULL, `color` INTEGER, `icon` TEXT, `position` REAL NOT NULL, `sections` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, `deleted` INTEGER NOT NULL)",
174 "fields": [
175 {
176 "fieldPath": "id",
177 "columnName": "id",
178 "affinity": "INTEGER",
179 "notNull": true
180 },
181 {
182 "fieldPath": "syncId",
183 "columnName": "syncId",
184 "affinity": "TEXT",
185 "notNull": true
186 },
187 {
188 "fieldPath": "name",
189 "columnName": "name",
190 "affinity": "TEXT",
191 "notNull": true
192 },
193 {
194 "fieldPath": "color",
195 "columnName": "color",
196 "affinity": "INTEGER"
197 },
198 {
199 "fieldPath": "icon",
200 "columnName": "icon",
201 "affinity": "TEXT"
202 },
203 {
204 "fieldPath": "position",
205 "columnName": "position",
206 "affinity": "REAL",
207 "notNull": true
208 },
209 {
210 "fieldPath": "sections",
211 "columnName": "sections",
212 "affinity": "TEXT",
213 "notNull": true
214 },
215 {
216 "fieldPath": "createdAt",
217 "columnName": "createdAt",
218 "affinity": "INTEGER",
219 "notNull": true
220 },
221 {
222 "fieldPath": "updatedAt",
223 "columnName": "updatedAt",
224 "affinity": "INTEGER",
225 "notNull": true
226 },
227 {
228 "fieldPath": "deleted",
229 "columnName": "deleted",
230 "affinity": "INTEGER",
231 "notNull": true
232 }
233 ],
234 "primaryKey": {
235 "autoGenerate": true,
236 "columnNames": [
237 "id"
238 ]
239 },
240 "indices": [
241 {
242 "name": "index_TodoList_syncId",
243 "unique": false,
244 "columnNames": [
245 "syncId"
246 ],
247 "orders": [],
248 "createSql": "CREATE INDEX IF NOT EXISTS `index_TodoList_syncId` ON `${TABLE_NAME}` (`syncId`)"
249 }
250 ]
251 },
252 {
253 "tableName": "SyncSnapshot",
254 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`syncId` TEXT NOT NULL, `kind` TEXT NOT NULL, `contentHash` TEXT NOT NULL, `localUpdatedAt` INTEGER NOT NULL, `remoteModified` INTEGER NOT NULL, `lastSyncedAt` INTEGER NOT NULL, PRIMARY KEY(`syncId`))",
255 "fields": [
256 {
257 "fieldPath": "syncId",
258 "columnName": "syncId",
259 "affinity": "TEXT",
260 "notNull": true
261 },
262 {
263 "fieldPath": "kind",
264 "columnName": "kind",
265 "affinity": "TEXT",
266 "notNull": true
267 },
268 {
269 "fieldPath": "contentHash",
270 "columnName": "contentHash",
271 "affinity": "TEXT",
272 "notNull": true
273 },
274 {
275 "fieldPath": "localUpdatedAt",
276 "columnName": "localUpdatedAt",
277 "affinity": "INTEGER",
278 "notNull": true
279 },
280 {
281 "fieldPath": "remoteModified",
282 "columnName": "remoteModified",
283 "affinity": "INTEGER",
284 "notNull": true
285 },
286 {
287 "fieldPath": "lastSyncedAt",
288 "columnName": "lastSyncedAt",
289 "affinity": "INTEGER",
290 "notNull": true
291 }
292 ],
293 "primaryKey": {
294 "autoGenerate": false,
295 "columnNames": [
296 "syncId"
297 ]
298 }
299 }
300 ],
301 "setupQueries": [
302 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
303 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'efaa234effa3d50d4962a5daaeb3fe3c')"
304 ]
305 }
306}