Skip to content
File

Blob: drizzle/cal-dav-do/meta/0001_snapshot.json

json612 lines
1{
2 "version": "6",
3 "dialect": "sqlite",
4 "id": "87ba3d49-c2a8-48d9-8e79-6b24da4cc1e9",
5 "prevId": "4cea9c4b-8c0c-4b00-9379-206f0599859a",
6 "tables": {
7 "meta": {
8 "name": "meta",
9 "columns": {
10 "key": {
11 "name": "key",
12 "type": "text",
13 "primaryKey": true,
14 "notNull": true,
15 "autoincrement": false
16 },
17 "value": {
18 "name": "value",
19 "type": "text",
20 "primaryKey": false,
21 "notNull": true,
22 "autoincrement": false
23 },
24 "updated_at_ms": {
25 "name": "updated_at_ms",
26 "type": "integer",
27 "primaryKey": false,
28 "notNull": true,
29 "autoincrement": false
30 }
31 },
32 "indexes": {},
33 "foreignKeys": {},
34 "compositePrimaryKeys": {},
35 "uniqueConstraints": {},
36 "checkConstraints": {}
37 },
38 "calendar_changes": {
39 "name": "calendar_changes",
40 "columns": {
41 "seq": {
42 "name": "seq",
43 "type": "integer",
44 "primaryKey": true,
45 "notNull": true,
46 "autoincrement": true
47 },
48 "calendar_id": {
49 "name": "calendar_id",
50 "type": "text",
51 "primaryKey": false,
52 "notNull": false,
53 "autoincrement": false
54 },
55 "href": {
56 "name": "href",
57 "type": "text",
58 "primaryKey": false,
59 "notNull": true,
60 "autoincrement": false
61 },
62 "change_type": {
63 "name": "change_type",
64 "type": "text",
65 "primaryKey": false,
66 "notNull": true,
67 "autoincrement": false
68 },
69 "changed_at_ms": {
70 "name": "changed_at_ms",
71 "type": "integer",
72 "primaryKey": false,
73 "notNull": true,
74 "autoincrement": false
75 }
76 },
77 "indexes": {
78 "calendar_changes_calendar_seq_idx": {
79 "name": "calendar_changes_calendar_seq_idx",
80 "columns": [
81 "calendar_id",
82 "seq"
83 ],
84 "isUnique": false
85 },
86 "calendar_changes_changed_idx": {
87 "name": "calendar_changes_changed_idx",
88 "columns": [
89 "changed_at_ms"
90 ],
91 "isUnique": false
92 },
93 "calendar_changes_href_idx": {
94 "name": "calendar_changes_href_idx",
95 "columns": [
96 "href"
97 ],
98 "isUnique": false
99 }
100 },
101 "foreignKeys": {
102 "calendar_changes_calendar_id_calendars_id_fk": {
103 "name": "calendar_changes_calendar_id_calendars_id_fk",
104 "tableFrom": "calendar_changes",
105 "tableTo": "calendars",
106 "columnsFrom": [
107 "calendar_id"
108 ],
109 "columnsTo": [
110 "id"
111 ],
112 "onDelete": "cascade",
113 "onUpdate": "no action"
114 }
115 },
116 "compositePrimaryKeys": {},
117 "uniqueConstraints": {},
118 "checkConstraints": {
119 "calendar_changes_type_check": {
120 "name": "calendar_changes_type_check",
121 "value": "\"calendar_changes\".\"change_type\" in ('created', 'updated', 'deleted')"
122 }
123 }
124 },
125 "calendar_dead_props": {
126 "name": "calendar_dead_props",
127 "columns": {
128 "resource_kind": {
129 "name": "resource_kind",
130 "type": "text",
131 "primaryKey": false,
132 "notNull": true,
133 "autoincrement": false
134 },
135 "resource_id": {
136 "name": "resource_id",
137 "type": "text",
138 "primaryKey": false,
139 "notNull": true,
140 "autoincrement": false
141 },
142 "ns_uri": {
143 "name": "ns_uri",
144 "type": "text",
145 "primaryKey": false,
146 "notNull": true,
147 "autoincrement": false
148 },
149 "local_name": {
150 "name": "local_name",
151 "type": "text",
152 "primaryKey": false,
153 "notNull": true,
154 "autoincrement": false
155 },
156 "xml_value": {
157 "name": "xml_value",
158 "type": "text",
159 "primaryKey": false,
160 "notNull": true,
161 "autoincrement": false
162 }
163 },
164 "indexes": {},
165 "foreignKeys": {},
166 "compositePrimaryKeys": {
167 "calendar_dead_props_resource_kind_resource_id_ns_uri_local_name_pk": {
168 "columns": [
169 "resource_kind",
170 "resource_id",
171 "ns_uri",
172 "local_name"
173 ],
174 "name": "calendar_dead_props_resource_kind_resource_id_ns_uri_local_name_pk"
175 }
176 },
177 "uniqueConstraints": {},
178 "checkConstraints": {
179 "calendar_dead_props_kind_check": {
180 "name": "calendar_dead_props_kind_check",
181 "value": "\"calendar_dead_props\".\"resource_kind\" in ('home', 'calendar', 'object')"
182 }
183 }
184 },
185 "calendar_index": {
186 "name": "calendar_index",
187 "columns": {
188 "object_id": {
189 "name": "object_id",
190 "type": "text",
191 "primaryKey": true,
192 "notNull": true,
193 "autoincrement": false
194 },
195 "calendar_id": {
196 "name": "calendar_id",
197 "type": "text",
198 "primaryKey": false,
199 "notNull": true,
200 "autoincrement": false
201 },
202 "uid": {
203 "name": "uid",
204 "type": "text",
205 "primaryKey": false,
206 "notNull": true,
207 "autoincrement": false
208 },
209 "component_type": {
210 "name": "component_type",
211 "type": "text",
212 "primaryKey": false,
213 "notNull": true,
214 "autoincrement": false
215 },
216 "dtstart_ms": {
217 "name": "dtstart_ms",
218 "type": "integer",
219 "primaryKey": false,
220 "notNull": false,
221 "autoincrement": false
222 },
223 "dtend_ms": {
224 "name": "dtend_ms",
225 "type": "integer",
226 "primaryKey": false,
227 "notNull": false,
228 "autoincrement": false
229 },
230 "due_ms": {
231 "name": "due_ms",
232 "type": "integer",
233 "primaryKey": false,
234 "notNull": false,
235 "autoincrement": false
236 },
237 "completed_ms": {
238 "name": "completed_ms",
239 "type": "integer",
240 "primaryKey": false,
241 "notNull": false,
242 "autoincrement": false
243 },
244 "summary": {
245 "name": "summary",
246 "type": "text",
247 "primaryKey": false,
248 "notNull": false,
249 "autoincrement": false
250 },
251 "has_recurrence": {
252 "name": "has_recurrence",
253 "type": "integer",
254 "primaryKey": false,
255 "notNull": true,
256 "autoincrement": false,
257 "default": false
258 },
259 "recurrence_min_ms": {
260 "name": "recurrence_min_ms",
261 "type": "integer",
262 "primaryKey": false,
263 "notNull": false,
264 "autoincrement": false
265 },
266 "recurrence_max_ms": {
267 "name": "recurrence_max_ms",
268 "type": "integer",
269 "primaryKey": false,
270 "notNull": false,
271 "autoincrement": false
272 }
273 },
274 "indexes": {
275 "calendar_index_timerange_idx": {
276 "name": "calendar_index_timerange_idx",
277 "columns": [
278 "calendar_id",
279 "component_type",
280 "dtstart_ms",
281 "dtend_ms"
282 ],
283 "isUnique": false
284 },
285 "calendar_index_due_idx": {
286 "name": "calendar_index_due_idx",
287 "columns": [
288 "calendar_id",
289 "due_ms"
290 ],
291 "isUnique": false
292 },
293 "calendar_index_completed_idx": {
294 "name": "calendar_index_completed_idx",
295 "columns": [
296 "calendar_id",
297 "completed_ms"
298 ],
299 "isUnique": false
300 },
301 "calendar_index_uid_idx": {
302 "name": "calendar_index_uid_idx",
303 "columns": [
304 "calendar_id",
305 "uid"
306 ],
307 "isUnique": false
308 },
309 "calendar_index_recurrence_idx": {
310 "name": "calendar_index_recurrence_idx",
311 "columns": [
312 "calendar_id",
313 "has_recurrence",
314 "recurrence_min_ms",
315 "recurrence_max_ms"
316 ],
317 "isUnique": false
318 }
319 },
320 "foreignKeys": {
321 "calendar_index_object_id_calendar_objects_id_fk": {
322 "name": "calendar_index_object_id_calendar_objects_id_fk",
323 "tableFrom": "calendar_index",
324 "tableTo": "calendar_objects",
325 "columnsFrom": [
326 "object_id"
327 ],
328 "columnsTo": [
329 "id"
330 ],
331 "onDelete": "cascade",
332 "onUpdate": "no action"
333 },
334 "calendar_index_calendar_id_calendars_id_fk": {
335 "name": "calendar_index_calendar_id_calendars_id_fk",
336 "tableFrom": "calendar_index",
337 "tableTo": "calendars",
338 "columnsFrom": [
339 "calendar_id"
340 ],
341 "columnsTo": [
342 "id"
343 ],
344 "onDelete": "cascade",
345 "onUpdate": "no action"
346 }
347 },
348 "compositePrimaryKeys": {},
349 "uniqueConstraints": {},
350 "checkConstraints": {
351 "calendar_index_component_check": {
352 "name": "calendar_index_component_check",
353 "value": "\"calendar_index\".\"component_type\" in ('VEVENT', 'VTODO', 'VJOURNAL')"
354 }
355 }
356 },
357 "calendar_objects": {
358 "name": "calendar_objects",
359 "columns": {
360 "id": {
361 "name": "id",
362 "type": "text",
363 "primaryKey": true,
364 "notNull": true,
365 "autoincrement": false
366 },
367 "calendar_id": {
368 "name": "calendar_id",
369 "type": "text",
370 "primaryKey": false,
371 "notNull": true,
372 "autoincrement": false
373 },
374 "name": {
375 "name": "name",
376 "type": "text",
377 "primaryKey": false,
378 "notNull": true,
379 "autoincrement": false
380 },
381 "uid": {
382 "name": "uid",
383 "type": "text",
384 "primaryKey": false,
385 "notNull": true,
386 "autoincrement": false
387 },
388 "component_type": {
389 "name": "component_type",
390 "type": "text",
391 "primaryKey": false,
392 "notNull": true,
393 "autoincrement": false
394 },
395 "body": {
396 "name": "body",
397 "type": "text",
398 "primaryKey": false,
399 "notNull": true,
400 "autoincrement": false
401 },
402 "etag": {
403 "name": "etag",
404 "type": "text",
405 "primaryKey": false,
406 "notNull": true,
407 "autoincrement": false
408 },
409 "size": {
410 "name": "size",
411 "type": "integer",
412 "primaryKey": false,
413 "notNull": true,
414 "autoincrement": false
415 },
416 "created_at_ms": {
417 "name": "created_at_ms",
418 "type": "integer",
419 "primaryKey": false,
420 "notNull": true,
421 "autoincrement": false
422 },
423 "modified_at_ms": {
424 "name": "modified_at_ms",
425 "type": "integer",
426 "primaryKey": false,
427 "notNull": true,
428 "autoincrement": false
429 },
430 "version": {
431 "name": "version",
432 "type": "integer",
433 "primaryKey": false,
434 "notNull": true,
435 "autoincrement": false,
436 "default": 1
437 }
438 },
439 "indexes": {
440 "calendar_objects_calendar_name_unique": {
441 "name": "calendar_objects_calendar_name_unique",
442 "columns": [
443 "calendar_id",
444 "name"
445 ],
446 "isUnique": true
447 },
448 "calendar_objects_calendar_uid_unique": {
449 "name": "calendar_objects_calendar_uid_unique",
450 "columns": [
451 "calendar_id",
452 "uid"
453 ],
454 "isUnique": true
455 },
456 "calendar_objects_calendar_modified_idx": {
457 "name": "calendar_objects_calendar_modified_idx",
458 "columns": [
459 "calendar_id",
460 "modified_at_ms"
461 ],
462 "isUnique": false
463 },
464 "calendar_objects_component_idx": {
465 "name": "calendar_objects_component_idx",
466 "columns": [
467 "calendar_id",
468 "component_type"
469 ],
470 "isUnique": false
471 }
472 },
473 "foreignKeys": {
474 "calendar_objects_calendar_id_calendars_id_fk": {
475 "name": "calendar_objects_calendar_id_calendars_id_fk",
476 "tableFrom": "calendar_objects",
477 "tableTo": "calendars",
478 "columnsFrom": [
479 "calendar_id"
480 ],
481 "columnsTo": [
482 "id"
483 ],
484 "onDelete": "cascade",
485 "onUpdate": "no action"
486 }
487 },
488 "compositePrimaryKeys": {},
489 "uniqueConstraints": {},
490 "checkConstraints": {
491 "calendar_objects_component_check": {
492 "name": "calendar_objects_component_check",
493 "value": "\"calendar_objects\".\"component_type\" in ('VEVENT', 'VTODO', 'VJOURNAL')"
494 }
495 }
496 },
497 "calendars": {
498 "name": "calendars",
499 "columns": {
500 "id": {
501 "name": "id",
502 "type": "text",
503 "primaryKey": true,
504 "notNull": true,
505 "autoincrement": false
506 },
507 "name": {
508 "name": "name",
509 "type": "text",
510 "primaryKey": false,
511 "notNull": true,
512 "autoincrement": false
513 },
514 "display_name": {
515 "name": "display_name",
516 "type": "text",
517 "primaryKey": false,
518 "notNull": true,
519 "autoincrement": false
520 },
521 "description": {
522 "name": "description",
523 "type": "text",
524 "primaryKey": false,
525 "notNull": false,
526 "autoincrement": false
527 },
528 "timezone_ical": {
529 "name": "timezone_ical",
530 "type": "text",
531 "primaryKey": false,
532 "notNull": false,
533 "autoincrement": false
534 },
535 "color": {
536 "name": "color",
537 "type": "text",
538 "primaryKey": false,
539 "notNull": false,
540 "autoincrement": false
541 },
542 "order_index": {
543 "name": "order_index",
544 "type": "integer",
545 "primaryKey": false,
546 "notNull": true,
547 "autoincrement": false,
548 "default": 0
549 },
550 "created_at_ms": {
551 "name": "created_at_ms",
552 "type": "integer",
553 "primaryKey": false,
554 "notNull": true,
555 "autoincrement": false
556 },
557 "modified_at_ms": {
558 "name": "modified_at_ms",
559 "type": "integer",
560 "primaryKey": false,
561 "notNull": true,
562 "autoincrement": false
563 },
564 "sync_seq": {
565 "name": "sync_seq",
566 "type": "integer",
567 "primaryKey": false,
568 "notNull": true,
569 "autoincrement": false,
570 "default": 0
571 }
572 },
573 "indexes": {
574 "calendars_name_unique": {
575 "name": "calendars_name_unique",
576 "columns": [
577 "name"
578 ],
579 "isUnique": true
580 },
581 "calendars_order_idx": {
582 "name": "calendars_order_idx",
583 "columns": [
584 "order_index"
585 ],
586 "isUnique": false
587 },
588 "calendars_modified_idx": {
589 "name": "calendars_modified_idx",
590 "columns": [
591 "modified_at_ms"
592 ],
593 "isUnique": false
594 }
595 },
596 "foreignKeys": {},
597 "compositePrimaryKeys": {},
598 "uniqueConstraints": {},
599 "checkConstraints": {}
600 }
601 },
602 "views": {},
603 "enums": {},
604 "_meta": {
605 "schemas": {},
606 "tables": {},
607 "columns": {}
608 },
609 "internal": {
610 "indexes": {}
611 }
612}