snapshot.json 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "be5eae31-b7f8-4292-8827-c36a524abd1b",
  5. "prevIds": ["630a93f2-c6c6-4191-a351-868d8f3a05d4"],
  6. "ddl": [
  7. {
  8. "name": "account_state",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "account",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "control_account",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "workspace",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "project",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "message",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "part",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "permission",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "session_message",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "session",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "todo",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "session_share",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "event_sequence",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "event",
  61. "entityType": "tables"
  62. },
  63. {
  64. "type": "integer",
  65. "notNull": false,
  66. "autoincrement": false,
  67. "default": null,
  68. "generated": null,
  69. "name": "id",
  70. "entityType": "columns",
  71. "table": "account_state"
  72. },
  73. {
  74. "type": "text",
  75. "notNull": false,
  76. "autoincrement": false,
  77. "default": null,
  78. "generated": null,
  79. "name": "active_account_id",
  80. "entityType": "columns",
  81. "table": "account_state"
  82. },
  83. {
  84. "type": "text",
  85. "notNull": false,
  86. "autoincrement": false,
  87. "default": null,
  88. "generated": null,
  89. "name": "active_org_id",
  90. "entityType": "columns",
  91. "table": "account_state"
  92. },
  93. {
  94. "type": "text",
  95. "notNull": false,
  96. "autoincrement": false,
  97. "default": null,
  98. "generated": null,
  99. "name": "id",
  100. "entityType": "columns",
  101. "table": "account"
  102. },
  103. {
  104. "type": "text",
  105. "notNull": true,
  106. "autoincrement": false,
  107. "default": null,
  108. "generated": null,
  109. "name": "email",
  110. "entityType": "columns",
  111. "table": "account"
  112. },
  113. {
  114. "type": "text",
  115. "notNull": true,
  116. "autoincrement": false,
  117. "default": null,
  118. "generated": null,
  119. "name": "url",
  120. "entityType": "columns",
  121. "table": "account"
  122. },
  123. {
  124. "type": "text",
  125. "notNull": true,
  126. "autoincrement": false,
  127. "default": null,
  128. "generated": null,
  129. "name": "access_token",
  130. "entityType": "columns",
  131. "table": "account"
  132. },
  133. {
  134. "type": "text",
  135. "notNull": true,
  136. "autoincrement": false,
  137. "default": null,
  138. "generated": null,
  139. "name": "refresh_token",
  140. "entityType": "columns",
  141. "table": "account"
  142. },
  143. {
  144. "type": "integer",
  145. "notNull": false,
  146. "autoincrement": false,
  147. "default": null,
  148. "generated": null,
  149. "name": "token_expiry",
  150. "entityType": "columns",
  151. "table": "account"
  152. },
  153. {
  154. "type": "integer",
  155. "notNull": true,
  156. "autoincrement": false,
  157. "default": null,
  158. "generated": null,
  159. "name": "time_created",
  160. "entityType": "columns",
  161. "table": "account"
  162. },
  163. {
  164. "type": "integer",
  165. "notNull": true,
  166. "autoincrement": false,
  167. "default": null,
  168. "generated": null,
  169. "name": "time_updated",
  170. "entityType": "columns",
  171. "table": "account"
  172. },
  173. {
  174. "type": "text",
  175. "notNull": true,
  176. "autoincrement": false,
  177. "default": null,
  178. "generated": null,
  179. "name": "email",
  180. "entityType": "columns",
  181. "table": "control_account"
  182. },
  183. {
  184. "type": "text",
  185. "notNull": true,
  186. "autoincrement": false,
  187. "default": null,
  188. "generated": null,
  189. "name": "url",
  190. "entityType": "columns",
  191. "table": "control_account"
  192. },
  193. {
  194. "type": "text",
  195. "notNull": true,
  196. "autoincrement": false,
  197. "default": null,
  198. "generated": null,
  199. "name": "access_token",
  200. "entityType": "columns",
  201. "table": "control_account"
  202. },
  203. {
  204. "type": "text",
  205. "notNull": true,
  206. "autoincrement": false,
  207. "default": null,
  208. "generated": null,
  209. "name": "refresh_token",
  210. "entityType": "columns",
  211. "table": "control_account"
  212. },
  213. {
  214. "type": "integer",
  215. "notNull": false,
  216. "autoincrement": false,
  217. "default": null,
  218. "generated": null,
  219. "name": "token_expiry",
  220. "entityType": "columns",
  221. "table": "control_account"
  222. },
  223. {
  224. "type": "integer",
  225. "notNull": true,
  226. "autoincrement": false,
  227. "default": null,
  228. "generated": null,
  229. "name": "active",
  230. "entityType": "columns",
  231. "table": "control_account"
  232. },
  233. {
  234. "type": "integer",
  235. "notNull": true,
  236. "autoincrement": false,
  237. "default": null,
  238. "generated": null,
  239. "name": "time_created",
  240. "entityType": "columns",
  241. "table": "control_account"
  242. },
  243. {
  244. "type": "integer",
  245. "notNull": true,
  246. "autoincrement": false,
  247. "default": null,
  248. "generated": null,
  249. "name": "time_updated",
  250. "entityType": "columns",
  251. "table": "control_account"
  252. },
  253. {
  254. "type": "text",
  255. "notNull": false,
  256. "autoincrement": false,
  257. "default": null,
  258. "generated": null,
  259. "name": "id",
  260. "entityType": "columns",
  261. "table": "workspace"
  262. },
  263. {
  264. "type": "text",
  265. "notNull": true,
  266. "autoincrement": false,
  267. "default": null,
  268. "generated": null,
  269. "name": "type",
  270. "entityType": "columns",
  271. "table": "workspace"
  272. },
  273. {
  274. "type": "text",
  275. "notNull": true,
  276. "autoincrement": false,
  277. "default": "''",
  278. "generated": null,
  279. "name": "name",
  280. "entityType": "columns",
  281. "table": "workspace"
  282. },
  283. {
  284. "type": "text",
  285. "notNull": false,
  286. "autoincrement": false,
  287. "default": null,
  288. "generated": null,
  289. "name": "branch",
  290. "entityType": "columns",
  291. "table": "workspace"
  292. },
  293. {
  294. "type": "text",
  295. "notNull": false,
  296. "autoincrement": false,
  297. "default": null,
  298. "generated": null,
  299. "name": "directory",
  300. "entityType": "columns",
  301. "table": "workspace"
  302. },
  303. {
  304. "type": "text",
  305. "notNull": false,
  306. "autoincrement": false,
  307. "default": null,
  308. "generated": null,
  309. "name": "extra",
  310. "entityType": "columns",
  311. "table": "workspace"
  312. },
  313. {
  314. "type": "text",
  315. "notNull": true,
  316. "autoincrement": false,
  317. "default": null,
  318. "generated": null,
  319. "name": "project_id",
  320. "entityType": "columns",
  321. "table": "workspace"
  322. },
  323. {
  324. "type": "integer",
  325. "notNull": true,
  326. "autoincrement": false,
  327. "default": null,
  328. "generated": null,
  329. "name": "time_used",
  330. "entityType": "columns",
  331. "table": "workspace"
  332. },
  333. {
  334. "type": "text",
  335. "notNull": false,
  336. "autoincrement": false,
  337. "default": null,
  338. "generated": null,
  339. "name": "id",
  340. "entityType": "columns",
  341. "table": "project"
  342. },
  343. {
  344. "type": "text",
  345. "notNull": true,
  346. "autoincrement": false,
  347. "default": null,
  348. "generated": null,
  349. "name": "worktree",
  350. "entityType": "columns",
  351. "table": "project"
  352. },
  353. {
  354. "type": "text",
  355. "notNull": false,
  356. "autoincrement": false,
  357. "default": null,
  358. "generated": null,
  359. "name": "vcs",
  360. "entityType": "columns",
  361. "table": "project"
  362. },
  363. {
  364. "type": "text",
  365. "notNull": false,
  366. "autoincrement": false,
  367. "default": null,
  368. "generated": null,
  369. "name": "name",
  370. "entityType": "columns",
  371. "table": "project"
  372. },
  373. {
  374. "type": "text",
  375. "notNull": false,
  376. "autoincrement": false,
  377. "default": null,
  378. "generated": null,
  379. "name": "icon_url",
  380. "entityType": "columns",
  381. "table": "project"
  382. },
  383. {
  384. "type": "text",
  385. "notNull": false,
  386. "autoincrement": false,
  387. "default": null,
  388. "generated": null,
  389. "name": "icon_url_override",
  390. "entityType": "columns",
  391. "table": "project"
  392. },
  393. {
  394. "type": "text",
  395. "notNull": false,
  396. "autoincrement": false,
  397. "default": null,
  398. "generated": null,
  399. "name": "icon_color",
  400. "entityType": "columns",
  401. "table": "project"
  402. },
  403. {
  404. "type": "integer",
  405. "notNull": true,
  406. "autoincrement": false,
  407. "default": null,
  408. "generated": null,
  409. "name": "time_created",
  410. "entityType": "columns",
  411. "table": "project"
  412. },
  413. {
  414. "type": "integer",
  415. "notNull": true,
  416. "autoincrement": false,
  417. "default": null,
  418. "generated": null,
  419. "name": "time_updated",
  420. "entityType": "columns",
  421. "table": "project"
  422. },
  423. {
  424. "type": "integer",
  425. "notNull": false,
  426. "autoincrement": false,
  427. "default": null,
  428. "generated": null,
  429. "name": "time_initialized",
  430. "entityType": "columns",
  431. "table": "project"
  432. },
  433. {
  434. "type": "text",
  435. "notNull": true,
  436. "autoincrement": false,
  437. "default": null,
  438. "generated": null,
  439. "name": "sandboxes",
  440. "entityType": "columns",
  441. "table": "project"
  442. },
  443. {
  444. "type": "text",
  445. "notNull": false,
  446. "autoincrement": false,
  447. "default": null,
  448. "generated": null,
  449. "name": "commands",
  450. "entityType": "columns",
  451. "table": "project"
  452. },
  453. {
  454. "type": "text",
  455. "notNull": false,
  456. "autoincrement": false,
  457. "default": null,
  458. "generated": null,
  459. "name": "id",
  460. "entityType": "columns",
  461. "table": "message"
  462. },
  463. {
  464. "type": "text",
  465. "notNull": true,
  466. "autoincrement": false,
  467. "default": null,
  468. "generated": null,
  469. "name": "session_id",
  470. "entityType": "columns",
  471. "table": "message"
  472. },
  473. {
  474. "type": "integer",
  475. "notNull": true,
  476. "autoincrement": false,
  477. "default": null,
  478. "generated": null,
  479. "name": "time_created",
  480. "entityType": "columns",
  481. "table": "message"
  482. },
  483. {
  484. "type": "integer",
  485. "notNull": true,
  486. "autoincrement": false,
  487. "default": null,
  488. "generated": null,
  489. "name": "time_updated",
  490. "entityType": "columns",
  491. "table": "message"
  492. },
  493. {
  494. "type": "text",
  495. "notNull": true,
  496. "autoincrement": false,
  497. "default": null,
  498. "generated": null,
  499. "name": "data",
  500. "entityType": "columns",
  501. "table": "message"
  502. },
  503. {
  504. "type": "text",
  505. "notNull": false,
  506. "autoincrement": false,
  507. "default": null,
  508. "generated": null,
  509. "name": "id",
  510. "entityType": "columns",
  511. "table": "part"
  512. },
  513. {
  514. "type": "text",
  515. "notNull": true,
  516. "autoincrement": false,
  517. "default": null,
  518. "generated": null,
  519. "name": "message_id",
  520. "entityType": "columns",
  521. "table": "part"
  522. },
  523. {
  524. "type": "text",
  525. "notNull": true,
  526. "autoincrement": false,
  527. "default": null,
  528. "generated": null,
  529. "name": "session_id",
  530. "entityType": "columns",
  531. "table": "part"
  532. },
  533. {
  534. "type": "integer",
  535. "notNull": true,
  536. "autoincrement": false,
  537. "default": null,
  538. "generated": null,
  539. "name": "time_created",
  540. "entityType": "columns",
  541. "table": "part"
  542. },
  543. {
  544. "type": "integer",
  545. "notNull": true,
  546. "autoincrement": false,
  547. "default": null,
  548. "generated": null,
  549. "name": "time_updated",
  550. "entityType": "columns",
  551. "table": "part"
  552. },
  553. {
  554. "type": "text",
  555. "notNull": true,
  556. "autoincrement": false,
  557. "default": null,
  558. "generated": null,
  559. "name": "data",
  560. "entityType": "columns",
  561. "table": "part"
  562. },
  563. {
  564. "type": "text",
  565. "notNull": false,
  566. "autoincrement": false,
  567. "default": null,
  568. "generated": null,
  569. "name": "project_id",
  570. "entityType": "columns",
  571. "table": "permission"
  572. },
  573. {
  574. "type": "integer",
  575. "notNull": true,
  576. "autoincrement": false,
  577. "default": null,
  578. "generated": null,
  579. "name": "time_created",
  580. "entityType": "columns",
  581. "table": "permission"
  582. },
  583. {
  584. "type": "integer",
  585. "notNull": true,
  586. "autoincrement": false,
  587. "default": null,
  588. "generated": null,
  589. "name": "time_updated",
  590. "entityType": "columns",
  591. "table": "permission"
  592. },
  593. {
  594. "type": "text",
  595. "notNull": true,
  596. "autoincrement": false,
  597. "default": null,
  598. "generated": null,
  599. "name": "data",
  600. "entityType": "columns",
  601. "table": "permission"
  602. },
  603. {
  604. "type": "text",
  605. "notNull": false,
  606. "autoincrement": false,
  607. "default": null,
  608. "generated": null,
  609. "name": "id",
  610. "entityType": "columns",
  611. "table": "session_message"
  612. },
  613. {
  614. "type": "text",
  615. "notNull": true,
  616. "autoincrement": false,
  617. "default": null,
  618. "generated": null,
  619. "name": "session_id",
  620. "entityType": "columns",
  621. "table": "session_message"
  622. },
  623. {
  624. "type": "text",
  625. "notNull": true,
  626. "autoincrement": false,
  627. "default": null,
  628. "generated": null,
  629. "name": "type",
  630. "entityType": "columns",
  631. "table": "session_message"
  632. },
  633. {
  634. "type": "integer",
  635. "notNull": true,
  636. "autoincrement": false,
  637. "default": null,
  638. "generated": null,
  639. "name": "time_created",
  640. "entityType": "columns",
  641. "table": "session_message"
  642. },
  643. {
  644. "type": "integer",
  645. "notNull": true,
  646. "autoincrement": false,
  647. "default": null,
  648. "generated": null,
  649. "name": "time_updated",
  650. "entityType": "columns",
  651. "table": "session_message"
  652. },
  653. {
  654. "type": "text",
  655. "notNull": true,
  656. "autoincrement": false,
  657. "default": null,
  658. "generated": null,
  659. "name": "data",
  660. "entityType": "columns",
  661. "table": "session_message"
  662. },
  663. {
  664. "type": "text",
  665. "notNull": false,
  666. "autoincrement": false,
  667. "default": null,
  668. "generated": null,
  669. "name": "id",
  670. "entityType": "columns",
  671. "table": "session"
  672. },
  673. {
  674. "type": "text",
  675. "notNull": true,
  676. "autoincrement": false,
  677. "default": null,
  678. "generated": null,
  679. "name": "project_id",
  680. "entityType": "columns",
  681. "table": "session"
  682. },
  683. {
  684. "type": "text",
  685. "notNull": false,
  686. "autoincrement": false,
  687. "default": null,
  688. "generated": null,
  689. "name": "workspace_id",
  690. "entityType": "columns",
  691. "table": "session"
  692. },
  693. {
  694. "type": "text",
  695. "notNull": false,
  696. "autoincrement": false,
  697. "default": null,
  698. "generated": null,
  699. "name": "parent_id",
  700. "entityType": "columns",
  701. "table": "session"
  702. },
  703. {
  704. "type": "text",
  705. "notNull": true,
  706. "autoincrement": false,
  707. "default": null,
  708. "generated": null,
  709. "name": "slug",
  710. "entityType": "columns",
  711. "table": "session"
  712. },
  713. {
  714. "type": "text",
  715. "notNull": true,
  716. "autoincrement": false,
  717. "default": null,
  718. "generated": null,
  719. "name": "directory",
  720. "entityType": "columns",
  721. "table": "session"
  722. },
  723. {
  724. "type": "text",
  725. "notNull": false,
  726. "autoincrement": false,
  727. "default": null,
  728. "generated": null,
  729. "name": "path",
  730. "entityType": "columns",
  731. "table": "session"
  732. },
  733. {
  734. "type": "text",
  735. "notNull": true,
  736. "autoincrement": false,
  737. "default": null,
  738. "generated": null,
  739. "name": "title",
  740. "entityType": "columns",
  741. "table": "session"
  742. },
  743. {
  744. "type": "text",
  745. "notNull": true,
  746. "autoincrement": false,
  747. "default": null,
  748. "generated": null,
  749. "name": "version",
  750. "entityType": "columns",
  751. "table": "session"
  752. },
  753. {
  754. "type": "text",
  755. "notNull": false,
  756. "autoincrement": false,
  757. "default": null,
  758. "generated": null,
  759. "name": "share_url",
  760. "entityType": "columns",
  761. "table": "session"
  762. },
  763. {
  764. "type": "integer",
  765. "notNull": false,
  766. "autoincrement": false,
  767. "default": null,
  768. "generated": null,
  769. "name": "summary_additions",
  770. "entityType": "columns",
  771. "table": "session"
  772. },
  773. {
  774. "type": "integer",
  775. "notNull": false,
  776. "autoincrement": false,
  777. "default": null,
  778. "generated": null,
  779. "name": "summary_deletions",
  780. "entityType": "columns",
  781. "table": "session"
  782. },
  783. {
  784. "type": "integer",
  785. "notNull": false,
  786. "autoincrement": false,
  787. "default": null,
  788. "generated": null,
  789. "name": "summary_files",
  790. "entityType": "columns",
  791. "table": "session"
  792. },
  793. {
  794. "type": "text",
  795. "notNull": false,
  796. "autoincrement": false,
  797. "default": null,
  798. "generated": null,
  799. "name": "summary_diffs",
  800. "entityType": "columns",
  801. "table": "session"
  802. },
  803. {
  804. "type": "real",
  805. "notNull": true,
  806. "autoincrement": false,
  807. "default": "0",
  808. "generated": null,
  809. "name": "cost",
  810. "entityType": "columns",
  811. "table": "session"
  812. },
  813. {
  814. "type": "integer",
  815. "notNull": true,
  816. "autoincrement": false,
  817. "default": "0",
  818. "generated": null,
  819. "name": "tokens_input",
  820. "entityType": "columns",
  821. "table": "session"
  822. },
  823. {
  824. "type": "integer",
  825. "notNull": true,
  826. "autoincrement": false,
  827. "default": "0",
  828. "generated": null,
  829. "name": "tokens_output",
  830. "entityType": "columns",
  831. "table": "session"
  832. },
  833. {
  834. "type": "integer",
  835. "notNull": true,
  836. "autoincrement": false,
  837. "default": "0",
  838. "generated": null,
  839. "name": "tokens_reasoning",
  840. "entityType": "columns",
  841. "table": "session"
  842. },
  843. {
  844. "type": "integer",
  845. "notNull": true,
  846. "autoincrement": false,
  847. "default": "0",
  848. "generated": null,
  849. "name": "tokens_cache_read",
  850. "entityType": "columns",
  851. "table": "session"
  852. },
  853. {
  854. "type": "integer",
  855. "notNull": true,
  856. "autoincrement": false,
  857. "default": "0",
  858. "generated": null,
  859. "name": "tokens_cache_write",
  860. "entityType": "columns",
  861. "table": "session"
  862. },
  863. {
  864. "type": "text",
  865. "notNull": false,
  866. "autoincrement": false,
  867. "default": null,
  868. "generated": null,
  869. "name": "revert",
  870. "entityType": "columns",
  871. "table": "session"
  872. },
  873. {
  874. "type": "text",
  875. "notNull": false,
  876. "autoincrement": false,
  877. "default": null,
  878. "generated": null,
  879. "name": "permission",
  880. "entityType": "columns",
  881. "table": "session"
  882. },
  883. {
  884. "type": "text",
  885. "notNull": false,
  886. "autoincrement": false,
  887. "default": null,
  888. "generated": null,
  889. "name": "agent",
  890. "entityType": "columns",
  891. "table": "session"
  892. },
  893. {
  894. "type": "text",
  895. "notNull": false,
  896. "autoincrement": false,
  897. "default": null,
  898. "generated": null,
  899. "name": "model",
  900. "entityType": "columns",
  901. "table": "session"
  902. },
  903. {
  904. "type": "integer",
  905. "notNull": true,
  906. "autoincrement": false,
  907. "default": null,
  908. "generated": null,
  909. "name": "time_created",
  910. "entityType": "columns",
  911. "table": "session"
  912. },
  913. {
  914. "type": "integer",
  915. "notNull": true,
  916. "autoincrement": false,
  917. "default": null,
  918. "generated": null,
  919. "name": "time_updated",
  920. "entityType": "columns",
  921. "table": "session"
  922. },
  923. {
  924. "type": "integer",
  925. "notNull": false,
  926. "autoincrement": false,
  927. "default": null,
  928. "generated": null,
  929. "name": "time_compacting",
  930. "entityType": "columns",
  931. "table": "session"
  932. },
  933. {
  934. "type": "integer",
  935. "notNull": false,
  936. "autoincrement": false,
  937. "default": null,
  938. "generated": null,
  939. "name": "time_archived",
  940. "entityType": "columns",
  941. "table": "session"
  942. },
  943. {
  944. "type": "text",
  945. "notNull": true,
  946. "autoincrement": false,
  947. "default": null,
  948. "generated": null,
  949. "name": "session_id",
  950. "entityType": "columns",
  951. "table": "todo"
  952. },
  953. {
  954. "type": "text",
  955. "notNull": true,
  956. "autoincrement": false,
  957. "default": null,
  958. "generated": null,
  959. "name": "content",
  960. "entityType": "columns",
  961. "table": "todo"
  962. },
  963. {
  964. "type": "text",
  965. "notNull": true,
  966. "autoincrement": false,
  967. "default": null,
  968. "generated": null,
  969. "name": "status",
  970. "entityType": "columns",
  971. "table": "todo"
  972. },
  973. {
  974. "type": "text",
  975. "notNull": true,
  976. "autoincrement": false,
  977. "default": null,
  978. "generated": null,
  979. "name": "priority",
  980. "entityType": "columns",
  981. "table": "todo"
  982. },
  983. {
  984. "type": "integer",
  985. "notNull": true,
  986. "autoincrement": false,
  987. "default": null,
  988. "generated": null,
  989. "name": "position",
  990. "entityType": "columns",
  991. "table": "todo"
  992. },
  993. {
  994. "type": "integer",
  995. "notNull": true,
  996. "autoincrement": false,
  997. "default": null,
  998. "generated": null,
  999. "name": "time_created",
  1000. "entityType": "columns",
  1001. "table": "todo"
  1002. },
  1003. {
  1004. "type": "integer",
  1005. "notNull": true,
  1006. "autoincrement": false,
  1007. "default": null,
  1008. "generated": null,
  1009. "name": "time_updated",
  1010. "entityType": "columns",
  1011. "table": "todo"
  1012. },
  1013. {
  1014. "type": "text",
  1015. "notNull": false,
  1016. "autoincrement": false,
  1017. "default": null,
  1018. "generated": null,
  1019. "name": "session_id",
  1020. "entityType": "columns",
  1021. "table": "session_share"
  1022. },
  1023. {
  1024. "type": "text",
  1025. "notNull": true,
  1026. "autoincrement": false,
  1027. "default": null,
  1028. "generated": null,
  1029. "name": "id",
  1030. "entityType": "columns",
  1031. "table": "session_share"
  1032. },
  1033. {
  1034. "type": "text",
  1035. "notNull": true,
  1036. "autoincrement": false,
  1037. "default": null,
  1038. "generated": null,
  1039. "name": "secret",
  1040. "entityType": "columns",
  1041. "table": "session_share"
  1042. },
  1043. {
  1044. "type": "text",
  1045. "notNull": true,
  1046. "autoincrement": false,
  1047. "default": null,
  1048. "generated": null,
  1049. "name": "url",
  1050. "entityType": "columns",
  1051. "table": "session_share"
  1052. },
  1053. {
  1054. "type": "integer",
  1055. "notNull": true,
  1056. "autoincrement": false,
  1057. "default": null,
  1058. "generated": null,
  1059. "name": "time_created",
  1060. "entityType": "columns",
  1061. "table": "session_share"
  1062. },
  1063. {
  1064. "type": "integer",
  1065. "notNull": true,
  1066. "autoincrement": false,
  1067. "default": null,
  1068. "generated": null,
  1069. "name": "time_updated",
  1070. "entityType": "columns",
  1071. "table": "session_share"
  1072. },
  1073. {
  1074. "type": "text",
  1075. "notNull": false,
  1076. "autoincrement": false,
  1077. "default": null,
  1078. "generated": null,
  1079. "name": "aggregate_id",
  1080. "entityType": "columns",
  1081. "table": "event_sequence"
  1082. },
  1083. {
  1084. "type": "integer",
  1085. "notNull": true,
  1086. "autoincrement": false,
  1087. "default": null,
  1088. "generated": null,
  1089. "name": "seq",
  1090. "entityType": "columns",
  1091. "table": "event_sequence"
  1092. },
  1093. {
  1094. "type": "text",
  1095. "notNull": false,
  1096. "autoincrement": false,
  1097. "default": null,
  1098. "generated": null,
  1099. "name": "owner_id",
  1100. "entityType": "columns",
  1101. "table": "event_sequence"
  1102. },
  1103. {
  1104. "type": "text",
  1105. "notNull": false,
  1106. "autoincrement": false,
  1107. "default": null,
  1108. "generated": null,
  1109. "name": "id",
  1110. "entityType": "columns",
  1111. "table": "event"
  1112. },
  1113. {
  1114. "type": "text",
  1115. "notNull": true,
  1116. "autoincrement": false,
  1117. "default": null,
  1118. "generated": null,
  1119. "name": "aggregate_id",
  1120. "entityType": "columns",
  1121. "table": "event"
  1122. },
  1123. {
  1124. "type": "integer",
  1125. "notNull": true,
  1126. "autoincrement": false,
  1127. "default": null,
  1128. "generated": null,
  1129. "name": "seq",
  1130. "entityType": "columns",
  1131. "table": "event"
  1132. },
  1133. {
  1134. "type": "text",
  1135. "notNull": true,
  1136. "autoincrement": false,
  1137. "default": null,
  1138. "generated": null,
  1139. "name": "type",
  1140. "entityType": "columns",
  1141. "table": "event"
  1142. },
  1143. {
  1144. "type": "text",
  1145. "notNull": true,
  1146. "autoincrement": false,
  1147. "default": null,
  1148. "generated": null,
  1149. "name": "data",
  1150. "entityType": "columns",
  1151. "table": "event"
  1152. },
  1153. {
  1154. "columns": ["active_account_id"],
  1155. "tableTo": "account",
  1156. "columnsTo": ["id"],
  1157. "onUpdate": "NO ACTION",
  1158. "onDelete": "SET NULL",
  1159. "nameExplicit": false,
  1160. "name": "fk_account_state_active_account_id_account_id_fk",
  1161. "entityType": "fks",
  1162. "table": "account_state"
  1163. },
  1164. {
  1165. "columns": ["project_id"],
  1166. "tableTo": "project",
  1167. "columnsTo": ["id"],
  1168. "onUpdate": "NO ACTION",
  1169. "onDelete": "CASCADE",
  1170. "nameExplicit": false,
  1171. "name": "fk_workspace_project_id_project_id_fk",
  1172. "entityType": "fks",
  1173. "table": "workspace"
  1174. },
  1175. {
  1176. "columns": ["session_id"],
  1177. "tableTo": "session",
  1178. "columnsTo": ["id"],
  1179. "onUpdate": "NO ACTION",
  1180. "onDelete": "CASCADE",
  1181. "nameExplicit": false,
  1182. "name": "fk_message_session_id_session_id_fk",
  1183. "entityType": "fks",
  1184. "table": "message"
  1185. },
  1186. {
  1187. "columns": ["message_id"],
  1188. "tableTo": "message",
  1189. "columnsTo": ["id"],
  1190. "onUpdate": "NO ACTION",
  1191. "onDelete": "CASCADE",
  1192. "nameExplicit": false,
  1193. "name": "fk_part_message_id_message_id_fk",
  1194. "entityType": "fks",
  1195. "table": "part"
  1196. },
  1197. {
  1198. "columns": ["project_id"],
  1199. "tableTo": "project",
  1200. "columnsTo": ["id"],
  1201. "onUpdate": "NO ACTION",
  1202. "onDelete": "CASCADE",
  1203. "nameExplicit": false,
  1204. "name": "fk_permission_project_id_project_id_fk",
  1205. "entityType": "fks",
  1206. "table": "permission"
  1207. },
  1208. {
  1209. "columns": ["session_id"],
  1210. "tableTo": "session",
  1211. "columnsTo": ["id"],
  1212. "onUpdate": "NO ACTION",
  1213. "onDelete": "CASCADE",
  1214. "nameExplicit": false,
  1215. "name": "fk_session_message_session_id_session_id_fk",
  1216. "entityType": "fks",
  1217. "table": "session_message"
  1218. },
  1219. {
  1220. "columns": ["project_id"],
  1221. "tableTo": "project",
  1222. "columnsTo": ["id"],
  1223. "onUpdate": "NO ACTION",
  1224. "onDelete": "CASCADE",
  1225. "nameExplicit": false,
  1226. "name": "fk_session_project_id_project_id_fk",
  1227. "entityType": "fks",
  1228. "table": "session"
  1229. },
  1230. {
  1231. "columns": ["session_id"],
  1232. "tableTo": "session",
  1233. "columnsTo": ["id"],
  1234. "onUpdate": "NO ACTION",
  1235. "onDelete": "CASCADE",
  1236. "nameExplicit": false,
  1237. "name": "fk_todo_session_id_session_id_fk",
  1238. "entityType": "fks",
  1239. "table": "todo"
  1240. },
  1241. {
  1242. "columns": ["session_id"],
  1243. "tableTo": "session",
  1244. "columnsTo": ["id"],
  1245. "onUpdate": "NO ACTION",
  1246. "onDelete": "CASCADE",
  1247. "nameExplicit": false,
  1248. "name": "fk_session_share_session_id_session_id_fk",
  1249. "entityType": "fks",
  1250. "table": "session_share"
  1251. },
  1252. {
  1253. "columns": ["aggregate_id"],
  1254. "tableTo": "event_sequence",
  1255. "columnsTo": ["aggregate_id"],
  1256. "onUpdate": "NO ACTION",
  1257. "onDelete": "CASCADE",
  1258. "nameExplicit": false,
  1259. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1260. "entityType": "fks",
  1261. "table": "event"
  1262. },
  1263. {
  1264. "columns": ["email", "url"],
  1265. "nameExplicit": false,
  1266. "name": "control_account_pk",
  1267. "entityType": "pks",
  1268. "table": "control_account"
  1269. },
  1270. {
  1271. "columns": ["session_id", "position"],
  1272. "nameExplicit": false,
  1273. "name": "todo_pk",
  1274. "entityType": "pks",
  1275. "table": "todo"
  1276. },
  1277. {
  1278. "columns": ["id"],
  1279. "nameExplicit": false,
  1280. "name": "account_state_pk",
  1281. "table": "account_state",
  1282. "entityType": "pks"
  1283. },
  1284. {
  1285. "columns": ["id"],
  1286. "nameExplicit": false,
  1287. "name": "account_pk",
  1288. "table": "account",
  1289. "entityType": "pks"
  1290. },
  1291. {
  1292. "columns": ["id"],
  1293. "nameExplicit": false,
  1294. "name": "workspace_pk",
  1295. "table": "workspace",
  1296. "entityType": "pks"
  1297. },
  1298. {
  1299. "columns": ["id"],
  1300. "nameExplicit": false,
  1301. "name": "project_pk",
  1302. "table": "project",
  1303. "entityType": "pks"
  1304. },
  1305. {
  1306. "columns": ["id"],
  1307. "nameExplicit": false,
  1308. "name": "message_pk",
  1309. "table": "message",
  1310. "entityType": "pks"
  1311. },
  1312. {
  1313. "columns": ["id"],
  1314. "nameExplicit": false,
  1315. "name": "part_pk",
  1316. "table": "part",
  1317. "entityType": "pks"
  1318. },
  1319. {
  1320. "columns": ["project_id"],
  1321. "nameExplicit": false,
  1322. "name": "permission_pk",
  1323. "table": "permission",
  1324. "entityType": "pks"
  1325. },
  1326. {
  1327. "columns": ["id"],
  1328. "nameExplicit": false,
  1329. "name": "session_message_pk",
  1330. "table": "session_message",
  1331. "entityType": "pks"
  1332. },
  1333. {
  1334. "columns": ["id"],
  1335. "nameExplicit": false,
  1336. "name": "session_pk",
  1337. "table": "session",
  1338. "entityType": "pks"
  1339. },
  1340. {
  1341. "columns": ["session_id"],
  1342. "nameExplicit": false,
  1343. "name": "session_share_pk",
  1344. "table": "session_share",
  1345. "entityType": "pks"
  1346. },
  1347. {
  1348. "columns": ["aggregate_id"],
  1349. "nameExplicit": false,
  1350. "name": "event_sequence_pk",
  1351. "table": "event_sequence",
  1352. "entityType": "pks"
  1353. },
  1354. {
  1355. "columns": ["id"],
  1356. "nameExplicit": false,
  1357. "name": "event_pk",
  1358. "table": "event",
  1359. "entityType": "pks"
  1360. },
  1361. {
  1362. "columns": [
  1363. {
  1364. "value": "session_id",
  1365. "isExpression": false
  1366. },
  1367. {
  1368. "value": "time_created",
  1369. "isExpression": false
  1370. },
  1371. {
  1372. "value": "id",
  1373. "isExpression": false
  1374. }
  1375. ],
  1376. "isUnique": false,
  1377. "where": null,
  1378. "origin": "manual",
  1379. "name": "message_session_time_created_id_idx",
  1380. "entityType": "indexes",
  1381. "table": "message"
  1382. },
  1383. {
  1384. "columns": [
  1385. {
  1386. "value": "message_id",
  1387. "isExpression": false
  1388. },
  1389. {
  1390. "value": "id",
  1391. "isExpression": false
  1392. }
  1393. ],
  1394. "isUnique": false,
  1395. "where": null,
  1396. "origin": "manual",
  1397. "name": "part_message_id_id_idx",
  1398. "entityType": "indexes",
  1399. "table": "part"
  1400. },
  1401. {
  1402. "columns": [
  1403. {
  1404. "value": "session_id",
  1405. "isExpression": false
  1406. }
  1407. ],
  1408. "isUnique": false,
  1409. "where": null,
  1410. "origin": "manual",
  1411. "name": "part_session_idx",
  1412. "entityType": "indexes",
  1413. "table": "part"
  1414. },
  1415. {
  1416. "columns": [
  1417. {
  1418. "value": "session_id",
  1419. "isExpression": false
  1420. }
  1421. ],
  1422. "isUnique": false,
  1423. "where": null,
  1424. "origin": "manual",
  1425. "name": "session_message_session_idx",
  1426. "entityType": "indexes",
  1427. "table": "session_message"
  1428. },
  1429. {
  1430. "columns": [
  1431. {
  1432. "value": "session_id",
  1433. "isExpression": false
  1434. },
  1435. {
  1436. "value": "type",
  1437. "isExpression": false
  1438. }
  1439. ],
  1440. "isUnique": false,
  1441. "where": null,
  1442. "origin": "manual",
  1443. "name": "session_message_session_type_idx",
  1444. "entityType": "indexes",
  1445. "table": "session_message"
  1446. },
  1447. {
  1448. "columns": [
  1449. {
  1450. "value": "time_created",
  1451. "isExpression": false
  1452. }
  1453. ],
  1454. "isUnique": false,
  1455. "where": null,
  1456. "origin": "manual",
  1457. "name": "session_message_time_created_idx",
  1458. "entityType": "indexes",
  1459. "table": "session_message"
  1460. },
  1461. {
  1462. "columns": [
  1463. {
  1464. "value": "project_id",
  1465. "isExpression": false
  1466. }
  1467. ],
  1468. "isUnique": false,
  1469. "where": null,
  1470. "origin": "manual",
  1471. "name": "session_project_idx",
  1472. "entityType": "indexes",
  1473. "table": "session"
  1474. },
  1475. {
  1476. "columns": [
  1477. {
  1478. "value": "workspace_id",
  1479. "isExpression": false
  1480. }
  1481. ],
  1482. "isUnique": false,
  1483. "where": null,
  1484. "origin": "manual",
  1485. "name": "session_workspace_idx",
  1486. "entityType": "indexes",
  1487. "table": "session"
  1488. },
  1489. {
  1490. "columns": [
  1491. {
  1492. "value": "parent_id",
  1493. "isExpression": false
  1494. }
  1495. ],
  1496. "isUnique": false,
  1497. "where": null,
  1498. "origin": "manual",
  1499. "name": "session_parent_idx",
  1500. "entityType": "indexes",
  1501. "table": "session"
  1502. },
  1503. {
  1504. "columns": [
  1505. {
  1506. "value": "session_id",
  1507. "isExpression": false
  1508. }
  1509. ],
  1510. "isUnique": false,
  1511. "where": null,
  1512. "origin": "manual",
  1513. "name": "todo_session_idx",
  1514. "entityType": "indexes",
  1515. "table": "todo"
  1516. }
  1517. ],
  1518. "renames": []
  1519. }