snapshot.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "8bc2d11d-97fa-4ba8-8bfa-6c5956c49aeb",
  5. "prevIds": ["068758ed-a97a-46f6-8a59-6c639ae7c20c"],
  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": "commands",
  142. "entityType": "columns",
  143. "table": "project"
  144. },
  145. {
  146. "type": "text",
  147. "notNull": false,
  148. "autoincrement": false,
  149. "default": null,
  150. "generated": null,
  151. "name": "id",
  152. "entityType": "columns",
  153. "table": "message"
  154. },
  155. {
  156. "type": "text",
  157. "notNull": true,
  158. "autoincrement": false,
  159. "default": null,
  160. "generated": null,
  161. "name": "session_id",
  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_created",
  172. "entityType": "columns",
  173. "table": "message"
  174. },
  175. {
  176. "type": "integer",
  177. "notNull": true,
  178. "autoincrement": false,
  179. "default": null,
  180. "generated": null,
  181. "name": "time_updated",
  182. "entityType": "columns",
  183. "table": "message"
  184. },
  185. {
  186. "type": "text",
  187. "notNull": true,
  188. "autoincrement": false,
  189. "default": null,
  190. "generated": null,
  191. "name": "data",
  192. "entityType": "columns",
  193. "table": "message"
  194. },
  195. {
  196. "type": "text",
  197. "notNull": false,
  198. "autoincrement": false,
  199. "default": null,
  200. "generated": null,
  201. "name": "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": "message_id",
  212. "entityType": "columns",
  213. "table": "part"
  214. },
  215. {
  216. "type": "text",
  217. "notNull": true,
  218. "autoincrement": false,
  219. "default": null,
  220. "generated": null,
  221. "name": "session_id",
  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_created",
  232. "entityType": "columns",
  233. "table": "part"
  234. },
  235. {
  236. "type": "integer",
  237. "notNull": true,
  238. "autoincrement": false,
  239. "default": null,
  240. "generated": null,
  241. "name": "time_updated",
  242. "entityType": "columns",
  243. "table": "part"
  244. },
  245. {
  246. "type": "text",
  247. "notNull": true,
  248. "autoincrement": false,
  249. "default": null,
  250. "generated": null,
  251. "name": "data",
  252. "entityType": "columns",
  253. "table": "part"
  254. },
  255. {
  256. "type": "text",
  257. "notNull": false,
  258. "autoincrement": false,
  259. "default": null,
  260. "generated": null,
  261. "name": "project_id",
  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_created",
  272. "entityType": "columns",
  273. "table": "permission"
  274. },
  275. {
  276. "type": "integer",
  277. "notNull": true,
  278. "autoincrement": false,
  279. "default": null,
  280. "generated": null,
  281. "name": "time_updated",
  282. "entityType": "columns",
  283. "table": "permission"
  284. },
  285. {
  286. "type": "text",
  287. "notNull": true,
  288. "autoincrement": false,
  289. "default": null,
  290. "generated": null,
  291. "name": "data",
  292. "entityType": "columns",
  293. "table": "permission"
  294. },
  295. {
  296. "type": "text",
  297. "notNull": false,
  298. "autoincrement": false,
  299. "default": null,
  300. "generated": null,
  301. "name": "id",
  302. "entityType": "columns",
  303. "table": "session"
  304. },
  305. {
  306. "type": "text",
  307. "notNull": true,
  308. "autoincrement": false,
  309. "default": null,
  310. "generated": null,
  311. "name": "project_id",
  312. "entityType": "columns",
  313. "table": "session"
  314. },
  315. {
  316. "type": "text",
  317. "notNull": false,
  318. "autoincrement": false,
  319. "default": null,
  320. "generated": null,
  321. "name": "parent_id",
  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": "slug",
  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": "directory",
  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": "title",
  352. "entityType": "columns",
  353. "table": "session"
  354. },
  355. {
  356. "type": "text",
  357. "notNull": true,
  358. "autoincrement": false,
  359. "default": null,
  360. "generated": null,
  361. "name": "version",
  362. "entityType": "columns",
  363. "table": "session"
  364. },
  365. {
  366. "type": "text",
  367. "notNull": false,
  368. "autoincrement": false,
  369. "default": null,
  370. "generated": null,
  371. "name": "share_url",
  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_additions",
  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_deletions",
  392. "entityType": "columns",
  393. "table": "session"
  394. },
  395. {
  396. "type": "integer",
  397. "notNull": false,
  398. "autoincrement": false,
  399. "default": null,
  400. "generated": null,
  401. "name": "summary_files",
  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": "summary_diffs",
  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": "revert",
  422. "entityType": "columns",
  423. "table": "session"
  424. },
  425. {
  426. "type": "text",
  427. "notNull": false,
  428. "autoincrement": false,
  429. "default": null,
  430. "generated": null,
  431. "name": "permission",
  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_created",
  442. "entityType": "columns",
  443. "table": "session"
  444. },
  445. {
  446. "type": "integer",
  447. "notNull": true,
  448. "autoincrement": false,
  449. "default": null,
  450. "generated": null,
  451. "name": "time_updated",
  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_compacting",
  462. "entityType": "columns",
  463. "table": "session"
  464. },
  465. {
  466. "type": "integer",
  467. "notNull": false,
  468. "autoincrement": false,
  469. "default": null,
  470. "generated": null,
  471. "name": "time_archived",
  472. "entityType": "columns",
  473. "table": "session"
  474. },
  475. {
  476. "type": "text",
  477. "notNull": true,
  478. "autoincrement": false,
  479. "default": null,
  480. "generated": null,
  481. "name": "session_id",
  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": "content",
  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": "status",
  502. "entityType": "columns",
  503. "table": "todo"
  504. },
  505. {
  506. "type": "text",
  507. "notNull": true,
  508. "autoincrement": false,
  509. "default": null,
  510. "generated": null,
  511. "name": "priority",
  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": "position",
  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_created",
  532. "entityType": "columns",
  533. "table": "todo"
  534. },
  535. {
  536. "type": "integer",
  537. "notNull": true,
  538. "autoincrement": false,
  539. "default": null,
  540. "generated": null,
  541. "name": "time_updated",
  542. "entityType": "columns",
  543. "table": "todo"
  544. },
  545. {
  546. "type": "text",
  547. "notNull": false,
  548. "autoincrement": false,
  549. "default": null,
  550. "generated": null,
  551. "name": "session_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": "id",
  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": "secret",
  572. "entityType": "columns",
  573. "table": "session_share"
  574. },
  575. {
  576. "type": "text",
  577. "notNull": true,
  578. "autoincrement": false,
  579. "default": null,
  580. "generated": null,
  581. "name": "url",
  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_created",
  592. "entityType": "columns",
  593. "table": "session_share"
  594. },
  595. {
  596. "type": "integer",
  597. "notNull": true,
  598. "autoincrement": false,
  599. "default": null,
  600. "generated": null,
  601. "name": "time_updated",
  602. "entityType": "columns",
  603. "table": "session_share"
  604. },
  605. {
  606. "columns": ["session_id"],
  607. "tableTo": "session",
  608. "columnsTo": ["id"],
  609. "onUpdate": "NO ACTION",
  610. "onDelete": "CASCADE",
  611. "nameExplicit": false,
  612. "name": "fk_message_session_id_session_id_fk",
  613. "entityType": "fks",
  614. "table": "message"
  615. },
  616. {
  617. "columns": ["message_id"],
  618. "tableTo": "message",
  619. "columnsTo": ["id"],
  620. "onUpdate": "NO ACTION",
  621. "onDelete": "CASCADE",
  622. "nameExplicit": false,
  623. "name": "fk_part_message_id_message_id_fk",
  624. "entityType": "fks",
  625. "table": "part"
  626. },
  627. {
  628. "columns": ["project_id"],
  629. "tableTo": "project",
  630. "columnsTo": ["id"],
  631. "onUpdate": "NO ACTION",
  632. "onDelete": "CASCADE",
  633. "nameExplicit": false,
  634. "name": "fk_permission_project_id_project_id_fk",
  635. "entityType": "fks",
  636. "table": "permission"
  637. },
  638. {
  639. "columns": ["project_id"],
  640. "tableTo": "project",
  641. "columnsTo": ["id"],
  642. "onUpdate": "NO ACTION",
  643. "onDelete": "CASCADE",
  644. "nameExplicit": false,
  645. "name": "fk_session_project_id_project_id_fk",
  646. "entityType": "fks",
  647. "table": "session"
  648. },
  649. {
  650. "columns": ["session_id"],
  651. "tableTo": "session",
  652. "columnsTo": ["id"],
  653. "onUpdate": "NO ACTION",
  654. "onDelete": "CASCADE",
  655. "nameExplicit": false,
  656. "name": "fk_todo_session_id_session_id_fk",
  657. "entityType": "fks",
  658. "table": "todo"
  659. },
  660. {
  661. "columns": ["session_id"],
  662. "tableTo": "session",
  663. "columnsTo": ["id"],
  664. "onUpdate": "NO ACTION",
  665. "onDelete": "CASCADE",
  666. "nameExplicit": false,
  667. "name": "fk_session_share_session_id_session_id_fk",
  668. "entityType": "fks",
  669. "table": "session_share"
  670. },
  671. {
  672. "columns": ["session_id", "position"],
  673. "nameExplicit": false,
  674. "name": "todo_pk",
  675. "entityType": "pks",
  676. "table": "todo"
  677. },
  678. {
  679. "columns": ["id"],
  680. "nameExplicit": false,
  681. "name": "project_pk",
  682. "table": "project",
  683. "entityType": "pks"
  684. },
  685. {
  686. "columns": ["id"],
  687. "nameExplicit": false,
  688. "name": "message_pk",
  689. "table": "message",
  690. "entityType": "pks"
  691. },
  692. {
  693. "columns": ["id"],
  694. "nameExplicit": false,
  695. "name": "part_pk",
  696. "table": "part",
  697. "entityType": "pks"
  698. },
  699. {
  700. "columns": ["project_id"],
  701. "nameExplicit": false,
  702. "name": "permission_pk",
  703. "table": "permission",
  704. "entityType": "pks"
  705. },
  706. {
  707. "columns": ["id"],
  708. "nameExplicit": false,
  709. "name": "session_pk",
  710. "table": "session",
  711. "entityType": "pks"
  712. },
  713. {
  714. "columns": ["session_id"],
  715. "nameExplicit": false,
  716. "name": "session_share_pk",
  717. "table": "session_share",
  718. "entityType": "pks"
  719. },
  720. {
  721. "columns": [
  722. {
  723. "value": "session_id",
  724. "isExpression": false
  725. }
  726. ],
  727. "isUnique": false,
  728. "where": null,
  729. "origin": "manual",
  730. "name": "message_session_idx",
  731. "entityType": "indexes",
  732. "table": "message"
  733. },
  734. {
  735. "columns": [
  736. {
  737. "value": "message_id",
  738. "isExpression": false
  739. }
  740. ],
  741. "isUnique": false,
  742. "where": null,
  743. "origin": "manual",
  744. "name": "part_message_idx",
  745. "entityType": "indexes",
  746. "table": "part"
  747. },
  748. {
  749. "columns": [
  750. {
  751. "value": "session_id",
  752. "isExpression": false
  753. }
  754. ],
  755. "isUnique": false,
  756. "where": null,
  757. "origin": "manual",
  758. "name": "part_session_idx",
  759. "entityType": "indexes",
  760. "table": "part"
  761. },
  762. {
  763. "columns": [
  764. {
  765. "value": "project_id",
  766. "isExpression": false
  767. }
  768. ],
  769. "isUnique": false,
  770. "where": null,
  771. "origin": "manual",
  772. "name": "session_project_idx",
  773. "entityType": "indexes",
  774. "table": "session"
  775. },
  776. {
  777. "columns": [
  778. {
  779. "value": "parent_id",
  780. "isExpression": false
  781. }
  782. ],
  783. "isUnique": false,
  784. "where": null,
  785. "origin": "manual",
  786. "name": "session_parent_idx",
  787. "entityType": "indexes",
  788. "table": "session"
  789. },
  790. {
  791. "columns": [
  792. {
  793. "value": "session_id",
  794. "isExpression": false
  795. }
  796. ],
  797. "isUnique": false,
  798. "where": null,
  799. "origin": "manual",
  800. "name": "todo_session_idx",
  801. "entityType": "indexes",
  802. "table": "todo"
  803. }
  804. ],
  805. "renames": []
  806. }