snapshot.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "068758ed-a97a-46f6-8a59-6c639ae7c20c",
  5. "prevIds": ["00000000-0000-0000-0000-000000000000"],
  6. "ddl": [
  7. {
  8. "name": "project",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "message",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "part",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "permission",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "session",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "todo",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "session_share",
  33. "entityType": "tables"
  34. },
  35. {
  36. "type": "text",
  37. "notNull": false,
  38. "autoincrement": false,
  39. "default": null,
  40. "generated": null,
  41. "name": "id",
  42. "entityType": "columns",
  43. "table": "project"
  44. },
  45. {
  46. "type": "text",
  47. "notNull": true,
  48. "autoincrement": false,
  49. "default": null,
  50. "generated": null,
  51. "name": "worktree",
  52. "entityType": "columns",
  53. "table": "project"
  54. },
  55. {
  56. "type": "text",
  57. "notNull": false,
  58. "autoincrement": false,
  59. "default": null,
  60. "generated": null,
  61. "name": "vcs",
  62. "entityType": "columns",
  63. "table": "project"
  64. },
  65. {
  66. "type": "text",
  67. "notNull": false,
  68. "autoincrement": false,
  69. "default": null,
  70. "generated": null,
  71. "name": "name",
  72. "entityType": "columns",
  73. "table": "project"
  74. },
  75. {
  76. "type": "text",
  77. "notNull": false,
  78. "autoincrement": false,
  79. "default": null,
  80. "generated": null,
  81. "name": "icon_url",
  82. "entityType": "columns",
  83. "table": "project"
  84. },
  85. {
  86. "type": "text",
  87. "notNull": false,
  88. "autoincrement": false,
  89. "default": null,
  90. "generated": null,
  91. "name": "icon_color",
  92. "entityType": "columns",
  93. "table": "project"
  94. },
  95. {
  96. "type": "integer",
  97. "notNull": true,
  98. "autoincrement": false,
  99. "default": null,
  100. "generated": null,
  101. "name": "time_created",
  102. "entityType": "columns",
  103. "table": "project"
  104. },
  105. {
  106. "type": "integer",
  107. "notNull": true,
  108. "autoincrement": false,
  109. "default": null,
  110. "generated": null,
  111. "name": "time_updated",
  112. "entityType": "columns",
  113. "table": "project"
  114. },
  115. {
  116. "type": "integer",
  117. "notNull": false,
  118. "autoincrement": false,
  119. "default": null,
  120. "generated": null,
  121. "name": "time_initialized",
  122. "entityType": "columns",
  123. "table": "project"
  124. },
  125. {
  126. "type": "text",
  127. "notNull": true,
  128. "autoincrement": false,
  129. "default": null,
  130. "generated": null,
  131. "name": "sandboxes",
  132. "entityType": "columns",
  133. "table": "project"
  134. },
  135. {
  136. "type": "text",
  137. "notNull": false,
  138. "autoincrement": false,
  139. "default": null,
  140. "generated": null,
  141. "name": "id",
  142. "entityType": "columns",
  143. "table": "message"
  144. },
  145. {
  146. "type": "text",
  147. "notNull": true,
  148. "autoincrement": false,
  149. "default": null,
  150. "generated": null,
  151. "name": "session_id",
  152. "entityType": "columns",
  153. "table": "message"
  154. },
  155. {
  156. "type": "integer",
  157. "notNull": true,
  158. "autoincrement": false,
  159. "default": null,
  160. "generated": null,
  161. "name": "time_created",
  162. "entityType": "columns",
  163. "table": "message"
  164. },
  165. {
  166. "type": "integer",
  167. "notNull": true,
  168. "autoincrement": false,
  169. "default": null,
  170. "generated": null,
  171. "name": "time_updated",
  172. "entityType": "columns",
  173. "table": "message"
  174. },
  175. {
  176. "type": "text",
  177. "notNull": true,
  178. "autoincrement": false,
  179. "default": null,
  180. "generated": null,
  181. "name": "data",
  182. "entityType": "columns",
  183. "table": "message"
  184. },
  185. {
  186. "type": "text",
  187. "notNull": false,
  188. "autoincrement": false,
  189. "default": null,
  190. "generated": null,
  191. "name": "id",
  192. "entityType": "columns",
  193. "table": "part"
  194. },
  195. {
  196. "type": "text",
  197. "notNull": true,
  198. "autoincrement": false,
  199. "default": null,
  200. "generated": null,
  201. "name": "message_id",
  202. "entityType": "columns",
  203. "table": "part"
  204. },
  205. {
  206. "type": "text",
  207. "notNull": true,
  208. "autoincrement": false,
  209. "default": null,
  210. "generated": null,
  211. "name": "session_id",
  212. "entityType": "columns",
  213. "table": "part"
  214. },
  215. {
  216. "type": "integer",
  217. "notNull": true,
  218. "autoincrement": false,
  219. "default": null,
  220. "generated": null,
  221. "name": "time_created",
  222. "entityType": "columns",
  223. "table": "part"
  224. },
  225. {
  226. "type": "integer",
  227. "notNull": true,
  228. "autoincrement": false,
  229. "default": null,
  230. "generated": null,
  231. "name": "time_updated",
  232. "entityType": "columns",
  233. "table": "part"
  234. },
  235. {
  236. "type": "text",
  237. "notNull": true,
  238. "autoincrement": false,
  239. "default": null,
  240. "generated": null,
  241. "name": "data",
  242. "entityType": "columns",
  243. "table": "part"
  244. },
  245. {
  246. "type": "text",
  247. "notNull": false,
  248. "autoincrement": false,
  249. "default": null,
  250. "generated": null,
  251. "name": "project_id",
  252. "entityType": "columns",
  253. "table": "permission"
  254. },
  255. {
  256. "type": "integer",
  257. "notNull": true,
  258. "autoincrement": false,
  259. "default": null,
  260. "generated": null,
  261. "name": "time_created",
  262. "entityType": "columns",
  263. "table": "permission"
  264. },
  265. {
  266. "type": "integer",
  267. "notNull": true,
  268. "autoincrement": false,
  269. "default": null,
  270. "generated": null,
  271. "name": "time_updated",
  272. "entityType": "columns",
  273. "table": "permission"
  274. },
  275. {
  276. "type": "text",
  277. "notNull": true,
  278. "autoincrement": false,
  279. "default": null,
  280. "generated": null,
  281. "name": "data",
  282. "entityType": "columns",
  283. "table": "permission"
  284. },
  285. {
  286. "type": "text",
  287. "notNull": false,
  288. "autoincrement": false,
  289. "default": null,
  290. "generated": null,
  291. "name": "id",
  292. "entityType": "columns",
  293. "table": "session"
  294. },
  295. {
  296. "type": "text",
  297. "notNull": true,
  298. "autoincrement": false,
  299. "default": null,
  300. "generated": null,
  301. "name": "project_id",
  302. "entityType": "columns",
  303. "table": "session"
  304. },
  305. {
  306. "type": "text",
  307. "notNull": false,
  308. "autoincrement": false,
  309. "default": null,
  310. "generated": null,
  311. "name": "parent_id",
  312. "entityType": "columns",
  313. "table": "session"
  314. },
  315. {
  316. "type": "text",
  317. "notNull": true,
  318. "autoincrement": false,
  319. "default": null,
  320. "generated": null,
  321. "name": "slug",
  322. "entityType": "columns",
  323. "table": "session"
  324. },
  325. {
  326. "type": "text",
  327. "notNull": true,
  328. "autoincrement": false,
  329. "default": null,
  330. "generated": null,
  331. "name": "directory",
  332. "entityType": "columns",
  333. "table": "session"
  334. },
  335. {
  336. "type": "text",
  337. "notNull": true,
  338. "autoincrement": false,
  339. "default": null,
  340. "generated": null,
  341. "name": "title",
  342. "entityType": "columns",
  343. "table": "session"
  344. },
  345. {
  346. "type": "text",
  347. "notNull": true,
  348. "autoincrement": false,
  349. "default": null,
  350. "generated": null,
  351. "name": "version",
  352. "entityType": "columns",
  353. "table": "session"
  354. },
  355. {
  356. "type": "text",
  357. "notNull": false,
  358. "autoincrement": false,
  359. "default": null,
  360. "generated": null,
  361. "name": "share_url",
  362. "entityType": "columns",
  363. "table": "session"
  364. },
  365. {
  366. "type": "integer",
  367. "notNull": false,
  368. "autoincrement": false,
  369. "default": null,
  370. "generated": null,
  371. "name": "summary_additions",
  372. "entityType": "columns",
  373. "table": "session"
  374. },
  375. {
  376. "type": "integer",
  377. "notNull": false,
  378. "autoincrement": false,
  379. "default": null,
  380. "generated": null,
  381. "name": "summary_deletions",
  382. "entityType": "columns",
  383. "table": "session"
  384. },
  385. {
  386. "type": "integer",
  387. "notNull": false,
  388. "autoincrement": false,
  389. "default": null,
  390. "generated": null,
  391. "name": "summary_files",
  392. "entityType": "columns",
  393. "table": "session"
  394. },
  395. {
  396. "type": "text",
  397. "notNull": false,
  398. "autoincrement": false,
  399. "default": null,
  400. "generated": null,
  401. "name": "summary_diffs",
  402. "entityType": "columns",
  403. "table": "session"
  404. },
  405. {
  406. "type": "text",
  407. "notNull": false,
  408. "autoincrement": false,
  409. "default": null,
  410. "generated": null,
  411. "name": "revert",
  412. "entityType": "columns",
  413. "table": "session"
  414. },
  415. {
  416. "type": "text",
  417. "notNull": false,
  418. "autoincrement": false,
  419. "default": null,
  420. "generated": null,
  421. "name": "permission",
  422. "entityType": "columns",
  423. "table": "session"
  424. },
  425. {
  426. "type": "integer",
  427. "notNull": true,
  428. "autoincrement": false,
  429. "default": null,
  430. "generated": null,
  431. "name": "time_created",
  432. "entityType": "columns",
  433. "table": "session"
  434. },
  435. {
  436. "type": "integer",
  437. "notNull": true,
  438. "autoincrement": false,
  439. "default": null,
  440. "generated": null,
  441. "name": "time_updated",
  442. "entityType": "columns",
  443. "table": "session"
  444. },
  445. {
  446. "type": "integer",
  447. "notNull": false,
  448. "autoincrement": false,
  449. "default": null,
  450. "generated": null,
  451. "name": "time_compacting",
  452. "entityType": "columns",
  453. "table": "session"
  454. },
  455. {
  456. "type": "integer",
  457. "notNull": false,
  458. "autoincrement": false,
  459. "default": null,
  460. "generated": null,
  461. "name": "time_archived",
  462. "entityType": "columns",
  463. "table": "session"
  464. },
  465. {
  466. "type": "text",
  467. "notNull": true,
  468. "autoincrement": false,
  469. "default": null,
  470. "generated": null,
  471. "name": "session_id",
  472. "entityType": "columns",
  473. "table": "todo"
  474. },
  475. {
  476. "type": "text",
  477. "notNull": true,
  478. "autoincrement": false,
  479. "default": null,
  480. "generated": null,
  481. "name": "content",
  482. "entityType": "columns",
  483. "table": "todo"
  484. },
  485. {
  486. "type": "text",
  487. "notNull": true,
  488. "autoincrement": false,
  489. "default": null,
  490. "generated": null,
  491. "name": "status",
  492. "entityType": "columns",
  493. "table": "todo"
  494. },
  495. {
  496. "type": "text",
  497. "notNull": true,
  498. "autoincrement": false,
  499. "default": null,
  500. "generated": null,
  501. "name": "priority",
  502. "entityType": "columns",
  503. "table": "todo"
  504. },
  505. {
  506. "type": "integer",
  507. "notNull": true,
  508. "autoincrement": false,
  509. "default": null,
  510. "generated": null,
  511. "name": "position",
  512. "entityType": "columns",
  513. "table": "todo"
  514. },
  515. {
  516. "type": "integer",
  517. "notNull": true,
  518. "autoincrement": false,
  519. "default": null,
  520. "generated": null,
  521. "name": "time_created",
  522. "entityType": "columns",
  523. "table": "todo"
  524. },
  525. {
  526. "type": "integer",
  527. "notNull": true,
  528. "autoincrement": false,
  529. "default": null,
  530. "generated": null,
  531. "name": "time_updated",
  532. "entityType": "columns",
  533. "table": "todo"
  534. },
  535. {
  536. "type": "text",
  537. "notNull": false,
  538. "autoincrement": false,
  539. "default": null,
  540. "generated": null,
  541. "name": "session_id",
  542. "entityType": "columns",
  543. "table": "session_share"
  544. },
  545. {
  546. "type": "text",
  547. "notNull": true,
  548. "autoincrement": false,
  549. "default": null,
  550. "generated": null,
  551. "name": "id",
  552. "entityType": "columns",
  553. "table": "session_share"
  554. },
  555. {
  556. "type": "text",
  557. "notNull": true,
  558. "autoincrement": false,
  559. "default": null,
  560. "generated": null,
  561. "name": "secret",
  562. "entityType": "columns",
  563. "table": "session_share"
  564. },
  565. {
  566. "type": "text",
  567. "notNull": true,
  568. "autoincrement": false,
  569. "default": null,
  570. "generated": null,
  571. "name": "url",
  572. "entityType": "columns",
  573. "table": "session_share"
  574. },
  575. {
  576. "type": "integer",
  577. "notNull": true,
  578. "autoincrement": false,
  579. "default": null,
  580. "generated": null,
  581. "name": "time_created",
  582. "entityType": "columns",
  583. "table": "session_share"
  584. },
  585. {
  586. "type": "integer",
  587. "notNull": true,
  588. "autoincrement": false,
  589. "default": null,
  590. "generated": null,
  591. "name": "time_updated",
  592. "entityType": "columns",
  593. "table": "session_share"
  594. },
  595. {
  596. "columns": ["session_id"],
  597. "tableTo": "session",
  598. "columnsTo": ["id"],
  599. "onUpdate": "NO ACTION",
  600. "onDelete": "CASCADE",
  601. "nameExplicit": false,
  602. "name": "fk_message_session_id_session_id_fk",
  603. "entityType": "fks",
  604. "table": "message"
  605. },
  606. {
  607. "columns": ["message_id"],
  608. "tableTo": "message",
  609. "columnsTo": ["id"],
  610. "onUpdate": "NO ACTION",
  611. "onDelete": "CASCADE",
  612. "nameExplicit": false,
  613. "name": "fk_part_message_id_message_id_fk",
  614. "entityType": "fks",
  615. "table": "part"
  616. },
  617. {
  618. "columns": ["project_id"],
  619. "tableTo": "project",
  620. "columnsTo": ["id"],
  621. "onUpdate": "NO ACTION",
  622. "onDelete": "CASCADE",
  623. "nameExplicit": false,
  624. "name": "fk_permission_project_id_project_id_fk",
  625. "entityType": "fks",
  626. "table": "permission"
  627. },
  628. {
  629. "columns": ["project_id"],
  630. "tableTo": "project",
  631. "columnsTo": ["id"],
  632. "onUpdate": "NO ACTION",
  633. "onDelete": "CASCADE",
  634. "nameExplicit": false,
  635. "name": "fk_session_project_id_project_id_fk",
  636. "entityType": "fks",
  637. "table": "session"
  638. },
  639. {
  640. "columns": ["session_id"],
  641. "tableTo": "session",
  642. "columnsTo": ["id"],
  643. "onUpdate": "NO ACTION",
  644. "onDelete": "CASCADE",
  645. "nameExplicit": false,
  646. "name": "fk_todo_session_id_session_id_fk",
  647. "entityType": "fks",
  648. "table": "todo"
  649. },
  650. {
  651. "columns": ["session_id"],
  652. "tableTo": "session",
  653. "columnsTo": ["id"],
  654. "onUpdate": "NO ACTION",
  655. "onDelete": "CASCADE",
  656. "nameExplicit": false,
  657. "name": "fk_session_share_session_id_session_id_fk",
  658. "entityType": "fks",
  659. "table": "session_share"
  660. },
  661. {
  662. "columns": ["session_id", "position"],
  663. "nameExplicit": false,
  664. "name": "todo_pk",
  665. "entityType": "pks",
  666. "table": "todo"
  667. },
  668. {
  669. "columns": ["id"],
  670. "nameExplicit": false,
  671. "name": "project_pk",
  672. "table": "project",
  673. "entityType": "pks"
  674. },
  675. {
  676. "columns": ["id"],
  677. "nameExplicit": false,
  678. "name": "message_pk",
  679. "table": "message",
  680. "entityType": "pks"
  681. },
  682. {
  683. "columns": ["id"],
  684. "nameExplicit": false,
  685. "name": "part_pk",
  686. "table": "part",
  687. "entityType": "pks"
  688. },
  689. {
  690. "columns": ["project_id"],
  691. "nameExplicit": false,
  692. "name": "permission_pk",
  693. "table": "permission",
  694. "entityType": "pks"
  695. },
  696. {
  697. "columns": ["id"],
  698. "nameExplicit": false,
  699. "name": "session_pk",
  700. "table": "session",
  701. "entityType": "pks"
  702. },
  703. {
  704. "columns": ["session_id"],
  705. "nameExplicit": false,
  706. "name": "session_share_pk",
  707. "table": "session_share",
  708. "entityType": "pks"
  709. },
  710. {
  711. "columns": [
  712. {
  713. "value": "session_id",
  714. "isExpression": false
  715. }
  716. ],
  717. "isUnique": false,
  718. "where": null,
  719. "origin": "manual",
  720. "name": "message_session_idx",
  721. "entityType": "indexes",
  722. "table": "message"
  723. },
  724. {
  725. "columns": [
  726. {
  727. "value": "message_id",
  728. "isExpression": false
  729. }
  730. ],
  731. "isUnique": false,
  732. "where": null,
  733. "origin": "manual",
  734. "name": "part_message_idx",
  735. "entityType": "indexes",
  736. "table": "part"
  737. },
  738. {
  739. "columns": [
  740. {
  741. "value": "session_id",
  742. "isExpression": false
  743. }
  744. ],
  745. "isUnique": false,
  746. "where": null,
  747. "origin": "manual",
  748. "name": "part_session_idx",
  749. "entityType": "indexes",
  750. "table": "part"
  751. },
  752. {
  753. "columns": [
  754. {
  755. "value": "project_id",
  756. "isExpression": false
  757. }
  758. ],
  759. "isUnique": false,
  760. "where": null,
  761. "origin": "manual",
  762. "name": "session_project_idx",
  763. "entityType": "indexes",
  764. "table": "session"
  765. },
  766. {
  767. "columns": [
  768. {
  769. "value": "parent_id",
  770. "isExpression": false
  771. }
  772. ],
  773. "isUnique": false,
  774. "where": null,
  775. "origin": "manual",
  776. "name": "session_parent_idx",
  777. "entityType": "indexes",
  778. "table": "session"
  779. },
  780. {
  781. "columns": [
  782. {
  783. "value": "session_id",
  784. "isExpression": false
  785. }
  786. ],
  787. "isUnique": false,
  788. "where": null,
  789. "origin": "manual",
  790. "name": "todo_session_idx",
  791. "entityType": "indexes",
  792. "table": "todo"
  793. }
  794. ],
  795. "renames": []
  796. }