schema.json 46 KB

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