File
Blob: drizzle/card-dav-do/meta/0001_snapshot.json
| 1 | { |
| 2 | "version": "6", |
| 3 | "dialect": "sqlite", |
| 4 | "id": "e85ca6ac-0cd8-4aa2-8177-cc645e8276a0", |
| 5 | "prevId": "12dfc2a7-6798-42c7-8771-a3d87111c2a5", |
| 6 | "tables": { |
| 7 | "address_changes": { |
| 8 | "name": "address_changes", |
| 9 | "columns": { |
| 10 | "seq": { |
| 11 | "name": "seq", |
| 12 | "type": "integer", |
| 13 | "primaryKey": true, |
| 14 | "notNull": true, |
| 15 | "autoincrement": true |
| 16 | }, |
| 17 | "addressbook_id": { |
| 18 | "name": "addressbook_id", |
| 19 | "type": "text", |
| 20 | "primaryKey": false, |
| 21 | "notNull": false, |
| 22 | "autoincrement": false |
| 23 | }, |
| 24 | "href": { |
| 25 | "name": "href", |
| 26 | "type": "text", |
| 27 | "primaryKey": false, |
| 28 | "notNull": true, |
| 29 | "autoincrement": false |
| 30 | }, |
| 31 | "change_type": { |
| 32 | "name": "change_type", |
| 33 | "type": "text", |
| 34 | "primaryKey": false, |
| 35 | "notNull": true, |
| 36 | "autoincrement": false |
| 37 | }, |
| 38 | "changed_at_ms": { |
| 39 | "name": "changed_at_ms", |
| 40 | "type": "integer", |
| 41 | "primaryKey": false, |
| 42 | "notNull": true, |
| 43 | "autoincrement": false |
| 44 | } |
| 45 | }, |
| 46 | "indexes": { |
| 47 | "address_changes_book_seq_idx": { |
| 48 | "name": "address_changes_book_seq_idx", |
| 49 | "columns": [ |
| 50 | "addressbook_id", |
| 51 | "seq" |
| 52 | ], |
| 53 | "isUnique": false |
| 54 | }, |
| 55 | "address_changes_changed_idx": { |
| 56 | "name": "address_changes_changed_idx", |
| 57 | "columns": [ |
| 58 | "changed_at_ms" |
| 59 | ], |
| 60 | "isUnique": false |
| 61 | }, |
| 62 | "address_changes_href_idx": { |
| 63 | "name": "address_changes_href_idx", |
| 64 | "columns": [ |
| 65 | "href" |
| 66 | ], |
| 67 | "isUnique": false |
| 68 | } |
| 69 | }, |
| 70 | "foreignKeys": { |
| 71 | "address_changes_addressbook_id_addressbooks_id_fk": { |
| 72 | "name": "address_changes_addressbook_id_addressbooks_id_fk", |
| 73 | "tableFrom": "address_changes", |
| 74 | "tableTo": "addressbooks", |
| 75 | "columnsFrom": [ |
| 76 | "addressbook_id" |
| 77 | ], |
| 78 | "columnsTo": [ |
| 79 | "id" |
| 80 | ], |
| 81 | "onDelete": "cascade", |
| 82 | "onUpdate": "no action" |
| 83 | } |
| 84 | }, |
| 85 | "compositePrimaryKeys": {}, |
| 86 | "uniqueConstraints": {}, |
| 87 | "checkConstraints": { |
| 88 | "address_changes_type_check": { |
| 89 | "name": "address_changes_type_check", |
| 90 | "value": "\"address_changes\".\"change_type\" in ('created', 'updated', 'deleted')" |
| 91 | } |
| 92 | } |
| 93 | }, |
| 94 | "address_dead_props": { |
| 95 | "name": "address_dead_props", |
| 96 | "columns": { |
| 97 | "resource_kind": { |
| 98 | "name": "resource_kind", |
| 99 | "type": "text", |
| 100 | "primaryKey": false, |
| 101 | "notNull": true, |
| 102 | "autoincrement": false |
| 103 | }, |
| 104 | "resource_id": { |
| 105 | "name": "resource_id", |
| 106 | "type": "text", |
| 107 | "primaryKey": false, |
| 108 | "notNull": true, |
| 109 | "autoincrement": false |
| 110 | }, |
| 111 | "ns_uri": { |
| 112 | "name": "ns_uri", |
| 113 | "type": "text", |
| 114 | "primaryKey": false, |
| 115 | "notNull": true, |
| 116 | "autoincrement": false |
| 117 | }, |
| 118 | "local_name": { |
| 119 | "name": "local_name", |
| 120 | "type": "text", |
| 121 | "primaryKey": false, |
| 122 | "notNull": true, |
| 123 | "autoincrement": false |
| 124 | }, |
| 125 | "xml_value": { |
| 126 | "name": "xml_value", |
| 127 | "type": "text", |
| 128 | "primaryKey": false, |
| 129 | "notNull": true, |
| 130 | "autoincrement": false |
| 131 | } |
| 132 | }, |
| 133 | "indexes": {}, |
| 134 | "foreignKeys": {}, |
| 135 | "compositePrimaryKeys": { |
| 136 | "address_dead_props_resource_kind_resource_id_ns_uri_local_name_pk": { |
| 137 | "columns": [ |
| 138 | "resource_kind", |
| 139 | "resource_id", |
| 140 | "ns_uri", |
| 141 | "local_name" |
| 142 | ], |
| 143 | "name": "address_dead_props_resource_kind_resource_id_ns_uri_local_name_pk" |
| 144 | } |
| 145 | }, |
| 146 | "uniqueConstraints": {}, |
| 147 | "checkConstraints": { |
| 148 | "address_dead_props_kind_check": { |
| 149 | "name": "address_dead_props_kind_check", |
| 150 | "value": "\"address_dead_props\".\"resource_kind\" in ('home', 'addressbook', 'object')" |
| 151 | } |
| 152 | } |
| 153 | }, |
| 154 | "address_index": { |
| 155 | "name": "address_index", |
| 156 | "columns": { |
| 157 | "object_id": { |
| 158 | "name": "object_id", |
| 159 | "type": "text", |
| 160 | "primaryKey": true, |
| 161 | "notNull": true, |
| 162 | "autoincrement": false |
| 163 | }, |
| 164 | "addressbook_id": { |
| 165 | "name": "addressbook_id", |
| 166 | "type": "text", |
| 167 | "primaryKey": false, |
| 168 | "notNull": true, |
| 169 | "autoincrement": false |
| 170 | }, |
| 171 | "uid": { |
| 172 | "name": "uid", |
| 173 | "type": "text", |
| 174 | "primaryKey": false, |
| 175 | "notNull": true, |
| 176 | "autoincrement": false |
| 177 | }, |
| 178 | "fn": { |
| 179 | "name": "fn", |
| 180 | "type": "text", |
| 181 | "primaryKey": false, |
| 182 | "notNull": false, |
| 183 | "autoincrement": false |
| 184 | }, |
| 185 | "n_family": { |
| 186 | "name": "n_family", |
| 187 | "type": "text", |
| 188 | "primaryKey": false, |
| 189 | "notNull": false, |
| 190 | "autoincrement": false |
| 191 | }, |
| 192 | "n_given": { |
| 193 | "name": "n_given", |
| 194 | "type": "text", |
| 195 | "primaryKey": false, |
| 196 | "notNull": false, |
| 197 | "autoincrement": false |
| 198 | }, |
| 199 | "org": { |
| 200 | "name": "org", |
| 201 | "type": "text", |
| 202 | "primaryKey": false, |
| 203 | "notNull": false, |
| 204 | "autoincrement": false |
| 205 | }, |
| 206 | "emails_json": { |
| 207 | "name": "emails_json", |
| 208 | "type": "text", |
| 209 | "primaryKey": false, |
| 210 | "notNull": true, |
| 211 | "autoincrement": false |
| 212 | }, |
| 213 | "tels_json": { |
| 214 | "name": "tels_json", |
| 215 | "type": "text", |
| 216 | "primaryKey": false, |
| 217 | "notNull": true, |
| 218 | "autoincrement": false |
| 219 | } |
| 220 | }, |
| 221 | "indexes": { |
| 222 | "address_index_uid_idx": { |
| 223 | "name": "address_index_uid_idx", |
| 224 | "columns": [ |
| 225 | "addressbook_id", |
| 226 | "uid" |
| 227 | ], |
| 228 | "isUnique": false |
| 229 | }, |
| 230 | "address_index_fn_idx": { |
| 231 | "name": "address_index_fn_idx", |
| 232 | "columns": [ |
| 233 | "addressbook_id", |
| 234 | "fn" |
| 235 | ], |
| 236 | "isUnique": false |
| 237 | }, |
| 238 | "address_index_family_idx": { |
| 239 | "name": "address_index_family_idx", |
| 240 | "columns": [ |
| 241 | "addressbook_id", |
| 242 | "n_family" |
| 243 | ], |
| 244 | "isUnique": false |
| 245 | }, |
| 246 | "address_index_given_idx": { |
| 247 | "name": "address_index_given_idx", |
| 248 | "columns": [ |
| 249 | "addressbook_id", |
| 250 | "n_given" |
| 251 | ], |
| 252 | "isUnique": false |
| 253 | }, |
| 254 | "address_index_org_idx": { |
| 255 | "name": "address_index_org_idx", |
| 256 | "columns": [ |
| 257 | "addressbook_id", |
| 258 | "org" |
| 259 | ], |
| 260 | "isUnique": false |
| 261 | } |
| 262 | }, |
| 263 | "foreignKeys": { |
| 264 | "address_index_object_id_address_objects_id_fk": { |
| 265 | "name": "address_index_object_id_address_objects_id_fk", |
| 266 | "tableFrom": "address_index", |
| 267 | "tableTo": "address_objects", |
| 268 | "columnsFrom": [ |
| 269 | "object_id" |
| 270 | ], |
| 271 | "columnsTo": [ |
| 272 | "id" |
| 273 | ], |
| 274 | "onDelete": "cascade", |
| 275 | "onUpdate": "no action" |
| 276 | }, |
| 277 | "address_index_addressbook_id_addressbooks_id_fk": { |
| 278 | "name": "address_index_addressbook_id_addressbooks_id_fk", |
| 279 | "tableFrom": "address_index", |
| 280 | "tableTo": "addressbooks", |
| 281 | "columnsFrom": [ |
| 282 | "addressbook_id" |
| 283 | ], |
| 284 | "columnsTo": [ |
| 285 | "id" |
| 286 | ], |
| 287 | "onDelete": "cascade", |
| 288 | "onUpdate": "no action" |
| 289 | } |
| 290 | }, |
| 291 | "compositePrimaryKeys": {}, |
| 292 | "uniqueConstraints": {}, |
| 293 | "checkConstraints": {} |
| 294 | }, |
| 295 | "address_objects": { |
| 296 | "name": "address_objects", |
| 297 | "columns": { |
| 298 | "id": { |
| 299 | "name": "id", |
| 300 | "type": "text", |
| 301 | "primaryKey": true, |
| 302 | "notNull": true, |
| 303 | "autoincrement": false |
| 304 | }, |
| 305 | "addressbook_id": { |
| 306 | "name": "addressbook_id", |
| 307 | "type": "text", |
| 308 | "primaryKey": false, |
| 309 | "notNull": true, |
| 310 | "autoincrement": false |
| 311 | }, |
| 312 | "name": { |
| 313 | "name": "name", |
| 314 | "type": "text", |
| 315 | "primaryKey": false, |
| 316 | "notNull": true, |
| 317 | "autoincrement": false |
| 318 | }, |
| 319 | "uid": { |
| 320 | "name": "uid", |
| 321 | "type": "text", |
| 322 | "primaryKey": false, |
| 323 | "notNull": true, |
| 324 | "autoincrement": false |
| 325 | }, |
| 326 | "body": { |
| 327 | "name": "body", |
| 328 | "type": "text", |
| 329 | "primaryKey": false, |
| 330 | "notNull": true, |
| 331 | "autoincrement": false |
| 332 | }, |
| 333 | "etag": { |
| 334 | "name": "etag", |
| 335 | "type": "text", |
| 336 | "primaryKey": false, |
| 337 | "notNull": true, |
| 338 | "autoincrement": false |
| 339 | }, |
| 340 | "size": { |
| 341 | "name": "size", |
| 342 | "type": "integer", |
| 343 | "primaryKey": false, |
| 344 | "notNull": true, |
| 345 | "autoincrement": false |
| 346 | }, |
| 347 | "created_at_ms": { |
| 348 | "name": "created_at_ms", |
| 349 | "type": "integer", |
| 350 | "primaryKey": false, |
| 351 | "notNull": true, |
| 352 | "autoincrement": false |
| 353 | }, |
| 354 | "modified_at_ms": { |
| 355 | "name": "modified_at_ms", |
| 356 | "type": "integer", |
| 357 | "primaryKey": false, |
| 358 | "notNull": true, |
| 359 | "autoincrement": false |
| 360 | }, |
| 361 | "version": { |
| 362 | "name": "version", |
| 363 | "type": "integer", |
| 364 | "primaryKey": false, |
| 365 | "notNull": true, |
| 366 | "autoincrement": false, |
| 367 | "default": 1 |
| 368 | } |
| 369 | }, |
| 370 | "indexes": { |
| 371 | "address_objects_book_name_unique": { |
| 372 | "name": "address_objects_book_name_unique", |
| 373 | "columns": [ |
| 374 | "addressbook_id", |
| 375 | "name" |
| 376 | ], |
| 377 | "isUnique": true |
| 378 | }, |
| 379 | "address_objects_book_uid_unique": { |
| 380 | "name": "address_objects_book_uid_unique", |
| 381 | "columns": [ |
| 382 | "addressbook_id", |
| 383 | "uid" |
| 384 | ], |
| 385 | "isUnique": true |
| 386 | }, |
| 387 | "address_objects_book_modified_idx": { |
| 388 | "name": "address_objects_book_modified_idx", |
| 389 | "columns": [ |
| 390 | "addressbook_id", |
| 391 | "modified_at_ms" |
| 392 | ], |
| 393 | "isUnique": false |
| 394 | } |
| 395 | }, |
| 396 | "foreignKeys": { |
| 397 | "address_objects_addressbook_id_addressbooks_id_fk": { |
| 398 | "name": "address_objects_addressbook_id_addressbooks_id_fk", |
| 399 | "tableFrom": "address_objects", |
| 400 | "tableTo": "addressbooks", |
| 401 | "columnsFrom": [ |
| 402 | "addressbook_id" |
| 403 | ], |
| 404 | "columnsTo": [ |
| 405 | "id" |
| 406 | ], |
| 407 | "onDelete": "cascade", |
| 408 | "onUpdate": "no action" |
| 409 | } |
| 410 | }, |
| 411 | "compositePrimaryKeys": {}, |
| 412 | "uniqueConstraints": {}, |
| 413 | "checkConstraints": {} |
| 414 | }, |
| 415 | "addressbooks": { |
| 416 | "name": "addressbooks", |
| 417 | "columns": { |
| 418 | "id": { |
| 419 | "name": "id", |
| 420 | "type": "text", |
| 421 | "primaryKey": true, |
| 422 | "notNull": true, |
| 423 | "autoincrement": false |
| 424 | }, |
| 425 | "name": { |
| 426 | "name": "name", |
| 427 | "type": "text", |
| 428 | "primaryKey": false, |
| 429 | "notNull": true, |
| 430 | "autoincrement": false |
| 431 | }, |
| 432 | "display_name": { |
| 433 | "name": "display_name", |
| 434 | "type": "text", |
| 435 | "primaryKey": false, |
| 436 | "notNull": true, |
| 437 | "autoincrement": false |
| 438 | }, |
| 439 | "description": { |
| 440 | "name": "description", |
| 441 | "type": "text", |
| 442 | "primaryKey": false, |
| 443 | "notNull": false, |
| 444 | "autoincrement": false |
| 445 | }, |
| 446 | "created_at_ms": { |
| 447 | "name": "created_at_ms", |
| 448 | "type": "integer", |
| 449 | "primaryKey": false, |
| 450 | "notNull": true, |
| 451 | "autoincrement": false |
| 452 | }, |
| 453 | "modified_at_ms": { |
| 454 | "name": "modified_at_ms", |
| 455 | "type": "integer", |
| 456 | "primaryKey": false, |
| 457 | "notNull": true, |
| 458 | "autoincrement": false |
| 459 | }, |
| 460 | "sync_seq": { |
| 461 | "name": "sync_seq", |
| 462 | "type": "integer", |
| 463 | "primaryKey": false, |
| 464 | "notNull": true, |
| 465 | "autoincrement": false, |
| 466 | "default": 0 |
| 467 | } |
| 468 | }, |
| 469 | "indexes": { |
| 470 | "addressbooks_name_unique": { |
| 471 | "name": "addressbooks_name_unique", |
| 472 | "columns": [ |
| 473 | "name" |
| 474 | ], |
| 475 | "isUnique": true |
| 476 | }, |
| 477 | "addressbooks_modified_idx": { |
| 478 | "name": "addressbooks_modified_idx", |
| 479 | "columns": [ |
| 480 | "modified_at_ms" |
| 481 | ], |
| 482 | "isUnique": false |
| 483 | } |
| 484 | }, |
| 485 | "foreignKeys": {}, |
| 486 | "compositePrimaryKeys": {}, |
| 487 | "uniqueConstraints": {}, |
| 488 | "checkConstraints": {} |
| 489 | }, |
| 490 | "meta": { |
| 491 | "name": "meta", |
| 492 | "columns": { |
| 493 | "key": { |
| 494 | "name": "key", |
| 495 | "type": "text", |
| 496 | "primaryKey": true, |
| 497 | "notNull": true, |
| 498 | "autoincrement": false |
| 499 | }, |
| 500 | "value": { |
| 501 | "name": "value", |
| 502 | "type": "text", |
| 503 | "primaryKey": false, |
| 504 | "notNull": true, |
| 505 | "autoincrement": false |
| 506 | }, |
| 507 | "updated_at_ms": { |
| 508 | "name": "updated_at_ms", |
| 509 | "type": "integer", |
| 510 | "primaryKey": false, |
| 511 | "notNull": true, |
| 512 | "autoincrement": false |
| 513 | } |
| 514 | }, |
| 515 | "indexes": {}, |
| 516 | "foreignKeys": {}, |
| 517 | "compositePrimaryKeys": {}, |
| 518 | "uniqueConstraints": {}, |
| 519 | "checkConstraints": {} |
| 520 | } |
| 521 | }, |
| 522 | "views": {}, |
| 523 | "enums": {}, |
| 524 | "_meta": { |
| 525 | "schemas": {}, |
| 526 | "tables": {}, |
| 527 | "columns": {} |
| 528 | }, |
| 529 | "internal": { |
| 530 | "indexes": {} |
| 531 | } |
| 532 | } |