schema.json 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "15060ec5-05f7-4b86-b2a5-9108609432b3",
  5. "prevIds": ["1551a157-8959-4ba9-a52b-4ea3b7b28cae"],
  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": "credential",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "event_sequence",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "event",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "kv",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "permission",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "project_directory",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "project",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "instruction_blob",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "instruction_entry",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "instruction_state",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "session_message",
  61. "entityType": "tables"
  62. },
  63. {
  64. "name": "session_pending",
  65. "entityType": "tables"
  66. },
  67. {
  68. "name": "session_v2",
  69. "entityType": "tables"
  70. },
  71. {
  72. "name": "workspace",
  73. "entityType": "tables"
  74. },
  75. {
  76. "type": "integer",
  77. "notNull": false,
  78. "autoincrement": false,
  79. "default": null,
  80. "generated": null,
  81. "name": "id",
  82. "entityType": "columns",
  83. "table": "account_state"
  84. },
  85. {
  86. "type": "text",
  87. "notNull": false,
  88. "autoincrement": false,
  89. "default": null,
  90. "generated": null,
  91. "name": "active_account_id",
  92. "entityType": "columns",
  93. "table": "account_state"
  94. },
  95. {
  96. "type": "text",
  97. "notNull": false,
  98. "autoincrement": false,
  99. "default": null,
  100. "generated": null,
  101. "name": "active_org_id",
  102. "entityType": "columns",
  103. "table": "account_state"
  104. },
  105. {
  106. "type": "text",
  107. "notNull": false,
  108. "autoincrement": false,
  109. "default": null,
  110. "generated": null,
  111. "name": "id",
  112. "entityType": "columns",
  113. "table": "account"
  114. },
  115. {
  116. "type": "text",
  117. "notNull": true,
  118. "autoincrement": false,
  119. "default": null,
  120. "generated": null,
  121. "name": "email",
  122. "entityType": "columns",
  123. "table": "account"
  124. },
  125. {
  126. "type": "text",
  127. "notNull": true,
  128. "autoincrement": false,
  129. "default": null,
  130. "generated": null,
  131. "name": "url",
  132. "entityType": "columns",
  133. "table": "account"
  134. },
  135. {
  136. "type": "text",
  137. "notNull": true,
  138. "autoincrement": false,
  139. "default": null,
  140. "generated": null,
  141. "name": "access_token",
  142. "entityType": "columns",
  143. "table": "account"
  144. },
  145. {
  146. "type": "text",
  147. "notNull": true,
  148. "autoincrement": false,
  149. "default": null,
  150. "generated": null,
  151. "name": "refresh_token",
  152. "entityType": "columns",
  153. "table": "account"
  154. },
  155. {
  156. "type": "integer",
  157. "notNull": false,
  158. "autoincrement": false,
  159. "default": null,
  160. "generated": null,
  161. "name": "token_expiry",
  162. "entityType": "columns",
  163. "table": "account"
  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": "account"
  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": "account"
  184. },
  185. {
  186. "type": "text",
  187. "notNull": true,
  188. "autoincrement": false,
  189. "default": null,
  190. "generated": null,
  191. "name": "email",
  192. "entityType": "columns",
  193. "table": "control_account"
  194. },
  195. {
  196. "type": "text",
  197. "notNull": true,
  198. "autoincrement": false,
  199. "default": null,
  200. "generated": null,
  201. "name": "url",
  202. "entityType": "columns",
  203. "table": "control_account"
  204. },
  205. {
  206. "type": "text",
  207. "notNull": true,
  208. "autoincrement": false,
  209. "default": null,
  210. "generated": null,
  211. "name": "access_token",
  212. "entityType": "columns",
  213. "table": "control_account"
  214. },
  215. {
  216. "type": "text",
  217. "notNull": true,
  218. "autoincrement": false,
  219. "default": null,
  220. "generated": null,
  221. "name": "refresh_token",
  222. "entityType": "columns",
  223. "table": "control_account"
  224. },
  225. {
  226. "type": "integer",
  227. "notNull": false,
  228. "autoincrement": false,
  229. "default": null,
  230. "generated": null,
  231. "name": "token_expiry",
  232. "entityType": "columns",
  233. "table": "control_account"
  234. },
  235. {
  236. "type": "integer",
  237. "notNull": true,
  238. "autoincrement": false,
  239. "default": null,
  240. "generated": null,
  241. "name": "active",
  242. "entityType": "columns",
  243. "table": "control_account"
  244. },
  245. {
  246. "type": "integer",
  247. "notNull": true,
  248. "autoincrement": false,
  249. "default": null,
  250. "generated": null,
  251. "name": "time_created",
  252. "entityType": "columns",
  253. "table": "control_account"
  254. },
  255. {
  256. "type": "integer",
  257. "notNull": true,
  258. "autoincrement": false,
  259. "default": null,
  260. "generated": null,
  261. "name": "time_updated",
  262. "entityType": "columns",
  263. "table": "control_account"
  264. },
  265. {
  266. "type": "text",
  267. "notNull": false,
  268. "autoincrement": false,
  269. "default": null,
  270. "generated": null,
  271. "name": "id",
  272. "entityType": "columns",
  273. "table": "credential"
  274. },
  275. {
  276. "type": "text",
  277. "notNull": false,
  278. "autoincrement": false,
  279. "default": null,
  280. "generated": null,
  281. "name": "integration_id",
  282. "entityType": "columns",
  283. "table": "credential"
  284. },
  285. {
  286. "type": "text",
  287. "notNull": true,
  288. "autoincrement": false,
  289. "default": null,
  290. "generated": null,
  291. "name": "label",
  292. "entityType": "columns",
  293. "table": "credential"
  294. },
  295. {
  296. "type": "text",
  297. "notNull": true,
  298. "autoincrement": false,
  299. "default": null,
  300. "generated": null,
  301. "name": "value",
  302. "entityType": "columns",
  303. "table": "credential"
  304. },
  305. {
  306. "type": "text",
  307. "notNull": false,
  308. "autoincrement": false,
  309. "default": null,
  310. "generated": null,
  311. "name": "connector_id",
  312. "entityType": "columns",
  313. "table": "credential"
  314. },
  315. {
  316. "type": "text",
  317. "notNull": false,
  318. "autoincrement": false,
  319. "default": null,
  320. "generated": null,
  321. "name": "method_id",
  322. "entityType": "columns",
  323. "table": "credential"
  324. },
  325. {
  326. "type": "integer",
  327. "notNull": false,
  328. "autoincrement": false,
  329. "default": null,
  330. "generated": null,
  331. "name": "active",
  332. "entityType": "columns",
  333. "table": "credential"
  334. },
  335. {
  336. "type": "integer",
  337. "notNull": true,
  338. "autoincrement": false,
  339. "default": null,
  340. "generated": null,
  341. "name": "time_created",
  342. "entityType": "columns",
  343. "table": "credential"
  344. },
  345. {
  346. "type": "integer",
  347. "notNull": true,
  348. "autoincrement": false,
  349. "default": null,
  350. "generated": null,
  351. "name": "time_updated",
  352. "entityType": "columns",
  353. "table": "credential"
  354. },
  355. {
  356. "type": "text",
  357. "notNull": false,
  358. "autoincrement": false,
  359. "default": null,
  360. "generated": null,
  361. "name": "aggregate_id",
  362. "entityType": "columns",
  363. "table": "event_sequence"
  364. },
  365. {
  366. "type": "integer",
  367. "notNull": true,
  368. "autoincrement": false,
  369. "default": null,
  370. "generated": null,
  371. "name": "seq",
  372. "entityType": "columns",
  373. "table": "event_sequence"
  374. },
  375. {
  376. "type": "text",
  377. "notNull": false,
  378. "autoincrement": false,
  379. "default": null,
  380. "generated": null,
  381. "name": "owner_id",
  382. "entityType": "columns",
  383. "table": "event_sequence"
  384. },
  385. {
  386. "type": "text",
  387. "notNull": false,
  388. "autoincrement": false,
  389. "default": null,
  390. "generated": null,
  391. "name": "id",
  392. "entityType": "columns",
  393. "table": "event"
  394. },
  395. {
  396. "type": "text",
  397. "notNull": true,
  398. "autoincrement": false,
  399. "default": null,
  400. "generated": null,
  401. "name": "aggregate_id",
  402. "entityType": "columns",
  403. "table": "event"
  404. },
  405. {
  406. "type": "integer",
  407. "notNull": true,
  408. "autoincrement": false,
  409. "default": null,
  410. "generated": null,
  411. "name": "seq",
  412. "entityType": "columns",
  413. "table": "event"
  414. },
  415. {
  416. "type": "integer",
  417. "notNull": true,
  418. "autoincrement": false,
  419. "default": "0",
  420. "generated": null,
  421. "name": "created",
  422. "entityType": "columns",
  423. "table": "event"
  424. },
  425. {
  426. "type": "text",
  427. "notNull": true,
  428. "autoincrement": false,
  429. "default": null,
  430. "generated": null,
  431. "name": "type",
  432. "entityType": "columns",
  433. "table": "event"
  434. },
  435. {
  436. "type": "text",
  437. "notNull": true,
  438. "autoincrement": false,
  439. "default": null,
  440. "generated": null,
  441. "name": "data",
  442. "entityType": "columns",
  443. "table": "event"
  444. },
  445. {
  446. "type": "text",
  447. "notNull": false,
  448. "autoincrement": false,
  449. "default": null,
  450. "generated": null,
  451. "name": "key",
  452. "entityType": "columns",
  453. "table": "kv"
  454. },
  455. {
  456. "type": "text",
  457. "notNull": true,
  458. "autoincrement": false,
  459. "default": null,
  460. "generated": null,
  461. "name": "value",
  462. "entityType": "columns",
  463. "table": "kv"
  464. },
  465. {
  466. "type": "integer",
  467. "notNull": true,
  468. "autoincrement": false,
  469. "default": null,
  470. "generated": null,
  471. "name": "time_created",
  472. "entityType": "columns",
  473. "table": "kv"
  474. },
  475. {
  476. "type": "integer",
  477. "notNull": true,
  478. "autoincrement": false,
  479. "default": null,
  480. "generated": null,
  481. "name": "time_updated",
  482. "entityType": "columns",
  483. "table": "kv"
  484. },
  485. {
  486. "type": "text",
  487. "notNull": false,
  488. "autoincrement": false,
  489. "default": null,
  490. "generated": null,
  491. "name": "id",
  492. "entityType": "columns",
  493. "table": "permission"
  494. },
  495. {
  496. "type": "text",
  497. "notNull": true,
  498. "autoincrement": false,
  499. "default": null,
  500. "generated": null,
  501. "name": "project_id",
  502. "entityType": "columns",
  503. "table": "permission"
  504. },
  505. {
  506. "type": "text",
  507. "notNull": true,
  508. "autoincrement": false,
  509. "default": null,
  510. "generated": null,
  511. "name": "action",
  512. "entityType": "columns",
  513. "table": "permission"
  514. },
  515. {
  516. "type": "text",
  517. "notNull": true,
  518. "autoincrement": false,
  519. "default": null,
  520. "generated": null,
  521. "name": "resource",
  522. "entityType": "columns",
  523. "table": "permission"
  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": "permission"
  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": "permission"
  544. },
  545. {
  546. "type": "text",
  547. "notNull": true,
  548. "autoincrement": false,
  549. "default": null,
  550. "generated": null,
  551. "name": "project_id",
  552. "entityType": "columns",
  553. "table": "project_directory"
  554. },
  555. {
  556. "type": "text",
  557. "notNull": true,
  558. "autoincrement": false,
  559. "default": null,
  560. "generated": null,
  561. "name": "directory",
  562. "entityType": "columns",
  563. "table": "project_directory"
  564. },
  565. {
  566. "type": "text",
  567. "notNull": false,
  568. "autoincrement": false,
  569. "default": null,
  570. "generated": null,
  571. "name": "type",
  572. "entityType": "columns",
  573. "table": "project_directory"
  574. },
  575. {
  576. "type": "text",
  577. "notNull": false,
  578. "autoincrement": false,
  579. "default": null,
  580. "generated": null,
  581. "name": "strategy",
  582. "entityType": "columns",
  583. "table": "project_directory"
  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": "project_directory"
  594. },
  595. {
  596. "type": "text",
  597. "notNull": false,
  598. "autoincrement": false,
  599. "default": null,
  600. "generated": null,
  601. "name": "id",
  602. "entityType": "columns",
  603. "table": "project"
  604. },
  605. {
  606. "type": "text",
  607. "notNull": true,
  608. "autoincrement": false,
  609. "default": null,
  610. "generated": null,
  611. "name": "worktree",
  612. "entityType": "columns",
  613. "table": "project"
  614. },
  615. {
  616. "type": "text",
  617. "notNull": false,
  618. "autoincrement": false,
  619. "default": null,
  620. "generated": null,
  621. "name": "vcs",
  622. "entityType": "columns",
  623. "table": "project"
  624. },
  625. {
  626. "type": "text",
  627. "notNull": false,
  628. "autoincrement": false,
  629. "default": null,
  630. "generated": null,
  631. "name": "name",
  632. "entityType": "columns",
  633. "table": "project"
  634. },
  635. {
  636. "type": "text",
  637. "notNull": false,
  638. "autoincrement": false,
  639. "default": null,
  640. "generated": null,
  641. "name": "icon_url",
  642. "entityType": "columns",
  643. "table": "project"
  644. },
  645. {
  646. "type": "text",
  647. "notNull": false,
  648. "autoincrement": false,
  649. "default": null,
  650. "generated": null,
  651. "name": "icon_url_override",
  652. "entityType": "columns",
  653. "table": "project"
  654. },
  655. {
  656. "type": "text",
  657. "notNull": false,
  658. "autoincrement": false,
  659. "default": null,
  660. "generated": null,
  661. "name": "icon_color",
  662. "entityType": "columns",
  663. "table": "project"
  664. },
  665. {
  666. "type": "integer",
  667. "notNull": true,
  668. "autoincrement": false,
  669. "default": null,
  670. "generated": null,
  671. "name": "time_created",
  672. "entityType": "columns",
  673. "table": "project"
  674. },
  675. {
  676. "type": "integer",
  677. "notNull": true,
  678. "autoincrement": false,
  679. "default": null,
  680. "generated": null,
  681. "name": "time_updated",
  682. "entityType": "columns",
  683. "table": "project"
  684. },
  685. {
  686. "type": "integer",
  687. "notNull": false,
  688. "autoincrement": false,
  689. "default": null,
  690. "generated": null,
  691. "name": "time_initialized",
  692. "entityType": "columns",
  693. "table": "project"
  694. },
  695. {
  696. "type": "text",
  697. "notNull": true,
  698. "autoincrement": false,
  699. "default": null,
  700. "generated": null,
  701. "name": "sandboxes",
  702. "entityType": "columns",
  703. "table": "project"
  704. },
  705. {
  706. "type": "text",
  707. "notNull": false,
  708. "autoincrement": false,
  709. "default": null,
  710. "generated": null,
  711. "name": "commands",
  712. "entityType": "columns",
  713. "table": "project"
  714. },
  715. {
  716. "type": "text",
  717. "notNull": false,
  718. "autoincrement": false,
  719. "default": null,
  720. "generated": null,
  721. "name": "hash",
  722. "entityType": "columns",
  723. "table": "instruction_blob"
  724. },
  725. {
  726. "type": "text",
  727. "notNull": false,
  728. "autoincrement": false,
  729. "default": null,
  730. "generated": null,
  731. "name": "value",
  732. "entityType": "columns",
  733. "table": "instruction_blob"
  734. },
  735. {
  736. "type": "text",
  737. "notNull": true,
  738. "autoincrement": false,
  739. "default": null,
  740. "generated": null,
  741. "name": "session_id",
  742. "entityType": "columns",
  743. "table": "instruction_entry"
  744. },
  745. {
  746. "type": "text",
  747. "notNull": true,
  748. "autoincrement": false,
  749. "default": null,
  750. "generated": null,
  751. "name": "key",
  752. "entityType": "columns",
  753. "table": "instruction_entry"
  754. },
  755. {
  756. "type": "text",
  757. "notNull": false,
  758. "autoincrement": false,
  759. "default": null,
  760. "generated": null,
  761. "name": "value",
  762. "entityType": "columns",
  763. "table": "instruction_entry"
  764. },
  765. {
  766. "type": "integer",
  767. "notNull": true,
  768. "autoincrement": false,
  769. "default": "false",
  770. "generated": null,
  771. "name": "removed",
  772. "entityType": "columns",
  773. "table": "instruction_entry"
  774. },
  775. {
  776. "type": "integer",
  777. "notNull": true,
  778. "autoincrement": false,
  779. "default": null,
  780. "generated": null,
  781. "name": "time_created",
  782. "entityType": "columns",
  783. "table": "instruction_entry"
  784. },
  785. {
  786. "type": "integer",
  787. "notNull": true,
  788. "autoincrement": false,
  789. "default": null,
  790. "generated": null,
  791. "name": "time_updated",
  792. "entityType": "columns",
  793. "table": "instruction_entry"
  794. },
  795. {
  796. "type": "text",
  797. "notNull": false,
  798. "autoincrement": false,
  799. "default": null,
  800. "generated": null,
  801. "name": "session_id",
  802. "entityType": "columns",
  803. "table": "instruction_state"
  804. },
  805. {
  806. "type": "integer",
  807. "notNull": true,
  808. "autoincrement": false,
  809. "default": null,
  810. "generated": null,
  811. "name": "epoch_start",
  812. "entityType": "columns",
  813. "table": "instruction_state"
  814. },
  815. {
  816. "type": "integer",
  817. "notNull": true,
  818. "autoincrement": false,
  819. "default": null,
  820. "generated": null,
  821. "name": "through_seq",
  822. "entityType": "columns",
  823. "table": "instruction_state"
  824. },
  825. {
  826. "type": "text",
  827. "notNull": true,
  828. "autoincrement": false,
  829. "default": null,
  830. "generated": null,
  831. "name": "initial_values",
  832. "entityType": "columns",
  833. "table": "instruction_state"
  834. },
  835. {
  836. "type": "text",
  837. "notNull": true,
  838. "autoincrement": false,
  839. "default": null,
  840. "generated": null,
  841. "name": "current_values",
  842. "entityType": "columns",
  843. "table": "instruction_state"
  844. },
  845. {
  846. "type": "text",
  847. "notNull": false,
  848. "autoincrement": false,
  849. "default": null,
  850. "generated": null,
  851. "name": "id",
  852. "entityType": "columns",
  853. "table": "session_message"
  854. },
  855. {
  856. "type": "text",
  857. "notNull": true,
  858. "autoincrement": false,
  859. "default": null,
  860. "generated": null,
  861. "name": "session_id",
  862. "entityType": "columns",
  863. "table": "session_message"
  864. },
  865. {
  866. "type": "text",
  867. "notNull": true,
  868. "autoincrement": false,
  869. "default": null,
  870. "generated": null,
  871. "name": "type",
  872. "entityType": "columns",
  873. "table": "session_message"
  874. },
  875. {
  876. "type": "integer",
  877. "notNull": true,
  878. "autoincrement": false,
  879. "default": null,
  880. "generated": null,
  881. "name": "seq",
  882. "entityType": "columns",
  883. "table": "session_message"
  884. },
  885. {
  886. "type": "integer",
  887. "notNull": true,
  888. "autoincrement": false,
  889. "default": null,
  890. "generated": null,
  891. "name": "time_created",
  892. "entityType": "columns",
  893. "table": "session_message"
  894. },
  895. {
  896. "type": "integer",
  897. "notNull": true,
  898. "autoincrement": false,
  899. "default": null,
  900. "generated": null,
  901. "name": "time_updated",
  902. "entityType": "columns",
  903. "table": "session_message"
  904. },
  905. {
  906. "type": "text",
  907. "notNull": true,
  908. "autoincrement": false,
  909. "default": null,
  910. "generated": null,
  911. "name": "data",
  912. "entityType": "columns",
  913. "table": "session_message"
  914. },
  915. {
  916. "type": "text",
  917. "notNull": false,
  918. "autoincrement": false,
  919. "default": null,
  920. "generated": null,
  921. "name": "id",
  922. "entityType": "columns",
  923. "table": "session_pending"
  924. },
  925. {
  926. "type": "text",
  927. "notNull": true,
  928. "autoincrement": false,
  929. "default": null,
  930. "generated": null,
  931. "name": "session_id",
  932. "entityType": "columns",
  933. "table": "session_pending"
  934. },
  935. {
  936. "type": "text",
  937. "notNull": true,
  938. "autoincrement": false,
  939. "default": null,
  940. "generated": null,
  941. "name": "type",
  942. "entityType": "columns",
  943. "table": "session_pending"
  944. },
  945. {
  946. "type": "text",
  947. "notNull": true,
  948. "autoincrement": false,
  949. "default": null,
  950. "generated": null,
  951. "name": "data",
  952. "entityType": "columns",
  953. "table": "session_pending"
  954. },
  955. {
  956. "type": "text",
  957. "notNull": false,
  958. "autoincrement": false,
  959. "default": null,
  960. "generated": null,
  961. "name": "delivery",
  962. "entityType": "columns",
  963. "table": "session_pending"
  964. },
  965. {
  966. "type": "integer",
  967. "notNull": true,
  968. "autoincrement": false,
  969. "default": null,
  970. "generated": null,
  971. "name": "admitted_seq",
  972. "entityType": "columns",
  973. "table": "session_pending"
  974. },
  975. {
  976. "type": "integer",
  977. "notNull": true,
  978. "autoincrement": false,
  979. "default": null,
  980. "generated": null,
  981. "name": "time_created",
  982. "entityType": "columns",
  983. "table": "session_pending"
  984. },
  985. {
  986. "type": "text",
  987. "notNull": false,
  988. "autoincrement": false,
  989. "default": null,
  990. "generated": null,
  991. "name": "id",
  992. "entityType": "columns",
  993. "table": "session_v2"
  994. },
  995. {
  996. "type": "text",
  997. "notNull": true,
  998. "autoincrement": false,
  999. "default": null,
  1000. "generated": null,
  1001. "name": "project_id",
  1002. "entityType": "columns",
  1003. "table": "session_v2"
  1004. },
  1005. {
  1006. "type": "text",
  1007. "notNull": false,
  1008. "autoincrement": false,
  1009. "default": null,
  1010. "generated": null,
  1011. "name": "workspace_id",
  1012. "entityType": "columns",
  1013. "table": "session_v2"
  1014. },
  1015. {
  1016. "type": "text",
  1017. "notNull": false,
  1018. "autoincrement": false,
  1019. "default": null,
  1020. "generated": null,
  1021. "name": "parent_id",
  1022. "entityType": "columns",
  1023. "table": "session_v2"
  1024. },
  1025. {
  1026. "type": "text",
  1027. "notNull": false,
  1028. "autoincrement": false,
  1029. "default": null,
  1030. "generated": null,
  1031. "name": "fork_session_id",
  1032. "entityType": "columns",
  1033. "table": "session_v2"
  1034. },
  1035. {
  1036. "type": "text",
  1037. "notNull": false,
  1038. "autoincrement": false,
  1039. "default": null,
  1040. "generated": null,
  1041. "name": "fork_boundary",
  1042. "entityType": "columns",
  1043. "table": "session_v2"
  1044. },
  1045. {
  1046. "type": "text",
  1047. "notNull": true,
  1048. "autoincrement": false,
  1049. "default": null,
  1050. "generated": null,
  1051. "name": "slug",
  1052. "entityType": "columns",
  1053. "table": "session_v2"
  1054. },
  1055. {
  1056. "type": "text",
  1057. "notNull": true,
  1058. "autoincrement": false,
  1059. "default": null,
  1060. "generated": null,
  1061. "name": "directory",
  1062. "entityType": "columns",
  1063. "table": "session_v2"
  1064. },
  1065. {
  1066. "type": "text",
  1067. "notNull": false,
  1068. "autoincrement": false,
  1069. "default": null,
  1070. "generated": null,
  1071. "name": "path",
  1072. "entityType": "columns",
  1073. "table": "session_v2"
  1074. },
  1075. {
  1076. "type": "text",
  1077. "notNull": false,
  1078. "autoincrement": false,
  1079. "default": null,
  1080. "generated": null,
  1081. "name": "title",
  1082. "entityType": "columns",
  1083. "table": "session_v2"
  1084. },
  1085. {
  1086. "type": "text",
  1087. "notNull": true,
  1088. "autoincrement": false,
  1089. "default": null,
  1090. "generated": null,
  1091. "name": "version",
  1092. "entityType": "columns",
  1093. "table": "session_v2"
  1094. },
  1095. {
  1096. "type": "text",
  1097. "notNull": false,
  1098. "autoincrement": false,
  1099. "default": null,
  1100. "generated": null,
  1101. "name": "share_url",
  1102. "entityType": "columns",
  1103. "table": "session_v2"
  1104. },
  1105. {
  1106. "type": "integer",
  1107. "notNull": false,
  1108. "autoincrement": false,
  1109. "default": null,
  1110. "generated": null,
  1111. "name": "summary_additions",
  1112. "entityType": "columns",
  1113. "table": "session_v2"
  1114. },
  1115. {
  1116. "type": "integer",
  1117. "notNull": false,
  1118. "autoincrement": false,
  1119. "default": null,
  1120. "generated": null,
  1121. "name": "summary_deletions",
  1122. "entityType": "columns",
  1123. "table": "session_v2"
  1124. },
  1125. {
  1126. "type": "integer",
  1127. "notNull": false,
  1128. "autoincrement": false,
  1129. "default": null,
  1130. "generated": null,
  1131. "name": "summary_files",
  1132. "entityType": "columns",
  1133. "table": "session_v2"
  1134. },
  1135. {
  1136. "type": "text",
  1137. "notNull": false,
  1138. "autoincrement": false,
  1139. "default": null,
  1140. "generated": null,
  1141. "name": "summary_diffs",
  1142. "entityType": "columns",
  1143. "table": "session_v2"
  1144. },
  1145. {
  1146. "type": "text",
  1147. "notNull": false,
  1148. "autoincrement": false,
  1149. "default": null,
  1150. "generated": null,
  1151. "name": "metadata",
  1152. "entityType": "columns",
  1153. "table": "session_v2"
  1154. },
  1155. {
  1156. "type": "real",
  1157. "notNull": true,
  1158. "autoincrement": false,
  1159. "default": "0",
  1160. "generated": null,
  1161. "name": "cost",
  1162. "entityType": "columns",
  1163. "table": "session_v2"
  1164. },
  1165. {
  1166. "type": "integer",
  1167. "notNull": true,
  1168. "autoincrement": false,
  1169. "default": "0",
  1170. "generated": null,
  1171. "name": "tokens_input",
  1172. "entityType": "columns",
  1173. "table": "session_v2"
  1174. },
  1175. {
  1176. "type": "integer",
  1177. "notNull": true,
  1178. "autoincrement": false,
  1179. "default": "0",
  1180. "generated": null,
  1181. "name": "tokens_output",
  1182. "entityType": "columns",
  1183. "table": "session_v2"
  1184. },
  1185. {
  1186. "type": "integer",
  1187. "notNull": true,
  1188. "autoincrement": false,
  1189. "default": "0",
  1190. "generated": null,
  1191. "name": "tokens_reasoning",
  1192. "entityType": "columns",
  1193. "table": "session_v2"
  1194. },
  1195. {
  1196. "type": "integer",
  1197. "notNull": true,
  1198. "autoincrement": false,
  1199. "default": "0",
  1200. "generated": null,
  1201. "name": "tokens_cache_read",
  1202. "entityType": "columns",
  1203. "table": "session_v2"
  1204. },
  1205. {
  1206. "type": "integer",
  1207. "notNull": true,
  1208. "autoincrement": false,
  1209. "default": "0",
  1210. "generated": null,
  1211. "name": "tokens_cache_write",
  1212. "entityType": "columns",
  1213. "table": "session_v2"
  1214. },
  1215. {
  1216. "type": "text",
  1217. "notNull": false,
  1218. "autoincrement": false,
  1219. "default": null,
  1220. "generated": null,
  1221. "name": "revert",
  1222. "entityType": "columns",
  1223. "table": "session_v2"
  1224. },
  1225. {
  1226. "type": "text",
  1227. "notNull": false,
  1228. "autoincrement": false,
  1229. "default": null,
  1230. "generated": null,
  1231. "name": "permission",
  1232. "entityType": "columns",
  1233. "table": "session_v2"
  1234. },
  1235. {
  1236. "type": "text",
  1237. "notNull": false,
  1238. "autoincrement": false,
  1239. "default": null,
  1240. "generated": null,
  1241. "name": "agent",
  1242. "entityType": "columns",
  1243. "table": "session_v2"
  1244. },
  1245. {
  1246. "type": "text",
  1247. "notNull": false,
  1248. "autoincrement": false,
  1249. "default": null,
  1250. "generated": null,
  1251. "name": "model",
  1252. "entityType": "columns",
  1253. "table": "session_v2"
  1254. },
  1255. {
  1256. "type": "integer",
  1257. "notNull": true,
  1258. "autoincrement": false,
  1259. "default": null,
  1260. "generated": null,
  1261. "name": "time_created",
  1262. "entityType": "columns",
  1263. "table": "session_v2"
  1264. },
  1265. {
  1266. "type": "integer",
  1267. "notNull": true,
  1268. "autoincrement": false,
  1269. "default": null,
  1270. "generated": null,
  1271. "name": "time_updated",
  1272. "entityType": "columns",
  1273. "table": "session_v2"
  1274. },
  1275. {
  1276. "type": "integer",
  1277. "notNull": false,
  1278. "autoincrement": false,
  1279. "default": null,
  1280. "generated": null,
  1281. "name": "time_compacting",
  1282. "entityType": "columns",
  1283. "table": "session_v2"
  1284. },
  1285. {
  1286. "type": "integer",
  1287. "notNull": false,
  1288. "autoincrement": false,
  1289. "default": null,
  1290. "generated": null,
  1291. "name": "time_archived",
  1292. "entityType": "columns",
  1293. "table": "session_v2"
  1294. },
  1295. {
  1296. "type": "integer",
  1297. "notNull": false,
  1298. "autoincrement": false,
  1299. "default": null,
  1300. "generated": null,
  1301. "name": "time_suspended",
  1302. "entityType": "columns",
  1303. "table": "session_v2"
  1304. },
  1305. {
  1306. "type": "text",
  1307. "notNull": false,
  1308. "autoincrement": false,
  1309. "default": null,
  1310. "generated": null,
  1311. "name": "id",
  1312. "entityType": "columns",
  1313. "table": "workspace"
  1314. },
  1315. {
  1316. "type": "text",
  1317. "notNull": true,
  1318. "autoincrement": false,
  1319. "default": null,
  1320. "generated": null,
  1321. "name": "provider",
  1322. "entityType": "columns",
  1323. "table": "workspace"
  1324. },
  1325. {
  1326. "type": "text",
  1327. "notNull": true,
  1328. "autoincrement": false,
  1329. "default": null,
  1330. "generated": null,
  1331. "name": "binding",
  1332. "entityType": "columns",
  1333. "table": "workspace"
  1334. },
  1335. {
  1336. "type": "integer",
  1337. "notNull": true,
  1338. "autoincrement": false,
  1339. "default": null,
  1340. "generated": null,
  1341. "name": "created_at",
  1342. "entityType": "columns",
  1343. "table": "workspace"
  1344. },
  1345. {
  1346. "type": "integer",
  1347. "notNull": true,
  1348. "autoincrement": false,
  1349. "default": null,
  1350. "generated": null,
  1351. "name": "last_used_at",
  1352. "entityType": "columns",
  1353. "table": "workspace"
  1354. },
  1355. {
  1356. "columns": ["active_account_id"],
  1357. "tableTo": "account",
  1358. "columnsTo": ["id"],
  1359. "onUpdate": "NO ACTION",
  1360. "onDelete": "SET NULL",
  1361. "nameExplicit": false,
  1362. "name": "fk_account_state_active_account_id_account_id_fk",
  1363. "entityType": "fks",
  1364. "table": "account_state"
  1365. },
  1366. {
  1367. "columns": ["aggregate_id"],
  1368. "tableTo": "event_sequence",
  1369. "columnsTo": ["aggregate_id"],
  1370. "onUpdate": "NO ACTION",
  1371. "onDelete": "CASCADE",
  1372. "nameExplicit": false,
  1373. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1374. "entityType": "fks",
  1375. "table": "event"
  1376. },
  1377. {
  1378. "columns": ["project_id"],
  1379. "tableTo": "project",
  1380. "columnsTo": ["id"],
  1381. "onUpdate": "NO ACTION",
  1382. "onDelete": "CASCADE",
  1383. "nameExplicit": false,
  1384. "name": "fk_permission_project_id_project_id_fk",
  1385. "entityType": "fks",
  1386. "table": "permission"
  1387. },
  1388. {
  1389. "columns": ["project_id"],
  1390. "tableTo": "project",
  1391. "columnsTo": ["id"],
  1392. "onUpdate": "NO ACTION",
  1393. "onDelete": "CASCADE",
  1394. "nameExplicit": false,
  1395. "name": "fk_project_directory_project_id_project_id_fk",
  1396. "entityType": "fks",
  1397. "table": "project_directory"
  1398. },
  1399. {
  1400. "columns": ["session_id"],
  1401. "tableTo": "session_v2",
  1402. "columnsTo": ["id"],
  1403. "onUpdate": "NO ACTION",
  1404. "onDelete": "CASCADE",
  1405. "nameExplicit": false,
  1406. "name": "fk_instruction_entry_session_id_session_v2_id_fk",
  1407. "entityType": "fks",
  1408. "table": "instruction_entry"
  1409. },
  1410. {
  1411. "columns": ["session_id"],
  1412. "tableTo": "session_v2",
  1413. "columnsTo": ["id"],
  1414. "onUpdate": "NO ACTION",
  1415. "onDelete": "CASCADE",
  1416. "nameExplicit": false,
  1417. "name": "fk_instruction_state_session_id_session_v2_id_fk",
  1418. "entityType": "fks",
  1419. "table": "instruction_state"
  1420. },
  1421. {
  1422. "columns": ["session_id"],
  1423. "tableTo": "session_v2",
  1424. "columnsTo": ["id"],
  1425. "onUpdate": "NO ACTION",
  1426. "onDelete": "CASCADE",
  1427. "nameExplicit": false,
  1428. "name": "fk_session_message_session_id_session_v2_id_fk",
  1429. "entityType": "fks",
  1430. "table": "session_message"
  1431. },
  1432. {
  1433. "columns": ["session_id"],
  1434. "tableTo": "session_v2",
  1435. "columnsTo": ["id"],
  1436. "onUpdate": "NO ACTION",
  1437. "onDelete": "CASCADE",
  1438. "nameExplicit": false,
  1439. "name": "fk_session_pending_session_id_session_v2_id_fk",
  1440. "entityType": "fks",
  1441. "table": "session_pending"
  1442. },
  1443. {
  1444. "columns": ["project_id"],
  1445. "tableTo": "project",
  1446. "columnsTo": ["id"],
  1447. "onUpdate": "NO ACTION",
  1448. "onDelete": "CASCADE",
  1449. "nameExplicit": false,
  1450. "name": "fk_session_v2_project_id_project_id_fk",
  1451. "entityType": "fks",
  1452. "table": "session_v2"
  1453. },
  1454. {
  1455. "columns": ["email", "url"],
  1456. "nameExplicit": false,
  1457. "name": "control_account_pk",
  1458. "entityType": "pks",
  1459. "table": "control_account"
  1460. },
  1461. {
  1462. "columns": ["project_id", "directory"],
  1463. "nameExplicit": false,
  1464. "name": "project_directory_pk",
  1465. "entityType": "pks",
  1466. "table": "project_directory"
  1467. },
  1468. {
  1469. "columns": ["session_id", "key"],
  1470. "nameExplicit": false,
  1471. "name": "instruction_entry_pk",
  1472. "entityType": "pks",
  1473. "table": "instruction_entry"
  1474. },
  1475. {
  1476. "columns": ["id"],
  1477. "nameExplicit": false,
  1478. "name": "account_state_pk",
  1479. "table": "account_state",
  1480. "entityType": "pks"
  1481. },
  1482. {
  1483. "columns": ["id"],
  1484. "nameExplicit": false,
  1485. "name": "account_pk",
  1486. "table": "account",
  1487. "entityType": "pks"
  1488. },
  1489. {
  1490. "columns": ["id"],
  1491. "nameExplicit": false,
  1492. "name": "credential_pk",
  1493. "table": "credential",
  1494. "entityType": "pks"
  1495. },
  1496. {
  1497. "columns": ["aggregate_id"],
  1498. "nameExplicit": false,
  1499. "name": "event_sequence_pk",
  1500. "table": "event_sequence",
  1501. "entityType": "pks"
  1502. },
  1503. {
  1504. "columns": ["id"],
  1505. "nameExplicit": false,
  1506. "name": "event_pk",
  1507. "table": "event",
  1508. "entityType": "pks"
  1509. },
  1510. {
  1511. "columns": ["key"],
  1512. "nameExplicit": false,
  1513. "name": "kv_pk",
  1514. "table": "kv",
  1515. "entityType": "pks"
  1516. },
  1517. {
  1518. "columns": ["id"],
  1519. "nameExplicit": false,
  1520. "name": "permission_pk",
  1521. "table": "permission",
  1522. "entityType": "pks"
  1523. },
  1524. {
  1525. "columns": ["id"],
  1526. "nameExplicit": false,
  1527. "name": "project_pk",
  1528. "table": "project",
  1529. "entityType": "pks"
  1530. },
  1531. {
  1532. "columns": ["hash"],
  1533. "nameExplicit": false,
  1534. "name": "instruction_blob_pk",
  1535. "table": "instruction_blob",
  1536. "entityType": "pks"
  1537. },
  1538. {
  1539. "columns": ["session_id"],
  1540. "nameExplicit": false,
  1541. "name": "instruction_state_pk",
  1542. "table": "instruction_state",
  1543. "entityType": "pks"
  1544. },
  1545. {
  1546. "columns": ["id"],
  1547. "nameExplicit": false,
  1548. "name": "session_message_pk",
  1549. "table": "session_message",
  1550. "entityType": "pks"
  1551. },
  1552. {
  1553. "columns": ["id"],
  1554. "nameExplicit": false,
  1555. "name": "session_pending_pk",
  1556. "table": "session_pending",
  1557. "entityType": "pks"
  1558. },
  1559. {
  1560. "columns": ["id"],
  1561. "nameExplicit": false,
  1562. "name": "session_v2_pk",
  1563. "table": "session_v2",
  1564. "entityType": "pks"
  1565. },
  1566. {
  1567. "columns": ["id"],
  1568. "nameExplicit": false,
  1569. "name": "workspace_pk",
  1570. "table": "workspace",
  1571. "entityType": "pks"
  1572. },
  1573. {
  1574. "columns": [
  1575. {
  1576. "value": "aggregate_id",
  1577. "isExpression": false
  1578. },
  1579. {
  1580. "value": "seq",
  1581. "isExpression": false
  1582. }
  1583. ],
  1584. "isUnique": true,
  1585. "where": null,
  1586. "origin": "manual",
  1587. "name": "event_aggregate_seq_idx",
  1588. "entityType": "indexes",
  1589. "table": "event"
  1590. },
  1591. {
  1592. "columns": [
  1593. {
  1594. "value": "aggregate_id",
  1595. "isExpression": false
  1596. },
  1597. {
  1598. "value": "type",
  1599. "isExpression": false
  1600. },
  1601. {
  1602. "value": "seq",
  1603. "isExpression": false
  1604. }
  1605. ],
  1606. "isUnique": false,
  1607. "where": null,
  1608. "origin": "manual",
  1609. "name": "event_aggregate_type_seq_idx",
  1610. "entityType": "indexes",
  1611. "table": "event"
  1612. },
  1613. {
  1614. "columns": [
  1615. {
  1616. "value": "project_id",
  1617. "isExpression": false
  1618. },
  1619. {
  1620. "value": "action",
  1621. "isExpression": false
  1622. },
  1623. {
  1624. "value": "resource",
  1625. "isExpression": false
  1626. }
  1627. ],
  1628. "isUnique": true,
  1629. "where": null,
  1630. "origin": "manual",
  1631. "name": "permission_project_action_resource_idx",
  1632. "entityType": "indexes",
  1633. "table": "permission"
  1634. },
  1635. {
  1636. "columns": [
  1637. {
  1638. "value": "session_id",
  1639. "isExpression": false
  1640. },
  1641. {
  1642. "value": "seq",
  1643. "isExpression": false
  1644. }
  1645. ],
  1646. "isUnique": true,
  1647. "where": null,
  1648. "origin": "manual",
  1649. "name": "session_message_session_seq_idx",
  1650. "entityType": "indexes",
  1651. "table": "session_message"
  1652. },
  1653. {
  1654. "columns": [
  1655. {
  1656. "value": "session_id",
  1657. "isExpression": false
  1658. },
  1659. {
  1660. "value": "type",
  1661. "isExpression": false
  1662. },
  1663. {
  1664. "value": "seq",
  1665. "isExpression": false
  1666. }
  1667. ],
  1668. "isUnique": false,
  1669. "where": null,
  1670. "origin": "manual",
  1671. "name": "session_message_session_type_seq_idx",
  1672. "entityType": "indexes",
  1673. "table": "session_message"
  1674. },
  1675. {
  1676. "columns": [
  1677. {
  1678. "value": "session_id",
  1679. "isExpression": false
  1680. },
  1681. {
  1682. "value": "time_created",
  1683. "isExpression": false
  1684. },
  1685. {
  1686. "value": "id",
  1687. "isExpression": false
  1688. }
  1689. ],
  1690. "isUnique": false,
  1691. "where": null,
  1692. "origin": "manual",
  1693. "name": "session_message_session_time_created_id_idx",
  1694. "entityType": "indexes",
  1695. "table": "session_message"
  1696. },
  1697. {
  1698. "columns": [
  1699. {
  1700. "value": "time_created",
  1701. "isExpression": false
  1702. }
  1703. ],
  1704. "isUnique": false,
  1705. "where": null,
  1706. "origin": "manual",
  1707. "name": "session_message_time_created_idx",
  1708. "entityType": "indexes",
  1709. "table": "session_message"
  1710. },
  1711. {
  1712. "columns": [
  1713. {
  1714. "value": "session_id",
  1715. "isExpression": false
  1716. },
  1717. {
  1718. "value": "delivery",
  1719. "isExpression": false
  1720. },
  1721. {
  1722. "value": "admitted_seq",
  1723. "isExpression": false
  1724. }
  1725. ],
  1726. "isUnique": false,
  1727. "where": null,
  1728. "origin": "manual",
  1729. "name": "session_pending_session_delivery_seq_idx",
  1730. "entityType": "indexes",
  1731. "table": "session_pending"
  1732. },
  1733. {
  1734. "columns": [
  1735. {
  1736. "value": "session_id",
  1737. "isExpression": false
  1738. }
  1739. ],
  1740. "isUnique": true,
  1741. "where": "\"session_pending\".\"type\" = 'compaction'",
  1742. "origin": "manual",
  1743. "name": "session_pending_session_compaction_idx",
  1744. "entityType": "indexes",
  1745. "table": "session_pending"
  1746. },
  1747. {
  1748. "columns": [
  1749. {
  1750. "value": "session_id",
  1751. "isExpression": false
  1752. },
  1753. {
  1754. "value": "admitted_seq",
  1755. "isExpression": false
  1756. }
  1757. ],
  1758. "isUnique": true,
  1759. "where": null,
  1760. "origin": "manual",
  1761. "name": "session_pending_session_admitted_seq_idx",
  1762. "entityType": "indexes",
  1763. "table": "session_pending"
  1764. },
  1765. {
  1766. "columns": [
  1767. {
  1768. "value": "project_id",
  1769. "isExpression": false
  1770. }
  1771. ],
  1772. "isUnique": false,
  1773. "where": null,
  1774. "origin": "manual",
  1775. "name": "session_v2_project_idx",
  1776. "entityType": "indexes",
  1777. "table": "session_v2"
  1778. },
  1779. {
  1780. "columns": [
  1781. {
  1782. "value": "workspace_id",
  1783. "isExpression": false
  1784. }
  1785. ],
  1786. "isUnique": false,
  1787. "where": null,
  1788. "origin": "manual",
  1789. "name": "session_v2_workspace_idx",
  1790. "entityType": "indexes",
  1791. "table": "session_v2"
  1792. },
  1793. {
  1794. "columns": [
  1795. {
  1796. "value": "parent_id",
  1797. "isExpression": false
  1798. }
  1799. ],
  1800. "isUnique": false,
  1801. "where": null,
  1802. "origin": "manual",
  1803. "name": "session_v2_parent_idx",
  1804. "entityType": "indexes",
  1805. "table": "session_v2"
  1806. },
  1807. {
  1808. "columns": [
  1809. {
  1810. "value": "time_suspended",
  1811. "isExpression": false
  1812. }
  1813. ],
  1814. "isUnique": false,
  1815. "where": "\"session_v2\".\"time_suspended\" is not null",
  1816. "origin": "manual",
  1817. "name": "session_v2_time_suspended_idx",
  1818. "entityType": "indexes",
  1819. "table": "session_v2"
  1820. }
  1821. ],
  1822. "renames": []
  1823. }