schema.json 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "e43ed7e2-b9fc-4178-beae-3646e4a976e1",
  5. "prevIds": [
  6. "db37a97f-9b5e-4c87-be8b-4feace35136c"
  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_boundary",
  1270. "entityType": "columns",
  1271. "table": "session"
  1272. },
  1273. {
  1274. "type": "text",
  1275. "notNull": true,
  1276. "autoincrement": false,
  1277. "default": null,
  1278. "generated": null,
  1279. "name": "slug",
  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": "directory",
  1290. "entityType": "columns",
  1291. "table": "session"
  1292. },
  1293. {
  1294. "type": "text",
  1295. "notNull": false,
  1296. "autoincrement": false,
  1297. "default": null,
  1298. "generated": null,
  1299. "name": "path",
  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": "title",
  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": "version",
  1320. "entityType": "columns",
  1321. "table": "session"
  1322. },
  1323. {
  1324. "type": "text",
  1325. "notNull": false,
  1326. "autoincrement": false,
  1327. "default": null,
  1328. "generated": null,
  1329. "name": "share_url",
  1330. "entityType": "columns",
  1331. "table": "session"
  1332. },
  1333. {
  1334. "type": "integer",
  1335. "notNull": false,
  1336. "autoincrement": false,
  1337. "default": null,
  1338. "generated": null,
  1339. "name": "summary_additions",
  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_deletions",
  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_files",
  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": "summary_diffs",
  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": "metadata",
  1380. "entityType": "columns",
  1381. "table": "session"
  1382. },
  1383. {
  1384. "type": "real",
  1385. "notNull": true,
  1386. "autoincrement": false,
  1387. "default": "0",
  1388. "generated": null,
  1389. "name": "cost",
  1390. "entityType": "columns",
  1391. "table": "session"
  1392. },
  1393. {
  1394. "type": "integer",
  1395. "notNull": true,
  1396. "autoincrement": false,
  1397. "default": "0",
  1398. "generated": null,
  1399. "name": "tokens_input",
  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_output",
  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_reasoning",
  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_cache_read",
  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_write",
  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": "revert",
  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": "permission",
  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": "agent",
  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": "model",
  1480. "entityType": "columns",
  1481. "table": "session"
  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"
  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"
  1502. },
  1503. {
  1504. "type": "integer",
  1505. "notNull": false,
  1506. "autoincrement": false,
  1507. "default": null,
  1508. "generated": null,
  1509. "name": "time_compacting",
  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_archived",
  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_suspended",
  1530. "entityType": "columns",
  1531. "table": "session"
  1532. },
  1533. {
  1534. "type": "text",
  1535. "notNull": false,
  1536. "autoincrement": false,
  1537. "default": null,
  1538. "generated": null,
  1539. "name": "session_id",
  1540. "entityType": "columns",
  1541. "table": "session_share"
  1542. },
  1543. {
  1544. "type": "text",
  1545. "notNull": true,
  1546. "autoincrement": false,
  1547. "default": null,
  1548. "generated": null,
  1549. "name": "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": "secret",
  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": "url",
  1570. "entityType": "columns",
  1571. "table": "session_share"
  1572. },
  1573. {
  1574. "type": "integer",
  1575. "notNull": true,
  1576. "autoincrement": false,
  1577. "default": null,
  1578. "generated": null,
  1579. "name": "time_created",
  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_updated",
  1590. "entityType": "columns",
  1591. "table": "session_share"
  1592. },
  1593. {
  1594. "columns": [
  1595. "project_id"
  1596. ],
  1597. "tableTo": "project",
  1598. "columnsTo": [
  1599. "id"
  1600. ],
  1601. "onUpdate": "NO ACTION",
  1602. "onDelete": "CASCADE",
  1603. "nameExplicit": false,
  1604. "name": "fk_workspace_project_id_project_id_fk",
  1605. "entityType": "fks",
  1606. "table": "workspace"
  1607. },
  1608. {
  1609. "columns": [
  1610. "active_account_id"
  1611. ],
  1612. "tableTo": "account",
  1613. "columnsTo": [
  1614. "id"
  1615. ],
  1616. "onUpdate": "NO ACTION",
  1617. "onDelete": "SET NULL",
  1618. "nameExplicit": false,
  1619. "name": "fk_account_state_active_account_id_account_id_fk",
  1620. "entityType": "fks",
  1621. "table": "account_state"
  1622. },
  1623. {
  1624. "columns": [
  1625. "aggregate_id"
  1626. ],
  1627. "tableTo": "event_sequence",
  1628. "columnsTo": [
  1629. "aggregate_id"
  1630. ],
  1631. "onUpdate": "NO ACTION",
  1632. "onDelete": "CASCADE",
  1633. "nameExplicit": false,
  1634. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1635. "entityType": "fks",
  1636. "table": "event"
  1637. },
  1638. {
  1639. "columns": [
  1640. "project_id"
  1641. ],
  1642. "tableTo": "project",
  1643. "columnsTo": [
  1644. "id"
  1645. ],
  1646. "onUpdate": "NO ACTION",
  1647. "onDelete": "CASCADE",
  1648. "nameExplicit": false,
  1649. "name": "fk_permission_project_id_project_id_fk",
  1650. "entityType": "fks",
  1651. "table": "permission"
  1652. },
  1653. {
  1654. "columns": [
  1655. "project_id"
  1656. ],
  1657. "tableTo": "project",
  1658. "columnsTo": [
  1659. "id"
  1660. ],
  1661. "onUpdate": "NO ACTION",
  1662. "onDelete": "CASCADE",
  1663. "nameExplicit": false,
  1664. "name": "fk_project_directory_project_id_project_id_fk",
  1665. "entityType": "fks",
  1666. "table": "project_directory"
  1667. },
  1668. {
  1669. "columns": [
  1670. "session_id"
  1671. ],
  1672. "tableTo": "session",
  1673. "columnsTo": [
  1674. "id"
  1675. ],
  1676. "onUpdate": "NO ACTION",
  1677. "onDelete": "CASCADE",
  1678. "nameExplicit": false,
  1679. "name": "fk_instruction_entry_session_id_session_id_fk",
  1680. "entityType": "fks",
  1681. "table": "instruction_entry"
  1682. },
  1683. {
  1684. "columns": [
  1685. "session_id"
  1686. ],
  1687. "tableTo": "session",
  1688. "columnsTo": [
  1689. "id"
  1690. ],
  1691. "onUpdate": "NO ACTION",
  1692. "onDelete": "CASCADE",
  1693. "nameExplicit": false,
  1694. "name": "fk_instruction_state_session_id_session_id_fk",
  1695. "entityType": "fks",
  1696. "table": "instruction_state"
  1697. },
  1698. {
  1699. "columns": [
  1700. "session_id"
  1701. ],
  1702. "tableTo": "session",
  1703. "columnsTo": [
  1704. "id"
  1705. ],
  1706. "onUpdate": "NO ACTION",
  1707. "onDelete": "CASCADE",
  1708. "nameExplicit": false,
  1709. "name": "fk_message_session_id_session_id_fk",
  1710. "entityType": "fks",
  1711. "table": "message"
  1712. },
  1713. {
  1714. "columns": [
  1715. "message_id"
  1716. ],
  1717. "tableTo": "message",
  1718. "columnsTo": [
  1719. "id"
  1720. ],
  1721. "onUpdate": "NO ACTION",
  1722. "onDelete": "CASCADE",
  1723. "nameExplicit": false,
  1724. "name": "fk_part_message_id_message_id_fk",
  1725. "entityType": "fks",
  1726. "table": "part"
  1727. },
  1728. {
  1729. "columns": [
  1730. "session_id"
  1731. ],
  1732. "tableTo": "session",
  1733. "columnsTo": [
  1734. "id"
  1735. ],
  1736. "onUpdate": "NO ACTION",
  1737. "onDelete": "CASCADE",
  1738. "nameExplicit": false,
  1739. "name": "fk_session_message_session_id_session_id_fk",
  1740. "entityType": "fks",
  1741. "table": "session_message"
  1742. },
  1743. {
  1744. "columns": [
  1745. "session_id"
  1746. ],
  1747. "tableTo": "session",
  1748. "columnsTo": [
  1749. "id"
  1750. ],
  1751. "onUpdate": "NO ACTION",
  1752. "onDelete": "CASCADE",
  1753. "nameExplicit": false,
  1754. "name": "fk_session_input_session_id_session_id_fk",
  1755. "entityType": "fks",
  1756. "table": "session_pending"
  1757. },
  1758. {
  1759. "columns": [
  1760. "project_id"
  1761. ],
  1762. "tableTo": "project",
  1763. "columnsTo": [
  1764. "id"
  1765. ],
  1766. "onUpdate": "NO ACTION",
  1767. "onDelete": "CASCADE",
  1768. "nameExplicit": false,
  1769. "name": "fk_session_project_id_project_id_fk",
  1770. "entityType": "fks",
  1771. "table": "session"
  1772. },
  1773. {
  1774. "columns": [
  1775. "session_id"
  1776. ],
  1777. "tableTo": "session",
  1778. "columnsTo": [
  1779. "id"
  1780. ],
  1781. "onUpdate": "NO ACTION",
  1782. "onDelete": "CASCADE",
  1783. "nameExplicit": false,
  1784. "name": "fk_session_share_session_id_session_id_fk",
  1785. "entityType": "fks",
  1786. "table": "session_share"
  1787. },
  1788. {
  1789. "columns": [
  1790. "email",
  1791. "url"
  1792. ],
  1793. "nameExplicit": false,
  1794. "name": "control_account_pk",
  1795. "entityType": "pks",
  1796. "table": "control_account"
  1797. },
  1798. {
  1799. "columns": [
  1800. "project_id",
  1801. "directory"
  1802. ],
  1803. "nameExplicit": false,
  1804. "name": "project_directory_pk",
  1805. "entityType": "pks",
  1806. "table": "project_directory"
  1807. },
  1808. {
  1809. "columns": [
  1810. "session_id",
  1811. "key"
  1812. ],
  1813. "nameExplicit": false,
  1814. "name": "instruction_entry_pk",
  1815. "entityType": "pks",
  1816. "table": "instruction_entry"
  1817. },
  1818. {
  1819. "columns": [
  1820. "id"
  1821. ],
  1822. "nameExplicit": false,
  1823. "name": "workspace_pk",
  1824. "table": "workspace",
  1825. "entityType": "pks"
  1826. },
  1827. {
  1828. "columns": [
  1829. "name"
  1830. ],
  1831. "nameExplicit": false,
  1832. "name": "data_migration_pk",
  1833. "table": "data_migration",
  1834. "entityType": "pks"
  1835. },
  1836. {
  1837. "columns": [
  1838. "id"
  1839. ],
  1840. "nameExplicit": false,
  1841. "name": "account_state_pk",
  1842. "table": "account_state",
  1843. "entityType": "pks"
  1844. },
  1845. {
  1846. "columns": [
  1847. "id"
  1848. ],
  1849. "nameExplicit": false,
  1850. "name": "account_pk",
  1851. "table": "account",
  1852. "entityType": "pks"
  1853. },
  1854. {
  1855. "columns": [
  1856. "id"
  1857. ],
  1858. "nameExplicit": false,
  1859. "name": "credential_pk",
  1860. "table": "credential",
  1861. "entityType": "pks"
  1862. },
  1863. {
  1864. "columns": [
  1865. "aggregate_id"
  1866. ],
  1867. "nameExplicit": false,
  1868. "name": "event_sequence_pk",
  1869. "table": "event_sequence",
  1870. "entityType": "pks"
  1871. },
  1872. {
  1873. "columns": [
  1874. "id"
  1875. ],
  1876. "nameExplicit": false,
  1877. "name": "event_pk",
  1878. "table": "event",
  1879. "entityType": "pks"
  1880. },
  1881. {
  1882. "columns": [
  1883. "key"
  1884. ],
  1885. "nameExplicit": false,
  1886. "name": "kv_pk",
  1887. "table": "kv",
  1888. "entityType": "pks"
  1889. },
  1890. {
  1891. "columns": [
  1892. "id"
  1893. ],
  1894. "nameExplicit": false,
  1895. "name": "permission_pk",
  1896. "table": "permission",
  1897. "entityType": "pks"
  1898. },
  1899. {
  1900. "columns": [
  1901. "id"
  1902. ],
  1903. "nameExplicit": false,
  1904. "name": "project_pk",
  1905. "table": "project",
  1906. "entityType": "pks"
  1907. },
  1908. {
  1909. "columns": [
  1910. "hash"
  1911. ],
  1912. "nameExplicit": false,
  1913. "name": "instruction_blob_pk",
  1914. "table": "instruction_blob",
  1915. "entityType": "pks"
  1916. },
  1917. {
  1918. "columns": [
  1919. "session_id"
  1920. ],
  1921. "nameExplicit": false,
  1922. "name": "instruction_state_pk",
  1923. "table": "instruction_state",
  1924. "entityType": "pks"
  1925. },
  1926. {
  1927. "columns": [
  1928. "id"
  1929. ],
  1930. "nameExplicit": false,
  1931. "name": "message_pk",
  1932. "table": "message",
  1933. "entityType": "pks"
  1934. },
  1935. {
  1936. "columns": [
  1937. "id"
  1938. ],
  1939. "nameExplicit": false,
  1940. "name": "part_pk",
  1941. "table": "part",
  1942. "entityType": "pks"
  1943. },
  1944. {
  1945. "columns": [
  1946. "id"
  1947. ],
  1948. "nameExplicit": false,
  1949. "name": "session_message_pk",
  1950. "table": "session_message",
  1951. "entityType": "pks"
  1952. },
  1953. {
  1954. "columns": [
  1955. "id"
  1956. ],
  1957. "nameExplicit": false,
  1958. "name": "session_input_pk",
  1959. "table": "session_pending",
  1960. "entityType": "pks"
  1961. },
  1962. {
  1963. "columns": [
  1964. "id"
  1965. ],
  1966. "nameExplicit": false,
  1967. "name": "session_pk",
  1968. "table": "session",
  1969. "entityType": "pks"
  1970. },
  1971. {
  1972. "columns": [
  1973. "session_id"
  1974. ],
  1975. "nameExplicit": false,
  1976. "name": "session_share_pk",
  1977. "table": "session_share",
  1978. "entityType": "pks"
  1979. },
  1980. {
  1981. "columns": [
  1982. {
  1983. "value": "aggregate_id",
  1984. "isExpression": false
  1985. },
  1986. {
  1987. "value": "seq",
  1988. "isExpression": false
  1989. }
  1990. ],
  1991. "isUnique": true,
  1992. "where": null,
  1993. "origin": "manual",
  1994. "name": "event_aggregate_seq_idx",
  1995. "entityType": "indexes",
  1996. "table": "event"
  1997. },
  1998. {
  1999. "columns": [
  2000. {
  2001. "value": "aggregate_id",
  2002. "isExpression": false
  2003. },
  2004. {
  2005. "value": "type",
  2006. "isExpression": false
  2007. },
  2008. {
  2009. "value": "seq",
  2010. "isExpression": false
  2011. }
  2012. ],
  2013. "isUnique": false,
  2014. "where": null,
  2015. "origin": "manual",
  2016. "name": "event_aggregate_type_seq_idx",
  2017. "entityType": "indexes",
  2018. "table": "event"
  2019. },
  2020. {
  2021. "columns": [
  2022. {
  2023. "value": "project_id",
  2024. "isExpression": false
  2025. },
  2026. {
  2027. "value": "action",
  2028. "isExpression": false
  2029. },
  2030. {
  2031. "value": "resource",
  2032. "isExpression": false
  2033. }
  2034. ],
  2035. "isUnique": true,
  2036. "where": null,
  2037. "origin": "manual",
  2038. "name": "permission_project_action_resource_idx",
  2039. "entityType": "indexes",
  2040. "table": "permission"
  2041. },
  2042. {
  2043. "columns": [
  2044. {
  2045. "value": "session_id",
  2046. "isExpression": false
  2047. },
  2048. {
  2049. "value": "time_created",
  2050. "isExpression": false
  2051. },
  2052. {
  2053. "value": "id",
  2054. "isExpression": false
  2055. }
  2056. ],
  2057. "isUnique": false,
  2058. "where": null,
  2059. "origin": "manual",
  2060. "name": "message_session_time_created_id_idx",
  2061. "entityType": "indexes",
  2062. "table": "message"
  2063. },
  2064. {
  2065. "columns": [
  2066. {
  2067. "value": "message_id",
  2068. "isExpression": false
  2069. },
  2070. {
  2071. "value": "id",
  2072. "isExpression": false
  2073. }
  2074. ],
  2075. "isUnique": false,
  2076. "where": null,
  2077. "origin": "manual",
  2078. "name": "part_message_id_id_idx",
  2079. "entityType": "indexes",
  2080. "table": "part"
  2081. },
  2082. {
  2083. "columns": [
  2084. {
  2085. "value": "session_id",
  2086. "isExpression": false
  2087. }
  2088. ],
  2089. "isUnique": false,
  2090. "where": null,
  2091. "origin": "manual",
  2092. "name": "part_session_idx",
  2093. "entityType": "indexes",
  2094. "table": "part"
  2095. },
  2096. {
  2097. "columns": [
  2098. {
  2099. "value": "session_id",
  2100. "isExpression": false
  2101. },
  2102. {
  2103. "value": "seq",
  2104. "isExpression": false
  2105. }
  2106. ],
  2107. "isUnique": true,
  2108. "where": null,
  2109. "origin": "manual",
  2110. "name": "session_message_session_seq_idx",
  2111. "entityType": "indexes",
  2112. "table": "session_message"
  2113. },
  2114. {
  2115. "columns": [
  2116. {
  2117. "value": "session_id",
  2118. "isExpression": false
  2119. },
  2120. {
  2121. "value": "type",
  2122. "isExpression": false
  2123. },
  2124. {
  2125. "value": "seq",
  2126. "isExpression": false
  2127. }
  2128. ],
  2129. "isUnique": false,
  2130. "where": null,
  2131. "origin": "manual",
  2132. "name": "session_message_session_type_seq_idx",
  2133. "entityType": "indexes",
  2134. "table": "session_message"
  2135. },
  2136. {
  2137. "columns": [
  2138. {
  2139. "value": "session_id",
  2140. "isExpression": false
  2141. },
  2142. {
  2143. "value": "time_created",
  2144. "isExpression": false
  2145. },
  2146. {
  2147. "value": "id",
  2148. "isExpression": false
  2149. }
  2150. ],
  2151. "isUnique": false,
  2152. "where": null,
  2153. "origin": "manual",
  2154. "name": "session_message_session_time_created_id_idx",
  2155. "entityType": "indexes",
  2156. "table": "session_message"
  2157. },
  2158. {
  2159. "columns": [
  2160. {
  2161. "value": "time_created",
  2162. "isExpression": false
  2163. }
  2164. ],
  2165. "isUnique": false,
  2166. "where": null,
  2167. "origin": "manual",
  2168. "name": "session_message_time_created_idx",
  2169. "entityType": "indexes",
  2170. "table": "session_message"
  2171. },
  2172. {
  2173. "columns": [
  2174. {
  2175. "value": "session_id",
  2176. "isExpression": false
  2177. },
  2178. {
  2179. "value": "delivery",
  2180. "isExpression": false
  2181. },
  2182. {
  2183. "value": "admitted_seq",
  2184. "isExpression": false
  2185. }
  2186. ],
  2187. "isUnique": false,
  2188. "where": null,
  2189. "origin": "manual",
  2190. "name": "session_pending_session_delivery_seq_idx",
  2191. "entityType": "indexes",
  2192. "table": "session_pending"
  2193. },
  2194. {
  2195. "columns": [
  2196. {
  2197. "value": "session_id",
  2198. "isExpression": false
  2199. }
  2200. ],
  2201. "isUnique": true,
  2202. "where": "\"session_pending\".\"type\" = 'compaction'",
  2203. "origin": "manual",
  2204. "name": "session_pending_session_compaction_idx",
  2205. "entityType": "indexes",
  2206. "table": "session_pending"
  2207. },
  2208. {
  2209. "columns": [
  2210. {
  2211. "value": "session_id",
  2212. "isExpression": false
  2213. },
  2214. {
  2215. "value": "admitted_seq",
  2216. "isExpression": false
  2217. }
  2218. ],
  2219. "isUnique": true,
  2220. "where": null,
  2221. "origin": "manual",
  2222. "name": "session_pending_session_admitted_seq_idx",
  2223. "entityType": "indexes",
  2224. "table": "session_pending"
  2225. },
  2226. {
  2227. "columns": [
  2228. {
  2229. "value": "project_id",
  2230. "isExpression": false
  2231. }
  2232. ],
  2233. "isUnique": false,
  2234. "where": null,
  2235. "origin": "manual",
  2236. "name": "session_project_idx",
  2237. "entityType": "indexes",
  2238. "table": "session"
  2239. },
  2240. {
  2241. "columns": [
  2242. {
  2243. "value": "workspace_id",
  2244. "isExpression": false
  2245. }
  2246. ],
  2247. "isUnique": false,
  2248. "where": null,
  2249. "origin": "manual",
  2250. "name": "session_workspace_idx",
  2251. "entityType": "indexes",
  2252. "table": "session"
  2253. },
  2254. {
  2255. "columns": [
  2256. {
  2257. "value": "parent_id",
  2258. "isExpression": false
  2259. }
  2260. ],
  2261. "isUnique": false,
  2262. "where": null,
  2263. "origin": "manual",
  2264. "name": "session_parent_idx",
  2265. "entityType": "indexes",
  2266. "table": "session"
  2267. },
  2268. {
  2269. "columns": [
  2270. {
  2271. "value": "time_suspended",
  2272. "isExpression": false
  2273. }
  2274. ],
  2275. "isUnique": false,
  2276. "where": "\"session\".\"time_suspended\" is not null",
  2277. "origin": "manual",
  2278. "name": "session_time_suspended_idx",
  2279. "entityType": "indexes",
  2280. "table": "session"
  2281. }
  2282. ],
  2283. "renames": []
  2284. }