schema.json 49 KB

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