1
0

schema.json 45 KB

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