schema.json 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "b0355fd9-bf41-42e3-9dca-76107de27ecd",
  5. "prevIds": ["95328a41-789d-44de-9643-6ac6ecd6b4ec"],
  6. "ddl": [
  7. {
  8. "name": "workspace",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "data_migration",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "account_state",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "account",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "control_account",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "credential",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "event_sequence",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "event",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "permission",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "project_directory",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "project",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "instruction_checkpoint",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "instruction_entry",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "message",
  61. "entityType": "tables"
  62. },
  63. {
  64. "name": "part",
  65. "entityType": "tables"
  66. },
  67. {
  68. "name": "session_input",
  69. "entityType": "tables"
  70. },
  71. {
  72. "name": "session_message",
  73. "entityType": "tables"
  74. },
  75. {
  76. "name": "session",
  77. "entityType": "tables"
  78. },
  79. {
  80. "name": "todo",
  81. "entityType": "tables"
  82. },
  83. {
  84. "name": "session_share",
  85. "entityType": "tables"
  86. },
  87. {
  88. "type": "text",
  89. "notNull": false,
  90. "autoincrement": false,
  91. "default": null,
  92. "generated": null,
  93. "name": "id",
  94. "entityType": "columns",
  95. "table": "workspace"
  96. },
  97. {
  98. "type": "text",
  99. "notNull": true,
  100. "autoincrement": false,
  101. "default": null,
  102. "generated": null,
  103. "name": "type",
  104. "entityType": "columns",
  105. "table": "workspace"
  106. },
  107. {
  108. "type": "text",
  109. "notNull": true,
  110. "autoincrement": false,
  111. "default": "''",
  112. "generated": null,
  113. "name": "name",
  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": "branch",
  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": "directory",
  134. "entityType": "columns",
  135. "table": "workspace"
  136. },
  137. {
  138. "type": "text",
  139. "notNull": false,
  140. "autoincrement": false,
  141. "default": null,
  142. "generated": null,
  143. "name": "extra",
  144. "entityType": "columns",
  145. "table": "workspace"
  146. },
  147. {
  148. "type": "text",
  149. "notNull": true,
  150. "autoincrement": false,
  151. "default": null,
  152. "generated": null,
  153. "name": "project_id",
  154. "entityType": "columns",
  155. "table": "workspace"
  156. },
  157. {
  158. "type": "integer",
  159. "notNull": true,
  160. "autoincrement": false,
  161. "default": null,
  162. "generated": null,
  163. "name": "time_used",
  164. "entityType": "columns",
  165. "table": "workspace"
  166. },
  167. {
  168. "type": "text",
  169. "notNull": false,
  170. "autoincrement": false,
  171. "default": null,
  172. "generated": null,
  173. "name": "name",
  174. "entityType": "columns",
  175. "table": "data_migration"
  176. },
  177. {
  178. "type": "integer",
  179. "notNull": true,
  180. "autoincrement": false,
  181. "default": null,
  182. "generated": null,
  183. "name": "time_completed",
  184. "entityType": "columns",
  185. "table": "data_migration"
  186. },
  187. {
  188. "type": "integer",
  189. "notNull": false,
  190. "autoincrement": false,
  191. "default": null,
  192. "generated": null,
  193. "name": "id",
  194. "entityType": "columns",
  195. "table": "account_state"
  196. },
  197. {
  198. "type": "text",
  199. "notNull": false,
  200. "autoincrement": false,
  201. "default": null,
  202. "generated": null,
  203. "name": "active_account_id",
  204. "entityType": "columns",
  205. "table": "account_state"
  206. },
  207. {
  208. "type": "text",
  209. "notNull": false,
  210. "autoincrement": false,
  211. "default": null,
  212. "generated": null,
  213. "name": "active_org_id",
  214. "entityType": "columns",
  215. "table": "account_state"
  216. },
  217. {
  218. "type": "text",
  219. "notNull": false,
  220. "autoincrement": false,
  221. "default": null,
  222. "generated": null,
  223. "name": "id",
  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": "email",
  234. "entityType": "columns",
  235. "table": "account"
  236. },
  237. {
  238. "type": "text",
  239. "notNull": true,
  240. "autoincrement": false,
  241. "default": null,
  242. "generated": null,
  243. "name": "url",
  244. "entityType": "columns",
  245. "table": "account"
  246. },
  247. {
  248. "type": "text",
  249. "notNull": true,
  250. "autoincrement": false,
  251. "default": null,
  252. "generated": null,
  253. "name": "access_token",
  254. "entityType": "columns",
  255. "table": "account"
  256. },
  257. {
  258. "type": "text",
  259. "notNull": true,
  260. "autoincrement": false,
  261. "default": null,
  262. "generated": null,
  263. "name": "refresh_token",
  264. "entityType": "columns",
  265. "table": "account"
  266. },
  267. {
  268. "type": "integer",
  269. "notNull": false,
  270. "autoincrement": false,
  271. "default": null,
  272. "generated": null,
  273. "name": "token_expiry",
  274. "entityType": "columns",
  275. "table": "account"
  276. },
  277. {
  278. "type": "integer",
  279. "notNull": true,
  280. "autoincrement": false,
  281. "default": null,
  282. "generated": null,
  283. "name": "time_created",
  284. "entityType": "columns",
  285. "table": "account"
  286. },
  287. {
  288. "type": "integer",
  289. "notNull": true,
  290. "autoincrement": false,
  291. "default": null,
  292. "generated": null,
  293. "name": "time_updated",
  294. "entityType": "columns",
  295. "table": "account"
  296. },
  297. {
  298. "type": "text",
  299. "notNull": true,
  300. "autoincrement": false,
  301. "default": null,
  302. "generated": null,
  303. "name": "email",
  304. "entityType": "columns",
  305. "table": "control_account"
  306. },
  307. {
  308. "type": "text",
  309. "notNull": true,
  310. "autoincrement": false,
  311. "default": null,
  312. "generated": null,
  313. "name": "url",
  314. "entityType": "columns",
  315. "table": "control_account"
  316. },
  317. {
  318. "type": "text",
  319. "notNull": true,
  320. "autoincrement": false,
  321. "default": null,
  322. "generated": null,
  323. "name": "access_token",
  324. "entityType": "columns",
  325. "table": "control_account"
  326. },
  327. {
  328. "type": "text",
  329. "notNull": true,
  330. "autoincrement": false,
  331. "default": null,
  332. "generated": null,
  333. "name": "refresh_token",
  334. "entityType": "columns",
  335. "table": "control_account"
  336. },
  337. {
  338. "type": "integer",
  339. "notNull": false,
  340. "autoincrement": false,
  341. "default": null,
  342. "generated": null,
  343. "name": "token_expiry",
  344. "entityType": "columns",
  345. "table": "control_account"
  346. },
  347. {
  348. "type": "integer",
  349. "notNull": true,
  350. "autoincrement": false,
  351. "default": null,
  352. "generated": null,
  353. "name": "active",
  354. "entityType": "columns",
  355. "table": "control_account"
  356. },
  357. {
  358. "type": "integer",
  359. "notNull": true,
  360. "autoincrement": false,
  361. "default": null,
  362. "generated": null,
  363. "name": "time_created",
  364. "entityType": "columns",
  365. "table": "control_account"
  366. },
  367. {
  368. "type": "integer",
  369. "notNull": true,
  370. "autoincrement": false,
  371. "default": null,
  372. "generated": null,
  373. "name": "time_updated",
  374. "entityType": "columns",
  375. "table": "control_account"
  376. },
  377. {
  378. "type": "text",
  379. "notNull": false,
  380. "autoincrement": false,
  381. "default": null,
  382. "generated": null,
  383. "name": "id",
  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": "integration_id",
  394. "entityType": "columns",
  395. "table": "credential"
  396. },
  397. {
  398. "type": "text",
  399. "notNull": true,
  400. "autoincrement": false,
  401. "default": null,
  402. "generated": null,
  403. "name": "label",
  404. "entityType": "columns",
  405. "table": "credential"
  406. },
  407. {
  408. "type": "text",
  409. "notNull": true,
  410. "autoincrement": false,
  411. "default": null,
  412. "generated": null,
  413. "name": "value",
  414. "entityType": "columns",
  415. "table": "credential"
  416. },
  417. {
  418. "type": "text",
  419. "notNull": false,
  420. "autoincrement": false,
  421. "default": null,
  422. "generated": null,
  423. "name": "connector_id",
  424. "entityType": "columns",
  425. "table": "credential"
  426. },
  427. {
  428. "type": "text",
  429. "notNull": false,
  430. "autoincrement": false,
  431. "default": null,
  432. "generated": null,
  433. "name": "method_id",
  434. "entityType": "columns",
  435. "table": "credential"
  436. },
  437. {
  438. "type": "integer",
  439. "notNull": false,
  440. "autoincrement": false,
  441. "default": null,
  442. "generated": null,
  443. "name": "active",
  444. "entityType": "columns",
  445. "table": "credential"
  446. },
  447. {
  448. "type": "integer",
  449. "notNull": true,
  450. "autoincrement": false,
  451. "default": null,
  452. "generated": null,
  453. "name": "time_created",
  454. "entityType": "columns",
  455. "table": "credential"
  456. },
  457. {
  458. "type": "integer",
  459. "notNull": true,
  460. "autoincrement": false,
  461. "default": null,
  462. "generated": null,
  463. "name": "time_updated",
  464. "entityType": "columns",
  465. "table": "credential"
  466. },
  467. {
  468. "type": "text",
  469. "notNull": false,
  470. "autoincrement": false,
  471. "default": null,
  472. "generated": null,
  473. "name": "aggregate_id",
  474. "entityType": "columns",
  475. "table": "event_sequence"
  476. },
  477. {
  478. "type": "integer",
  479. "notNull": true,
  480. "autoincrement": false,
  481. "default": null,
  482. "generated": null,
  483. "name": "seq",
  484. "entityType": "columns",
  485. "table": "event_sequence"
  486. },
  487. {
  488. "type": "text",
  489. "notNull": false,
  490. "autoincrement": false,
  491. "default": null,
  492. "generated": null,
  493. "name": "owner_id",
  494. "entityType": "columns",
  495. "table": "event_sequence"
  496. },
  497. {
  498. "type": "text",
  499. "notNull": false,
  500. "autoincrement": false,
  501. "default": null,
  502. "generated": null,
  503. "name": "id",
  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": "aggregate_id",
  514. "entityType": "columns",
  515. "table": "event"
  516. },
  517. {
  518. "type": "integer",
  519. "notNull": true,
  520. "autoincrement": false,
  521. "default": null,
  522. "generated": null,
  523. "name": "seq",
  524. "entityType": "columns",
  525. "table": "event"
  526. },
  527. {
  528. "type": "integer",
  529. "notNull": true,
  530. "autoincrement": false,
  531. "default": null,
  532. "generated": null,
  533. "name": "created",
  534. "entityType": "columns",
  535. "table": "event"
  536. },
  537. {
  538. "type": "text",
  539. "notNull": true,
  540. "autoincrement": false,
  541. "default": null,
  542. "generated": null,
  543. "name": "type",
  544. "entityType": "columns",
  545. "table": "event"
  546. },
  547. {
  548. "type": "text",
  549. "notNull": true,
  550. "autoincrement": false,
  551. "default": null,
  552. "generated": null,
  553. "name": "data",
  554. "entityType": "columns",
  555. "table": "event"
  556. },
  557. {
  558. "type": "text",
  559. "notNull": false,
  560. "autoincrement": false,
  561. "default": null,
  562. "generated": null,
  563. "name": "id",
  564. "entityType": "columns",
  565. "table": "permission"
  566. },
  567. {
  568. "type": "text",
  569. "notNull": true,
  570. "autoincrement": false,
  571. "default": null,
  572. "generated": null,
  573. "name": "project_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": "action",
  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": "resource",
  594. "entityType": "columns",
  595. "table": "permission"
  596. },
  597. {
  598. "type": "integer",
  599. "notNull": true,
  600. "autoincrement": false,
  601. "default": null,
  602. "generated": null,
  603. "name": "time_created",
  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_updated",
  614. "entityType": "columns",
  615. "table": "permission"
  616. },
  617. {
  618. "type": "text",
  619. "notNull": true,
  620. "autoincrement": false,
  621. "default": null,
  622. "generated": null,
  623. "name": "project_id",
  624. "entityType": "columns",
  625. "table": "project_directory"
  626. },
  627. {
  628. "type": "text",
  629. "notNull": true,
  630. "autoincrement": false,
  631. "default": null,
  632. "generated": null,
  633. "name": "directory",
  634. "entityType": "columns",
  635. "table": "project_directory"
  636. },
  637. {
  638. "type": "text",
  639. "notNull": false,
  640. "autoincrement": false,
  641. "default": null,
  642. "generated": null,
  643. "name": "type",
  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": "strategy",
  654. "entityType": "columns",
  655. "table": "project_directory"
  656. },
  657. {
  658. "type": "integer",
  659. "notNull": true,
  660. "autoincrement": false,
  661. "default": null,
  662. "generated": null,
  663. "name": "time_created",
  664. "entityType": "columns",
  665. "table": "project_directory"
  666. },
  667. {
  668. "type": "text",
  669. "notNull": false,
  670. "autoincrement": false,
  671. "default": null,
  672. "generated": null,
  673. "name": "id",
  674. "entityType": "columns",
  675. "table": "project"
  676. },
  677. {
  678. "type": "text",
  679. "notNull": true,
  680. "autoincrement": false,
  681. "default": null,
  682. "generated": null,
  683. "name": "worktree",
  684. "entityType": "columns",
  685. "table": "project"
  686. },
  687. {
  688. "type": "text",
  689. "notNull": false,
  690. "autoincrement": false,
  691. "default": null,
  692. "generated": null,
  693. "name": "vcs",
  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": "name",
  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": "icon_url",
  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_override",
  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_color",
  734. "entityType": "columns",
  735. "table": "project"
  736. },
  737. {
  738. "type": "integer",
  739. "notNull": true,
  740. "autoincrement": false,
  741. "default": null,
  742. "generated": null,
  743. "name": "time_created",
  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_updated",
  754. "entityType": "columns",
  755. "table": "project"
  756. },
  757. {
  758. "type": "integer",
  759. "notNull": false,
  760. "autoincrement": false,
  761. "default": null,
  762. "generated": null,
  763. "name": "time_initialized",
  764. "entityType": "columns",
  765. "table": "project"
  766. },
  767. {
  768. "type": "text",
  769. "notNull": true,
  770. "autoincrement": false,
  771. "default": null,
  772. "generated": null,
  773. "name": "sandboxes",
  774. "entityType": "columns",
  775. "table": "project"
  776. },
  777. {
  778. "type": "text",
  779. "notNull": false,
  780. "autoincrement": false,
  781. "default": null,
  782. "generated": null,
  783. "name": "commands",
  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": "session_id",
  794. "entityType": "columns",
  795. "table": "instruction_checkpoint"
  796. },
  797. {
  798. "type": "text",
  799. "notNull": true,
  800. "autoincrement": false,
  801. "default": null,
  802. "generated": null,
  803. "name": "baseline",
  804. "entityType": "columns",
  805. "table": "instruction_checkpoint"
  806. },
  807. {
  808. "type": "text",
  809. "notNull": true,
  810. "autoincrement": false,
  811. "default": null,
  812. "generated": null,
  813. "name": "snapshot",
  814. "entityType": "columns",
  815. "table": "instruction_checkpoint"
  816. },
  817. {
  818. "type": "integer",
  819. "notNull": true,
  820. "autoincrement": false,
  821. "default": null,
  822. "generated": null,
  823. "name": "baseline_seq",
  824. "entityType": "columns",
  825. "table": "instruction_checkpoint"
  826. },
  827. {
  828. "type": "text",
  829. "notNull": true,
  830. "autoincrement": false,
  831. "default": null,
  832. "generated": null,
  833. "name": "session_id",
  834. "entityType": "columns",
  835. "table": "instruction_entry"
  836. },
  837. {
  838. "type": "text",
  839. "notNull": true,
  840. "autoincrement": false,
  841. "default": null,
  842. "generated": null,
  843. "name": "key",
  844. "entityType": "columns",
  845. "table": "instruction_entry"
  846. },
  847. {
  848. "type": "text",
  849. "notNull": true,
  850. "autoincrement": false,
  851. "default": null,
  852. "generated": null,
  853. "name": "value",
  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": "id",
  884. "entityType": "columns",
  885. "table": "message"
  886. },
  887. {
  888. "type": "text",
  889. "notNull": true,
  890. "autoincrement": false,
  891. "default": null,
  892. "generated": null,
  893. "name": "session_id",
  894. "entityType": "columns",
  895. "table": "message"
  896. },
  897. {
  898. "type": "integer",
  899. "notNull": true,
  900. "autoincrement": false,
  901. "default": null,
  902. "generated": null,
  903. "name": "time_created",
  904. "entityType": "columns",
  905. "table": "message"
  906. },
  907. {
  908. "type": "integer",
  909. "notNull": true,
  910. "autoincrement": false,
  911. "default": null,
  912. "generated": null,
  913. "name": "time_updated",
  914. "entityType": "columns",
  915. "table": "message"
  916. },
  917. {
  918. "type": "text",
  919. "notNull": true,
  920. "autoincrement": false,
  921. "default": null,
  922. "generated": null,
  923. "name": "data",
  924. "entityType": "columns",
  925. "table": "message"
  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": "part"
  936. },
  937. {
  938. "type": "text",
  939. "notNull": true,
  940. "autoincrement": false,
  941. "default": null,
  942. "generated": null,
  943. "name": "message_id",
  944. "entityType": "columns",
  945. "table": "part"
  946. },
  947. {
  948. "type": "text",
  949. "notNull": true,
  950. "autoincrement": false,
  951. "default": null,
  952. "generated": null,
  953. "name": "session_id",
  954. "entityType": "columns",
  955. "table": "part"
  956. },
  957. {
  958. "type": "integer",
  959. "notNull": true,
  960. "autoincrement": false,
  961. "default": null,
  962. "generated": null,
  963. "name": "time_created",
  964. "entityType": "columns",
  965. "table": "part"
  966. },
  967. {
  968. "type": "integer",
  969. "notNull": true,
  970. "autoincrement": false,
  971. "default": null,
  972. "generated": null,
  973. "name": "time_updated",
  974. "entityType": "columns",
  975. "table": "part"
  976. },
  977. {
  978. "type": "text",
  979. "notNull": true,
  980. "autoincrement": false,
  981. "default": null,
  982. "generated": null,
  983. "name": "data",
  984. "entityType": "columns",
  985. "table": "part"
  986. },
  987. {
  988. "type": "text",
  989. "notNull": false,
  990. "autoincrement": false,
  991. "default": null,
  992. "generated": null,
  993. "name": "id",
  994. "entityType": "columns",
  995. "table": "session_input"
  996. },
  997. {
  998. "type": "text",
  999. "notNull": true,
  1000. "autoincrement": false,
  1001. "default": null,
  1002. "generated": null,
  1003. "name": "session_id",
  1004. "entityType": "columns",
  1005. "table": "session_input"
  1006. },
  1007. {
  1008. "type": "text",
  1009. "notNull": true,
  1010. "autoincrement": false,
  1011. "default": null,
  1012. "generated": null,
  1013. "name": "type",
  1014. "entityType": "columns",
  1015. "table": "session_input"
  1016. },
  1017. {
  1018. "type": "text",
  1019. "notNull": false,
  1020. "autoincrement": false,
  1021. "default": null,
  1022. "generated": null,
  1023. "name": "prompt",
  1024. "entityType": "columns",
  1025. "table": "session_input"
  1026. },
  1027. {
  1028. "type": "text",
  1029. "notNull": false,
  1030. "autoincrement": false,
  1031. "default": null,
  1032. "generated": null,
  1033. "name": "delivery",
  1034. "entityType": "columns",
  1035. "table": "session_input"
  1036. },
  1037. {
  1038. "type": "integer",
  1039. "notNull": true,
  1040. "autoincrement": false,
  1041. "default": null,
  1042. "generated": null,
  1043. "name": "admitted_seq",
  1044. "entityType": "columns",
  1045. "table": "session_input"
  1046. },
  1047. {
  1048. "type": "integer",
  1049. "notNull": false,
  1050. "autoincrement": false,
  1051. "default": null,
  1052. "generated": null,
  1053. "name": "promoted_seq",
  1054. "entityType": "columns",
  1055. "table": "session_input"
  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_input"
  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_message"
  1076. },
  1077. {
  1078. "type": "text",
  1079. "notNull": true,
  1080. "autoincrement": false,
  1081. "default": null,
  1082. "generated": null,
  1083. "name": "session_id",
  1084. "entityType": "columns",
  1085. "table": "session_message"
  1086. },
  1087. {
  1088. "type": "text",
  1089. "notNull": true,
  1090. "autoincrement": false,
  1091. "default": null,
  1092. "generated": null,
  1093. "name": "type",
  1094. "entityType": "columns",
  1095. "table": "session_message"
  1096. },
  1097. {
  1098. "type": "integer",
  1099. "notNull": true,
  1100. "autoincrement": false,
  1101. "default": null,
  1102. "generated": null,
  1103. "name": "seq",
  1104. "entityType": "columns",
  1105. "table": "session_message"
  1106. },
  1107. {
  1108. "type": "integer",
  1109. "notNull": true,
  1110. "autoincrement": false,
  1111. "default": null,
  1112. "generated": null,
  1113. "name": "time_created",
  1114. "entityType": "columns",
  1115. "table": "session_message"
  1116. },
  1117. {
  1118. "type": "integer",
  1119. "notNull": true,
  1120. "autoincrement": false,
  1121. "default": null,
  1122. "generated": null,
  1123. "name": "time_updated",
  1124. "entityType": "columns",
  1125. "table": "session_message"
  1126. },
  1127. {
  1128. "type": "text",
  1129. "notNull": true,
  1130. "autoincrement": false,
  1131. "default": null,
  1132. "generated": null,
  1133. "name": "data",
  1134. "entityType": "columns",
  1135. "table": "session_message"
  1136. },
  1137. {
  1138. "type": "text",
  1139. "notNull": false,
  1140. "autoincrement": false,
  1141. "default": null,
  1142. "generated": null,
  1143. "name": "id",
  1144. "entityType": "columns",
  1145. "table": "session"
  1146. },
  1147. {
  1148. "type": "text",
  1149. "notNull": true,
  1150. "autoincrement": false,
  1151. "default": null,
  1152. "generated": null,
  1153. "name": "project_id",
  1154. "entityType": "columns",
  1155. "table": "session"
  1156. },
  1157. {
  1158. "type": "text",
  1159. "notNull": false,
  1160. "autoincrement": false,
  1161. "default": null,
  1162. "generated": null,
  1163. "name": "workspace_id",
  1164. "entityType": "columns",
  1165. "table": "session"
  1166. },
  1167. {
  1168. "type": "text",
  1169. "notNull": false,
  1170. "autoincrement": false,
  1171. "default": null,
  1172. "generated": null,
  1173. "name": "parent_id",
  1174. "entityType": "columns",
  1175. "table": "session"
  1176. },
  1177. {
  1178. "type": "text",
  1179. "notNull": false,
  1180. "autoincrement": false,
  1181. "default": null,
  1182. "generated": null,
  1183. "name": "fork_session_id",
  1184. "entityType": "columns",
  1185. "table": "session"
  1186. },
  1187. {
  1188. "type": "text",
  1189. "notNull": false,
  1190. "autoincrement": false,
  1191. "default": null,
  1192. "generated": null,
  1193. "name": "fork_message_id",
  1194. "entityType": "columns",
  1195. "table": "session"
  1196. },
  1197. {
  1198. "type": "text",
  1199. "notNull": true,
  1200. "autoincrement": false,
  1201. "default": null,
  1202. "generated": null,
  1203. "name": "slug",
  1204. "entityType": "columns",
  1205. "table": "session"
  1206. },
  1207. {
  1208. "type": "text",
  1209. "notNull": true,
  1210. "autoincrement": false,
  1211. "default": null,
  1212. "generated": null,
  1213. "name": "directory",
  1214. "entityType": "columns",
  1215. "table": "session"
  1216. },
  1217. {
  1218. "type": "text",
  1219. "notNull": false,
  1220. "autoincrement": false,
  1221. "default": null,
  1222. "generated": null,
  1223. "name": "path",
  1224. "entityType": "columns",
  1225. "table": "session"
  1226. },
  1227. {
  1228. "type": "text",
  1229. "notNull": true,
  1230. "autoincrement": false,
  1231. "default": null,
  1232. "generated": null,
  1233. "name": "title",
  1234. "entityType": "columns",
  1235. "table": "session"
  1236. },
  1237. {
  1238. "type": "text",
  1239. "notNull": true,
  1240. "autoincrement": false,
  1241. "default": null,
  1242. "generated": null,
  1243. "name": "version",
  1244. "entityType": "columns",
  1245. "table": "session"
  1246. },
  1247. {
  1248. "type": "text",
  1249. "notNull": false,
  1250. "autoincrement": false,
  1251. "default": null,
  1252. "generated": null,
  1253. "name": "share_url",
  1254. "entityType": "columns",
  1255. "table": "session"
  1256. },
  1257. {
  1258. "type": "integer",
  1259. "notNull": false,
  1260. "autoincrement": false,
  1261. "default": null,
  1262. "generated": null,
  1263. "name": "summary_additions",
  1264. "entityType": "columns",
  1265. "table": "session"
  1266. },
  1267. {
  1268. "type": "integer",
  1269. "notNull": false,
  1270. "autoincrement": false,
  1271. "default": null,
  1272. "generated": null,
  1273. "name": "summary_deletions",
  1274. "entityType": "columns",
  1275. "table": "session"
  1276. },
  1277. {
  1278. "type": "integer",
  1279. "notNull": false,
  1280. "autoincrement": false,
  1281. "default": null,
  1282. "generated": null,
  1283. "name": "summary_files",
  1284. "entityType": "columns",
  1285. "table": "session"
  1286. },
  1287. {
  1288. "type": "text",
  1289. "notNull": false,
  1290. "autoincrement": false,
  1291. "default": null,
  1292. "generated": null,
  1293. "name": "summary_diffs",
  1294. "entityType": "columns",
  1295. "table": "session"
  1296. },
  1297. {
  1298. "type": "text",
  1299. "notNull": false,
  1300. "autoincrement": false,
  1301. "default": null,
  1302. "generated": null,
  1303. "name": "metadata",
  1304. "entityType": "columns",
  1305. "table": "session"
  1306. },
  1307. {
  1308. "type": "real",
  1309. "notNull": true,
  1310. "autoincrement": false,
  1311. "default": "0",
  1312. "generated": null,
  1313. "name": "cost",
  1314. "entityType": "columns",
  1315. "table": "session"
  1316. },
  1317. {
  1318. "type": "integer",
  1319. "notNull": true,
  1320. "autoincrement": false,
  1321. "default": "0",
  1322. "generated": null,
  1323. "name": "tokens_input",
  1324. "entityType": "columns",
  1325. "table": "session"
  1326. },
  1327. {
  1328. "type": "integer",
  1329. "notNull": true,
  1330. "autoincrement": false,
  1331. "default": "0",
  1332. "generated": null,
  1333. "name": "tokens_output",
  1334. "entityType": "columns",
  1335. "table": "session"
  1336. },
  1337. {
  1338. "type": "integer",
  1339. "notNull": true,
  1340. "autoincrement": false,
  1341. "default": "0",
  1342. "generated": null,
  1343. "name": "tokens_reasoning",
  1344. "entityType": "columns",
  1345. "table": "session"
  1346. },
  1347. {
  1348. "type": "integer",
  1349. "notNull": true,
  1350. "autoincrement": false,
  1351. "default": "0",
  1352. "generated": null,
  1353. "name": "tokens_cache_read",
  1354. "entityType": "columns",
  1355. "table": "session"
  1356. },
  1357. {
  1358. "type": "integer",
  1359. "notNull": true,
  1360. "autoincrement": false,
  1361. "default": "0",
  1362. "generated": null,
  1363. "name": "tokens_cache_write",
  1364. "entityType": "columns",
  1365. "table": "session"
  1366. },
  1367. {
  1368. "type": "text",
  1369. "notNull": false,
  1370. "autoincrement": false,
  1371. "default": null,
  1372. "generated": null,
  1373. "name": "revert",
  1374. "entityType": "columns",
  1375. "table": "session"
  1376. },
  1377. {
  1378. "type": "text",
  1379. "notNull": false,
  1380. "autoincrement": false,
  1381. "default": null,
  1382. "generated": null,
  1383. "name": "permission",
  1384. "entityType": "columns",
  1385. "table": "session"
  1386. },
  1387. {
  1388. "type": "text",
  1389. "notNull": false,
  1390. "autoincrement": false,
  1391. "default": null,
  1392. "generated": null,
  1393. "name": "agent",
  1394. "entityType": "columns",
  1395. "table": "session"
  1396. },
  1397. {
  1398. "type": "text",
  1399. "notNull": false,
  1400. "autoincrement": false,
  1401. "default": null,
  1402. "generated": null,
  1403. "name": "model",
  1404. "entityType": "columns",
  1405. "table": "session"
  1406. },
  1407. {
  1408. "type": "integer",
  1409. "notNull": true,
  1410. "autoincrement": false,
  1411. "default": null,
  1412. "generated": null,
  1413. "name": "time_created",
  1414. "entityType": "columns",
  1415. "table": "session"
  1416. },
  1417. {
  1418. "type": "integer",
  1419. "notNull": true,
  1420. "autoincrement": false,
  1421. "default": null,
  1422. "generated": null,
  1423. "name": "time_updated",
  1424. "entityType": "columns",
  1425. "table": "session"
  1426. },
  1427. {
  1428. "type": "integer",
  1429. "notNull": false,
  1430. "autoincrement": false,
  1431. "default": null,
  1432. "generated": null,
  1433. "name": "time_compacting",
  1434. "entityType": "columns",
  1435. "table": "session"
  1436. },
  1437. {
  1438. "type": "integer",
  1439. "notNull": false,
  1440. "autoincrement": false,
  1441. "default": null,
  1442. "generated": null,
  1443. "name": "time_archived",
  1444. "entityType": "columns",
  1445. "table": "session"
  1446. },
  1447. {
  1448. "type": "text",
  1449. "notNull": true,
  1450. "autoincrement": false,
  1451. "default": null,
  1452. "generated": null,
  1453. "name": "session_id",
  1454. "entityType": "columns",
  1455. "table": "todo"
  1456. },
  1457. {
  1458. "type": "text",
  1459. "notNull": true,
  1460. "autoincrement": false,
  1461. "default": null,
  1462. "generated": null,
  1463. "name": "content",
  1464. "entityType": "columns",
  1465. "table": "todo"
  1466. },
  1467. {
  1468. "type": "text",
  1469. "notNull": true,
  1470. "autoincrement": false,
  1471. "default": null,
  1472. "generated": null,
  1473. "name": "status",
  1474. "entityType": "columns",
  1475. "table": "todo"
  1476. },
  1477. {
  1478. "type": "text",
  1479. "notNull": true,
  1480. "autoincrement": false,
  1481. "default": null,
  1482. "generated": null,
  1483. "name": "priority",
  1484. "entityType": "columns",
  1485. "table": "todo"
  1486. },
  1487. {
  1488. "type": "integer",
  1489. "notNull": true,
  1490. "autoincrement": false,
  1491. "default": null,
  1492. "generated": null,
  1493. "name": "position",
  1494. "entityType": "columns",
  1495. "table": "todo"
  1496. },
  1497. {
  1498. "type": "integer",
  1499. "notNull": true,
  1500. "autoincrement": false,
  1501. "default": null,
  1502. "generated": null,
  1503. "name": "time_created",
  1504. "entityType": "columns",
  1505. "table": "todo"
  1506. },
  1507. {
  1508. "type": "integer",
  1509. "notNull": true,
  1510. "autoincrement": false,
  1511. "default": null,
  1512. "generated": null,
  1513. "name": "time_updated",
  1514. "entityType": "columns",
  1515. "table": "todo"
  1516. },
  1517. {
  1518. "type": "text",
  1519. "notNull": false,
  1520. "autoincrement": false,
  1521. "default": null,
  1522. "generated": null,
  1523. "name": "session_id",
  1524. "entityType": "columns",
  1525. "table": "session_share"
  1526. },
  1527. {
  1528. "type": "text",
  1529. "notNull": true,
  1530. "autoincrement": false,
  1531. "default": null,
  1532. "generated": null,
  1533. "name": "id",
  1534. "entityType": "columns",
  1535. "table": "session_share"
  1536. },
  1537. {
  1538. "type": "text",
  1539. "notNull": true,
  1540. "autoincrement": false,
  1541. "default": null,
  1542. "generated": null,
  1543. "name": "secret",
  1544. "entityType": "columns",
  1545. "table": "session_share"
  1546. },
  1547. {
  1548. "type": "text",
  1549. "notNull": true,
  1550. "autoincrement": false,
  1551. "default": null,
  1552. "generated": null,
  1553. "name": "url",
  1554. "entityType": "columns",
  1555. "table": "session_share"
  1556. },
  1557. {
  1558. "type": "integer",
  1559. "notNull": true,
  1560. "autoincrement": false,
  1561. "default": null,
  1562. "generated": null,
  1563. "name": "time_created",
  1564. "entityType": "columns",
  1565. "table": "session_share"
  1566. },
  1567. {
  1568. "type": "integer",
  1569. "notNull": true,
  1570. "autoincrement": false,
  1571. "default": null,
  1572. "generated": null,
  1573. "name": "time_updated",
  1574. "entityType": "columns",
  1575. "table": "session_share"
  1576. },
  1577. {
  1578. "columns": ["project_id"],
  1579. "tableTo": "project",
  1580. "columnsTo": ["id"],
  1581. "onUpdate": "NO ACTION",
  1582. "onDelete": "CASCADE",
  1583. "nameExplicit": false,
  1584. "name": "fk_workspace_project_id_project_id_fk",
  1585. "entityType": "fks",
  1586. "table": "workspace"
  1587. },
  1588. {
  1589. "columns": ["active_account_id"],
  1590. "tableTo": "account",
  1591. "columnsTo": ["id"],
  1592. "onUpdate": "NO ACTION",
  1593. "onDelete": "SET NULL",
  1594. "nameExplicit": false,
  1595. "name": "fk_account_state_active_account_id_account_id_fk",
  1596. "entityType": "fks",
  1597. "table": "account_state"
  1598. },
  1599. {
  1600. "columns": ["aggregate_id"],
  1601. "tableTo": "event_sequence",
  1602. "columnsTo": ["aggregate_id"],
  1603. "onUpdate": "NO ACTION",
  1604. "onDelete": "CASCADE",
  1605. "nameExplicit": false,
  1606. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1607. "entityType": "fks",
  1608. "table": "event"
  1609. },
  1610. {
  1611. "columns": ["project_id"],
  1612. "tableTo": "project",
  1613. "columnsTo": ["id"],
  1614. "onUpdate": "NO ACTION",
  1615. "onDelete": "CASCADE",
  1616. "nameExplicit": false,
  1617. "name": "fk_permission_project_id_project_id_fk",
  1618. "entityType": "fks",
  1619. "table": "permission"
  1620. },
  1621. {
  1622. "columns": ["project_id"],
  1623. "tableTo": "project",
  1624. "columnsTo": ["id"],
  1625. "onUpdate": "NO ACTION",
  1626. "onDelete": "CASCADE",
  1627. "nameExplicit": false,
  1628. "name": "fk_project_directory_project_id_project_id_fk",
  1629. "entityType": "fks",
  1630. "table": "project_directory"
  1631. },
  1632. {
  1633. "columns": ["session_id"],
  1634. "tableTo": "session",
  1635. "columnsTo": ["id"],
  1636. "onUpdate": "NO ACTION",
  1637. "onDelete": "CASCADE",
  1638. "nameExplicit": false,
  1639. "name": "fk_instruction_checkpoint_session_id_session_id_fk",
  1640. "entityType": "fks",
  1641. "table": "instruction_checkpoint"
  1642. },
  1643. {
  1644. "columns": ["session_id"],
  1645. "tableTo": "session",
  1646. "columnsTo": ["id"],
  1647. "onUpdate": "NO ACTION",
  1648. "onDelete": "CASCADE",
  1649. "nameExplicit": false,
  1650. "name": "fk_instruction_entry_session_id_session_id_fk",
  1651. "entityType": "fks",
  1652. "table": "instruction_entry"
  1653. },
  1654. {
  1655. "columns": ["session_id"],
  1656. "tableTo": "session",
  1657. "columnsTo": ["id"],
  1658. "onUpdate": "NO ACTION",
  1659. "onDelete": "CASCADE",
  1660. "nameExplicit": false,
  1661. "name": "fk_message_session_id_session_id_fk",
  1662. "entityType": "fks",
  1663. "table": "message"
  1664. },
  1665. {
  1666. "columns": ["message_id"],
  1667. "tableTo": "message",
  1668. "columnsTo": ["id"],
  1669. "onUpdate": "NO ACTION",
  1670. "onDelete": "CASCADE",
  1671. "nameExplicit": false,
  1672. "name": "fk_part_message_id_message_id_fk",
  1673. "entityType": "fks",
  1674. "table": "part"
  1675. },
  1676. {
  1677. "columns": ["session_id"],
  1678. "tableTo": "session",
  1679. "columnsTo": ["id"],
  1680. "onUpdate": "NO ACTION",
  1681. "onDelete": "CASCADE",
  1682. "nameExplicit": false,
  1683. "name": "fk_session_input_session_id_session_id_fk",
  1684. "entityType": "fks",
  1685. "table": "session_input"
  1686. },
  1687. {
  1688. "columns": ["session_id"],
  1689. "tableTo": "session",
  1690. "columnsTo": ["id"],
  1691. "onUpdate": "NO ACTION",
  1692. "onDelete": "CASCADE",
  1693. "nameExplicit": false,
  1694. "name": "fk_session_message_session_id_session_id_fk",
  1695. "entityType": "fks",
  1696. "table": "session_message"
  1697. },
  1698. {
  1699. "columns": ["project_id"],
  1700. "tableTo": "project",
  1701. "columnsTo": ["id"],
  1702. "onUpdate": "NO ACTION",
  1703. "onDelete": "CASCADE",
  1704. "nameExplicit": false,
  1705. "name": "fk_session_project_id_project_id_fk",
  1706. "entityType": "fks",
  1707. "table": "session"
  1708. },
  1709. {
  1710. "columns": ["session_id"],
  1711. "tableTo": "session",
  1712. "columnsTo": ["id"],
  1713. "onUpdate": "NO ACTION",
  1714. "onDelete": "CASCADE",
  1715. "nameExplicit": false,
  1716. "name": "fk_todo_session_id_session_id_fk",
  1717. "entityType": "fks",
  1718. "table": "todo"
  1719. },
  1720. {
  1721. "columns": ["session_id"],
  1722. "tableTo": "session",
  1723. "columnsTo": ["id"],
  1724. "onUpdate": "NO ACTION",
  1725. "onDelete": "CASCADE",
  1726. "nameExplicit": false,
  1727. "name": "fk_session_share_session_id_session_id_fk",
  1728. "entityType": "fks",
  1729. "table": "session_share"
  1730. },
  1731. {
  1732. "columns": ["email", "url"],
  1733. "nameExplicit": false,
  1734. "name": "control_account_pk",
  1735. "entityType": "pks",
  1736. "table": "control_account"
  1737. },
  1738. {
  1739. "columns": ["project_id", "directory"],
  1740. "nameExplicit": false,
  1741. "name": "project_directory_pk",
  1742. "entityType": "pks",
  1743. "table": "project_directory"
  1744. },
  1745. {
  1746. "columns": ["session_id", "key"],
  1747. "nameExplicit": false,
  1748. "name": "instruction_entry_pk",
  1749. "entityType": "pks",
  1750. "table": "instruction_entry"
  1751. },
  1752. {
  1753. "columns": ["session_id", "position"],
  1754. "nameExplicit": false,
  1755. "name": "todo_pk",
  1756. "entityType": "pks",
  1757. "table": "todo"
  1758. },
  1759. {
  1760. "columns": ["id"],
  1761. "nameExplicit": false,
  1762. "name": "workspace_pk",
  1763. "table": "workspace",
  1764. "entityType": "pks"
  1765. },
  1766. {
  1767. "columns": ["name"],
  1768. "nameExplicit": false,
  1769. "name": "data_migration_pk",
  1770. "table": "data_migration",
  1771. "entityType": "pks"
  1772. },
  1773. {
  1774. "columns": ["id"],
  1775. "nameExplicit": false,
  1776. "name": "account_state_pk",
  1777. "table": "account_state",
  1778. "entityType": "pks"
  1779. },
  1780. {
  1781. "columns": ["id"],
  1782. "nameExplicit": false,
  1783. "name": "account_pk",
  1784. "table": "account",
  1785. "entityType": "pks"
  1786. },
  1787. {
  1788. "columns": ["id"],
  1789. "nameExplicit": false,
  1790. "name": "credential_pk",
  1791. "table": "credential",
  1792. "entityType": "pks"
  1793. },
  1794. {
  1795. "columns": ["aggregate_id"],
  1796. "nameExplicit": false,
  1797. "name": "event_sequence_pk",
  1798. "table": "event_sequence",
  1799. "entityType": "pks"
  1800. },
  1801. {
  1802. "columns": ["id"],
  1803. "nameExplicit": false,
  1804. "name": "event_pk",
  1805. "table": "event",
  1806. "entityType": "pks"
  1807. },
  1808. {
  1809. "columns": ["id"],
  1810. "nameExplicit": false,
  1811. "name": "permission_pk",
  1812. "table": "permission",
  1813. "entityType": "pks"
  1814. },
  1815. {
  1816. "columns": ["id"],
  1817. "nameExplicit": false,
  1818. "name": "project_pk",
  1819. "table": "project",
  1820. "entityType": "pks"
  1821. },
  1822. {
  1823. "columns": ["session_id"],
  1824. "nameExplicit": false,
  1825. "name": "instruction_checkpoint_pk",
  1826. "table": "instruction_checkpoint",
  1827. "entityType": "pks"
  1828. },
  1829. {
  1830. "columns": ["id"],
  1831. "nameExplicit": false,
  1832. "name": "message_pk",
  1833. "table": "message",
  1834. "entityType": "pks"
  1835. },
  1836. {
  1837. "columns": ["id"],
  1838. "nameExplicit": false,
  1839. "name": "part_pk",
  1840. "table": "part",
  1841. "entityType": "pks"
  1842. },
  1843. {
  1844. "columns": ["id"],
  1845. "nameExplicit": false,
  1846. "name": "session_input_pk",
  1847. "table": "session_input",
  1848. "entityType": "pks"
  1849. },
  1850. {
  1851. "columns": ["id"],
  1852. "nameExplicit": false,
  1853. "name": "session_message_pk",
  1854. "table": "session_message",
  1855. "entityType": "pks"
  1856. },
  1857. {
  1858. "columns": ["id"],
  1859. "nameExplicit": false,
  1860. "name": "session_pk",
  1861. "table": "session",
  1862. "entityType": "pks"
  1863. },
  1864. {
  1865. "columns": ["session_id"],
  1866. "nameExplicit": false,
  1867. "name": "session_share_pk",
  1868. "table": "session_share",
  1869. "entityType": "pks"
  1870. },
  1871. {
  1872. "columns": [
  1873. {
  1874. "value": "aggregate_id",
  1875. "isExpression": false
  1876. },
  1877. {
  1878. "value": "seq",
  1879. "isExpression": false
  1880. }
  1881. ],
  1882. "isUnique": true,
  1883. "where": null,
  1884. "origin": "manual",
  1885. "name": "event_aggregate_seq_idx",
  1886. "entityType": "indexes",
  1887. "table": "event"
  1888. },
  1889. {
  1890. "columns": [
  1891. {
  1892. "value": "aggregate_id",
  1893. "isExpression": false
  1894. },
  1895. {
  1896. "value": "type",
  1897. "isExpression": false
  1898. },
  1899. {
  1900. "value": "seq",
  1901. "isExpression": false
  1902. }
  1903. ],
  1904. "isUnique": false,
  1905. "where": null,
  1906. "origin": "manual",
  1907. "name": "event_aggregate_type_seq_idx",
  1908. "entityType": "indexes",
  1909. "table": "event"
  1910. },
  1911. {
  1912. "columns": [
  1913. {
  1914. "value": "project_id",
  1915. "isExpression": false
  1916. },
  1917. {
  1918. "value": "action",
  1919. "isExpression": false
  1920. },
  1921. {
  1922. "value": "resource",
  1923. "isExpression": false
  1924. }
  1925. ],
  1926. "isUnique": true,
  1927. "where": null,
  1928. "origin": "manual",
  1929. "name": "permission_project_action_resource_idx",
  1930. "entityType": "indexes",
  1931. "table": "permission"
  1932. },
  1933. {
  1934. "columns": [
  1935. {
  1936. "value": "session_id",
  1937. "isExpression": false
  1938. },
  1939. {
  1940. "value": "time_created",
  1941. "isExpression": false
  1942. },
  1943. {
  1944. "value": "id",
  1945. "isExpression": false
  1946. }
  1947. ],
  1948. "isUnique": false,
  1949. "where": null,
  1950. "origin": "manual",
  1951. "name": "message_session_time_created_id_idx",
  1952. "entityType": "indexes",
  1953. "table": "message"
  1954. },
  1955. {
  1956. "columns": [
  1957. {
  1958. "value": "message_id",
  1959. "isExpression": false
  1960. },
  1961. {
  1962. "value": "id",
  1963. "isExpression": false
  1964. }
  1965. ],
  1966. "isUnique": false,
  1967. "where": null,
  1968. "origin": "manual",
  1969. "name": "part_message_id_id_idx",
  1970. "entityType": "indexes",
  1971. "table": "part"
  1972. },
  1973. {
  1974. "columns": [
  1975. {
  1976. "value": "session_id",
  1977. "isExpression": false
  1978. }
  1979. ],
  1980. "isUnique": false,
  1981. "where": null,
  1982. "origin": "manual",
  1983. "name": "part_session_idx",
  1984. "entityType": "indexes",
  1985. "table": "part"
  1986. },
  1987. {
  1988. "columns": [
  1989. {
  1990. "value": "session_id",
  1991. "isExpression": false
  1992. },
  1993. {
  1994. "value": "promoted_seq",
  1995. "isExpression": false
  1996. },
  1997. {
  1998. "value": "type",
  1999. "isExpression": false
  2000. },
  2001. {
  2002. "value": "delivery",
  2003. "isExpression": false
  2004. },
  2005. {
  2006. "value": "admitted_seq",
  2007. "isExpression": false
  2008. }
  2009. ],
  2010. "isUnique": false,
  2011. "where": null,
  2012. "origin": "manual",
  2013. "name": "session_input_session_pending_type_delivery_seq_idx",
  2014. "entityType": "indexes",
  2015. "table": "session_input"
  2016. },
  2017. {
  2018. "columns": [
  2019. {
  2020. "value": "session_id",
  2021. "isExpression": false
  2022. }
  2023. ],
  2024. "isUnique": true,
  2025. "where": "\"session_input\".\"type\" = 'compaction' and \"session_input\".\"promoted_seq\" is null",
  2026. "origin": "manual",
  2027. "name": "session_input_session_pending_compaction_idx",
  2028. "entityType": "indexes",
  2029. "table": "session_input"
  2030. },
  2031. {
  2032. "columns": [
  2033. {
  2034. "value": "session_id",
  2035. "isExpression": false
  2036. },
  2037. {
  2038. "value": "admitted_seq",
  2039. "isExpression": false
  2040. }
  2041. ],
  2042. "isUnique": true,
  2043. "where": null,
  2044. "origin": "manual",
  2045. "name": "session_input_session_admitted_seq_idx",
  2046. "entityType": "indexes",
  2047. "table": "session_input"
  2048. },
  2049. {
  2050. "columns": [
  2051. {
  2052. "value": "session_id",
  2053. "isExpression": false
  2054. },
  2055. {
  2056. "value": "promoted_seq",
  2057. "isExpression": false
  2058. }
  2059. ],
  2060. "isUnique": true,
  2061. "where": null,
  2062. "origin": "manual",
  2063. "name": "session_input_session_promoted_seq_idx",
  2064. "entityType": "indexes",
  2065. "table": "session_input"
  2066. },
  2067. {
  2068. "columns": [
  2069. {
  2070. "value": "session_id",
  2071. "isExpression": false
  2072. },
  2073. {
  2074. "value": "seq",
  2075. "isExpression": false
  2076. }
  2077. ],
  2078. "isUnique": true,
  2079. "where": null,
  2080. "origin": "manual",
  2081. "name": "session_message_session_seq_idx",
  2082. "entityType": "indexes",
  2083. "table": "session_message"
  2084. },
  2085. {
  2086. "columns": [
  2087. {
  2088. "value": "session_id",
  2089. "isExpression": false
  2090. },
  2091. {
  2092. "value": "type",
  2093. "isExpression": false
  2094. },
  2095. {
  2096. "value": "seq",
  2097. "isExpression": false
  2098. }
  2099. ],
  2100. "isUnique": false,
  2101. "where": null,
  2102. "origin": "manual",
  2103. "name": "session_message_session_type_seq_idx",
  2104. "entityType": "indexes",
  2105. "table": "session_message"
  2106. },
  2107. {
  2108. "columns": [
  2109. {
  2110. "value": "session_id",
  2111. "isExpression": false
  2112. },
  2113. {
  2114. "value": "time_created",
  2115. "isExpression": false
  2116. },
  2117. {
  2118. "value": "id",
  2119. "isExpression": false
  2120. }
  2121. ],
  2122. "isUnique": false,
  2123. "where": null,
  2124. "origin": "manual",
  2125. "name": "session_message_session_time_created_id_idx",
  2126. "entityType": "indexes",
  2127. "table": "session_message"
  2128. },
  2129. {
  2130. "columns": [
  2131. {
  2132. "value": "time_created",
  2133. "isExpression": false
  2134. }
  2135. ],
  2136. "isUnique": false,
  2137. "where": null,
  2138. "origin": "manual",
  2139. "name": "session_message_time_created_idx",
  2140. "entityType": "indexes",
  2141. "table": "session_message"
  2142. },
  2143. {
  2144. "columns": [
  2145. {
  2146. "value": "project_id",
  2147. "isExpression": false
  2148. }
  2149. ],
  2150. "isUnique": false,
  2151. "where": null,
  2152. "origin": "manual",
  2153. "name": "session_project_idx",
  2154. "entityType": "indexes",
  2155. "table": "session"
  2156. },
  2157. {
  2158. "columns": [
  2159. {
  2160. "value": "workspace_id",
  2161. "isExpression": false
  2162. }
  2163. ],
  2164. "isUnique": false,
  2165. "where": null,
  2166. "origin": "manual",
  2167. "name": "session_workspace_idx",
  2168. "entityType": "indexes",
  2169. "table": "session"
  2170. },
  2171. {
  2172. "columns": [
  2173. {
  2174. "value": "parent_id",
  2175. "isExpression": false
  2176. }
  2177. ],
  2178. "isUnique": false,
  2179. "where": null,
  2180. "origin": "manual",
  2181. "name": "session_parent_idx",
  2182. "entityType": "indexes",
  2183. "table": "session"
  2184. },
  2185. {
  2186. "columns": [
  2187. {
  2188. "value": "session_id",
  2189. "isExpression": false
  2190. }
  2191. ],
  2192. "isUnique": false,
  2193. "where": null,
  2194. "origin": "manual",
  2195. "name": "todo_session_idx",
  2196. "entityType": "indexes",
  2197. "table": "todo"
  2198. }
  2199. ],
  2200. "renames": []
  2201. }