schema.json 42 KB

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