schema.json 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "01451b27-1e51-4657-b2d0-4b457dffa3ec",
  5. "prevIds": ["8c1748cc-f978-4df4-879d-fe7fda5c4c34"],
  6. "ddl": [
  7. {
  8. "name": "workspace",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "data_migration",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "account_state",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "account",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "control_account",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "credential",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "event_sequence",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "event",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "permission",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "project_directory",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "project",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "instruction_checkpoint",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "instruction_entry",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "message",
  61. "entityType": "tables"
  62. },
  63. {
  64. "name": "part",
  65. "entityType": "tables"
  66. },
  67. {
  68. "name": "session_input",
  69. "entityType": "tables"
  70. },
  71. {
  72. "name": "session_message",
  73. "entityType": "tables"
  74. },
  75. {
  76. "name": "session",
  77. "entityType": "tables"
  78. },
  79. {
  80. "name": "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_input"
  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_input"
  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_input"
  1012. },
  1013. {
  1014. "type": "text",
  1015. "notNull": true,
  1016. "autoincrement": false,
  1017. "default": null,
  1018. "generated": null,
  1019. "name": "data",
  1020. "entityType": "columns",
  1021. "table": "session_input"
  1022. },
  1023. {
  1024. "type": "text",
  1025. "notNull": false,
  1026. "autoincrement": false,
  1027. "default": null,
  1028. "generated": null,
  1029. "name": "delivery",
  1030. "entityType": "columns",
  1031. "table": "session_input"
  1032. },
  1033. {
  1034. "type": "integer",
  1035. "notNull": true,
  1036. "autoincrement": false,
  1037. "default": null,
  1038. "generated": null,
  1039. "name": "admitted_seq",
  1040. "entityType": "columns",
  1041. "table": "session_input"
  1042. },
  1043. {
  1044. "type": "integer",
  1045. "notNull": false,
  1046. "autoincrement": false,
  1047. "default": null,
  1048. "generated": null,
  1049. "name": "promoted_seq",
  1050. "entityType": "columns",
  1051. "table": "session_input"
  1052. },
  1053. {
  1054. "type": "integer",
  1055. "notNull": true,
  1056. "autoincrement": false,
  1057. "default": null,
  1058. "generated": null,
  1059. "name": "time_created",
  1060. "entityType": "columns",
  1061. "table": "session_input"
  1062. },
  1063. {
  1064. "type": "text",
  1065. "notNull": false,
  1066. "autoincrement": false,
  1067. "default": null,
  1068. "generated": null,
  1069. "name": "id",
  1070. "entityType": "columns",
  1071. "table": "session_message"
  1072. },
  1073. {
  1074. "type": "text",
  1075. "notNull": true,
  1076. "autoincrement": false,
  1077. "default": null,
  1078. "generated": null,
  1079. "name": "session_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": "type",
  1090. "entityType": "columns",
  1091. "table": "session_message"
  1092. },
  1093. {
  1094. "type": "integer",
  1095. "notNull": true,
  1096. "autoincrement": false,
  1097. "default": null,
  1098. "generated": null,
  1099. "name": "seq",
  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": "time_created",
  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_updated",
  1120. "entityType": "columns",
  1121. "table": "session_message"
  1122. },
  1123. {
  1124. "type": "text",
  1125. "notNull": true,
  1126. "autoincrement": false,
  1127. "default": null,
  1128. "generated": null,
  1129. "name": "data",
  1130. "entityType": "columns",
  1131. "table": "session_message"
  1132. },
  1133. {
  1134. "type": "text",
  1135. "notNull": false,
  1136. "autoincrement": false,
  1137. "default": null,
  1138. "generated": null,
  1139. "name": "id",
  1140. "entityType": "columns",
  1141. "table": "session"
  1142. },
  1143. {
  1144. "type": "text",
  1145. "notNull": true,
  1146. "autoincrement": false,
  1147. "default": null,
  1148. "generated": null,
  1149. "name": "project_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": "workspace_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": "parent_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_session_id",
  1180. "entityType": "columns",
  1181. "table": "session"
  1182. },
  1183. {
  1184. "type": "text",
  1185. "notNull": false,
  1186. "autoincrement": false,
  1187. "default": null,
  1188. "generated": null,
  1189. "name": "fork_message_id",
  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": "slug",
  1200. "entityType": "columns",
  1201. "table": "session"
  1202. },
  1203. {
  1204. "type": "text",
  1205. "notNull": true,
  1206. "autoincrement": false,
  1207. "default": null,
  1208. "generated": null,
  1209. "name": "directory",
  1210. "entityType": "columns",
  1211. "table": "session"
  1212. },
  1213. {
  1214. "type": "text",
  1215. "notNull": false,
  1216. "autoincrement": false,
  1217. "default": null,
  1218. "generated": null,
  1219. "name": "path",
  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": "title",
  1230. "entityType": "columns",
  1231. "table": "session"
  1232. },
  1233. {
  1234. "type": "text",
  1235. "notNull": true,
  1236. "autoincrement": false,
  1237. "default": null,
  1238. "generated": null,
  1239. "name": "version",
  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": "share_url",
  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_additions",
  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_deletions",
  1270. "entityType": "columns",
  1271. "table": "session"
  1272. },
  1273. {
  1274. "type": "integer",
  1275. "notNull": false,
  1276. "autoincrement": false,
  1277. "default": null,
  1278. "generated": null,
  1279. "name": "summary_files",
  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": "summary_diffs",
  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": "metadata",
  1300. "entityType": "columns",
  1301. "table": "session"
  1302. },
  1303. {
  1304. "type": "real",
  1305. "notNull": true,
  1306. "autoincrement": false,
  1307. "default": "0",
  1308. "generated": null,
  1309. "name": "cost",
  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_input",
  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_output",
  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_reasoning",
  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_read",
  1350. "entityType": "columns",
  1351. "table": "session"
  1352. },
  1353. {
  1354. "type": "integer",
  1355. "notNull": true,
  1356. "autoincrement": false,
  1357. "default": "0",
  1358. "generated": null,
  1359. "name": "tokens_cache_write",
  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": "revert",
  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": "permission",
  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": "agent",
  1390. "entityType": "columns",
  1391. "table": "session"
  1392. },
  1393. {
  1394. "type": "text",
  1395. "notNull": false,
  1396. "autoincrement": false,
  1397. "default": null,
  1398. "generated": null,
  1399. "name": "model",
  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_created",
  1410. "entityType": "columns",
  1411. "table": "session"
  1412. },
  1413. {
  1414. "type": "integer",
  1415. "notNull": true,
  1416. "autoincrement": false,
  1417. "default": null,
  1418. "generated": null,
  1419. "name": "time_updated",
  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_compacting",
  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_archived",
  1440. "entityType": "columns",
  1441. "table": "session"
  1442. },
  1443. {
  1444. "type": "integer",
  1445. "notNull": false,
  1446. "autoincrement": false,
  1447. "default": null,
  1448. "generated": null,
  1449. "name": "time_suspended",
  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": "session_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": "id",
  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": "secret",
  1480. "entityType": "columns",
  1481. "table": "session_share"
  1482. },
  1483. {
  1484. "type": "text",
  1485. "notNull": true,
  1486. "autoincrement": false,
  1487. "default": null,
  1488. "generated": null,
  1489. "name": "url",
  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_created",
  1500. "entityType": "columns",
  1501. "table": "session_share"
  1502. },
  1503. {
  1504. "type": "integer",
  1505. "notNull": true,
  1506. "autoincrement": false,
  1507. "default": null,
  1508. "generated": null,
  1509. "name": "time_updated",
  1510. "entityType": "columns",
  1511. "table": "session_share"
  1512. },
  1513. {
  1514. "columns": ["project_id"],
  1515. "tableTo": "project",
  1516. "columnsTo": ["id"],
  1517. "onUpdate": "NO ACTION",
  1518. "onDelete": "CASCADE",
  1519. "nameExplicit": false,
  1520. "name": "fk_workspace_project_id_project_id_fk",
  1521. "entityType": "fks",
  1522. "table": "workspace"
  1523. },
  1524. {
  1525. "columns": ["active_account_id"],
  1526. "tableTo": "account",
  1527. "columnsTo": ["id"],
  1528. "onUpdate": "NO ACTION",
  1529. "onDelete": "SET NULL",
  1530. "nameExplicit": false,
  1531. "name": "fk_account_state_active_account_id_account_id_fk",
  1532. "entityType": "fks",
  1533. "table": "account_state"
  1534. },
  1535. {
  1536. "columns": ["aggregate_id"],
  1537. "tableTo": "event_sequence",
  1538. "columnsTo": ["aggregate_id"],
  1539. "onUpdate": "NO ACTION",
  1540. "onDelete": "CASCADE",
  1541. "nameExplicit": false,
  1542. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1543. "entityType": "fks",
  1544. "table": "event"
  1545. },
  1546. {
  1547. "columns": ["project_id"],
  1548. "tableTo": "project",
  1549. "columnsTo": ["id"],
  1550. "onUpdate": "NO ACTION",
  1551. "onDelete": "CASCADE",
  1552. "nameExplicit": false,
  1553. "name": "fk_permission_project_id_project_id_fk",
  1554. "entityType": "fks",
  1555. "table": "permission"
  1556. },
  1557. {
  1558. "columns": ["project_id"],
  1559. "tableTo": "project",
  1560. "columnsTo": ["id"],
  1561. "onUpdate": "NO ACTION",
  1562. "onDelete": "CASCADE",
  1563. "nameExplicit": false,
  1564. "name": "fk_project_directory_project_id_project_id_fk",
  1565. "entityType": "fks",
  1566. "table": "project_directory"
  1567. },
  1568. {
  1569. "columns": ["session_id"],
  1570. "tableTo": "session",
  1571. "columnsTo": ["id"],
  1572. "onUpdate": "NO ACTION",
  1573. "onDelete": "CASCADE",
  1574. "nameExplicit": false,
  1575. "name": "fk_instruction_checkpoint_session_id_session_id_fk",
  1576. "entityType": "fks",
  1577. "table": "instruction_checkpoint"
  1578. },
  1579. {
  1580. "columns": ["session_id"],
  1581. "tableTo": "session",
  1582. "columnsTo": ["id"],
  1583. "onUpdate": "NO ACTION",
  1584. "onDelete": "CASCADE",
  1585. "nameExplicit": false,
  1586. "name": "fk_instruction_entry_session_id_session_id_fk",
  1587. "entityType": "fks",
  1588. "table": "instruction_entry"
  1589. },
  1590. {
  1591. "columns": ["session_id"],
  1592. "tableTo": "session",
  1593. "columnsTo": ["id"],
  1594. "onUpdate": "NO ACTION",
  1595. "onDelete": "CASCADE",
  1596. "nameExplicit": false,
  1597. "name": "fk_message_session_id_session_id_fk",
  1598. "entityType": "fks",
  1599. "table": "message"
  1600. },
  1601. {
  1602. "columns": ["message_id"],
  1603. "tableTo": "message",
  1604. "columnsTo": ["id"],
  1605. "onUpdate": "NO ACTION",
  1606. "onDelete": "CASCADE",
  1607. "nameExplicit": false,
  1608. "name": "fk_part_message_id_message_id_fk",
  1609. "entityType": "fks",
  1610. "table": "part"
  1611. },
  1612. {
  1613. "columns": ["session_id"],
  1614. "tableTo": "session",
  1615. "columnsTo": ["id"],
  1616. "onUpdate": "NO ACTION",
  1617. "onDelete": "CASCADE",
  1618. "nameExplicit": false,
  1619. "name": "fk_session_input_session_id_session_id_fk",
  1620. "entityType": "fks",
  1621. "table": "session_input"
  1622. },
  1623. {
  1624. "columns": ["session_id"],
  1625. "tableTo": "session",
  1626. "columnsTo": ["id"],
  1627. "onUpdate": "NO ACTION",
  1628. "onDelete": "CASCADE",
  1629. "nameExplicit": false,
  1630. "name": "fk_session_message_session_id_session_id_fk",
  1631. "entityType": "fks",
  1632. "table": "session_message"
  1633. },
  1634. {
  1635. "columns": ["project_id"],
  1636. "tableTo": "project",
  1637. "columnsTo": ["id"],
  1638. "onUpdate": "NO ACTION",
  1639. "onDelete": "CASCADE",
  1640. "nameExplicit": false,
  1641. "name": "fk_session_project_id_project_id_fk",
  1642. "entityType": "fks",
  1643. "table": "session"
  1644. },
  1645. {
  1646. "columns": ["session_id"],
  1647. "tableTo": "session",
  1648. "columnsTo": ["id"],
  1649. "onUpdate": "NO ACTION",
  1650. "onDelete": "CASCADE",
  1651. "nameExplicit": false,
  1652. "name": "fk_session_share_session_id_session_id_fk",
  1653. "entityType": "fks",
  1654. "table": "session_share"
  1655. },
  1656. {
  1657. "columns": ["email", "url"],
  1658. "nameExplicit": false,
  1659. "name": "control_account_pk",
  1660. "entityType": "pks",
  1661. "table": "control_account"
  1662. },
  1663. {
  1664. "columns": ["project_id", "directory"],
  1665. "nameExplicit": false,
  1666. "name": "project_directory_pk",
  1667. "entityType": "pks",
  1668. "table": "project_directory"
  1669. },
  1670. {
  1671. "columns": ["session_id", "key"],
  1672. "nameExplicit": false,
  1673. "name": "instruction_entry_pk",
  1674. "entityType": "pks",
  1675. "table": "instruction_entry"
  1676. },
  1677. {
  1678. "columns": ["id"],
  1679. "nameExplicit": false,
  1680. "name": "workspace_pk",
  1681. "table": "workspace",
  1682. "entityType": "pks"
  1683. },
  1684. {
  1685. "columns": ["name"],
  1686. "nameExplicit": false,
  1687. "name": "data_migration_pk",
  1688. "table": "data_migration",
  1689. "entityType": "pks"
  1690. },
  1691. {
  1692. "columns": ["id"],
  1693. "nameExplicit": false,
  1694. "name": "account_state_pk",
  1695. "table": "account_state",
  1696. "entityType": "pks"
  1697. },
  1698. {
  1699. "columns": ["id"],
  1700. "nameExplicit": false,
  1701. "name": "account_pk",
  1702. "table": "account",
  1703. "entityType": "pks"
  1704. },
  1705. {
  1706. "columns": ["id"],
  1707. "nameExplicit": false,
  1708. "name": "credential_pk",
  1709. "table": "credential",
  1710. "entityType": "pks"
  1711. },
  1712. {
  1713. "columns": ["aggregate_id"],
  1714. "nameExplicit": false,
  1715. "name": "event_sequence_pk",
  1716. "table": "event_sequence",
  1717. "entityType": "pks"
  1718. },
  1719. {
  1720. "columns": ["id"],
  1721. "nameExplicit": false,
  1722. "name": "event_pk",
  1723. "table": "event",
  1724. "entityType": "pks"
  1725. },
  1726. {
  1727. "columns": ["id"],
  1728. "nameExplicit": false,
  1729. "name": "permission_pk",
  1730. "table": "permission",
  1731. "entityType": "pks"
  1732. },
  1733. {
  1734. "columns": ["id"],
  1735. "nameExplicit": false,
  1736. "name": "project_pk",
  1737. "table": "project",
  1738. "entityType": "pks"
  1739. },
  1740. {
  1741. "columns": ["session_id"],
  1742. "nameExplicit": false,
  1743. "name": "instruction_checkpoint_pk",
  1744. "table": "instruction_checkpoint",
  1745. "entityType": "pks"
  1746. },
  1747. {
  1748. "columns": ["id"],
  1749. "nameExplicit": false,
  1750. "name": "message_pk",
  1751. "table": "message",
  1752. "entityType": "pks"
  1753. },
  1754. {
  1755. "columns": ["id"],
  1756. "nameExplicit": false,
  1757. "name": "part_pk",
  1758. "table": "part",
  1759. "entityType": "pks"
  1760. },
  1761. {
  1762. "columns": ["id"],
  1763. "nameExplicit": false,
  1764. "name": "session_input_pk",
  1765. "table": "session_input",
  1766. "entityType": "pks"
  1767. },
  1768. {
  1769. "columns": ["id"],
  1770. "nameExplicit": false,
  1771. "name": "session_message_pk",
  1772. "table": "session_message",
  1773. "entityType": "pks"
  1774. },
  1775. {
  1776. "columns": ["id"],
  1777. "nameExplicit": false,
  1778. "name": "session_pk",
  1779. "table": "session",
  1780. "entityType": "pks"
  1781. },
  1782. {
  1783. "columns": ["session_id"],
  1784. "nameExplicit": false,
  1785. "name": "session_share_pk",
  1786. "table": "session_share",
  1787. "entityType": "pks"
  1788. },
  1789. {
  1790. "columns": [
  1791. {
  1792. "value": "aggregate_id",
  1793. "isExpression": false
  1794. },
  1795. {
  1796. "value": "seq",
  1797. "isExpression": false
  1798. }
  1799. ],
  1800. "isUnique": true,
  1801. "where": null,
  1802. "origin": "manual",
  1803. "name": "event_aggregate_seq_idx",
  1804. "entityType": "indexes",
  1805. "table": "event"
  1806. },
  1807. {
  1808. "columns": [
  1809. {
  1810. "value": "aggregate_id",
  1811. "isExpression": false
  1812. },
  1813. {
  1814. "value": "type",
  1815. "isExpression": false
  1816. },
  1817. {
  1818. "value": "seq",
  1819. "isExpression": false
  1820. }
  1821. ],
  1822. "isUnique": false,
  1823. "where": null,
  1824. "origin": "manual",
  1825. "name": "event_aggregate_type_seq_idx",
  1826. "entityType": "indexes",
  1827. "table": "event"
  1828. },
  1829. {
  1830. "columns": [
  1831. {
  1832. "value": "project_id",
  1833. "isExpression": false
  1834. },
  1835. {
  1836. "value": "action",
  1837. "isExpression": false
  1838. },
  1839. {
  1840. "value": "resource",
  1841. "isExpression": false
  1842. }
  1843. ],
  1844. "isUnique": true,
  1845. "where": null,
  1846. "origin": "manual",
  1847. "name": "permission_project_action_resource_idx",
  1848. "entityType": "indexes",
  1849. "table": "permission"
  1850. },
  1851. {
  1852. "columns": [
  1853. {
  1854. "value": "session_id",
  1855. "isExpression": false
  1856. },
  1857. {
  1858. "value": "time_created",
  1859. "isExpression": false
  1860. },
  1861. {
  1862. "value": "id",
  1863. "isExpression": false
  1864. }
  1865. ],
  1866. "isUnique": false,
  1867. "where": null,
  1868. "origin": "manual",
  1869. "name": "message_session_time_created_id_idx",
  1870. "entityType": "indexes",
  1871. "table": "message"
  1872. },
  1873. {
  1874. "columns": [
  1875. {
  1876. "value": "message_id",
  1877. "isExpression": false
  1878. },
  1879. {
  1880. "value": "id",
  1881. "isExpression": false
  1882. }
  1883. ],
  1884. "isUnique": false,
  1885. "where": null,
  1886. "origin": "manual",
  1887. "name": "part_message_id_id_idx",
  1888. "entityType": "indexes",
  1889. "table": "part"
  1890. },
  1891. {
  1892. "columns": [
  1893. {
  1894. "value": "session_id",
  1895. "isExpression": false
  1896. }
  1897. ],
  1898. "isUnique": false,
  1899. "where": null,
  1900. "origin": "manual",
  1901. "name": "part_session_idx",
  1902. "entityType": "indexes",
  1903. "table": "part"
  1904. },
  1905. {
  1906. "columns": [
  1907. {
  1908. "value": "session_id",
  1909. "isExpression": false
  1910. },
  1911. {
  1912. "value": "promoted_seq",
  1913. "isExpression": false
  1914. },
  1915. {
  1916. "value": "delivery",
  1917. "isExpression": false
  1918. },
  1919. {
  1920. "value": "admitted_seq",
  1921. "isExpression": false
  1922. }
  1923. ],
  1924. "isUnique": false,
  1925. "where": null,
  1926. "origin": "manual",
  1927. "name": "session_input_session_pending_delivery_seq_idx",
  1928. "entityType": "indexes",
  1929. "table": "session_input"
  1930. },
  1931. {
  1932. "columns": [
  1933. {
  1934. "value": "session_id",
  1935. "isExpression": false
  1936. }
  1937. ],
  1938. "isUnique": true,
  1939. "where": "\"session_input\".\"type\" = 'compaction' and \"session_input\".\"promoted_seq\" is null",
  1940. "origin": "manual",
  1941. "name": "session_input_session_pending_compaction_idx",
  1942. "entityType": "indexes",
  1943. "table": "session_input"
  1944. },
  1945. {
  1946. "columns": [
  1947. {
  1948. "value": "session_id",
  1949. "isExpression": false
  1950. },
  1951. {
  1952. "value": "admitted_seq",
  1953. "isExpression": false
  1954. }
  1955. ],
  1956. "isUnique": true,
  1957. "where": null,
  1958. "origin": "manual",
  1959. "name": "session_input_session_admitted_seq_idx",
  1960. "entityType": "indexes",
  1961. "table": "session_input"
  1962. },
  1963. {
  1964. "columns": [
  1965. {
  1966. "value": "session_id",
  1967. "isExpression": false
  1968. },
  1969. {
  1970. "value": "promoted_seq",
  1971. "isExpression": false
  1972. }
  1973. ],
  1974. "isUnique": true,
  1975. "where": null,
  1976. "origin": "manual",
  1977. "name": "session_input_session_promoted_seq_idx",
  1978. "entityType": "indexes",
  1979. "table": "session_input"
  1980. },
  1981. {
  1982. "columns": [
  1983. {
  1984. "value": "session_id",
  1985. "isExpression": false
  1986. },
  1987. {
  1988. "value": "seq",
  1989. "isExpression": false
  1990. }
  1991. ],
  1992. "isUnique": true,
  1993. "where": null,
  1994. "origin": "manual",
  1995. "name": "session_message_session_seq_idx",
  1996. "entityType": "indexes",
  1997. "table": "session_message"
  1998. },
  1999. {
  2000. "columns": [
  2001. {
  2002. "value": "session_id",
  2003. "isExpression": false
  2004. },
  2005. {
  2006. "value": "type",
  2007. "isExpression": false
  2008. },
  2009. {
  2010. "value": "seq",
  2011. "isExpression": false
  2012. }
  2013. ],
  2014. "isUnique": false,
  2015. "where": null,
  2016. "origin": "manual",
  2017. "name": "session_message_session_type_seq_idx",
  2018. "entityType": "indexes",
  2019. "table": "session_message"
  2020. },
  2021. {
  2022. "columns": [
  2023. {
  2024. "value": "session_id",
  2025. "isExpression": false
  2026. },
  2027. {
  2028. "value": "time_created",
  2029. "isExpression": false
  2030. },
  2031. {
  2032. "value": "id",
  2033. "isExpression": false
  2034. }
  2035. ],
  2036. "isUnique": false,
  2037. "where": null,
  2038. "origin": "manual",
  2039. "name": "session_message_session_time_created_id_idx",
  2040. "entityType": "indexes",
  2041. "table": "session_message"
  2042. },
  2043. {
  2044. "columns": [
  2045. {
  2046. "value": "time_created",
  2047. "isExpression": false
  2048. }
  2049. ],
  2050. "isUnique": false,
  2051. "where": null,
  2052. "origin": "manual",
  2053. "name": "session_message_time_created_idx",
  2054. "entityType": "indexes",
  2055. "table": "session_message"
  2056. },
  2057. {
  2058. "columns": [
  2059. {
  2060. "value": "project_id",
  2061. "isExpression": false
  2062. }
  2063. ],
  2064. "isUnique": false,
  2065. "where": null,
  2066. "origin": "manual",
  2067. "name": "session_project_idx",
  2068. "entityType": "indexes",
  2069. "table": "session"
  2070. },
  2071. {
  2072. "columns": [
  2073. {
  2074. "value": "workspace_id",
  2075. "isExpression": false
  2076. }
  2077. ],
  2078. "isUnique": false,
  2079. "where": null,
  2080. "origin": "manual",
  2081. "name": "session_workspace_idx",
  2082. "entityType": "indexes",
  2083. "table": "session"
  2084. },
  2085. {
  2086. "columns": [
  2087. {
  2088. "value": "parent_id",
  2089. "isExpression": false
  2090. }
  2091. ],
  2092. "isUnique": false,
  2093. "where": null,
  2094. "origin": "manual",
  2095. "name": "session_parent_idx",
  2096. "entityType": "indexes",
  2097. "table": "session"
  2098. },
  2099. {
  2100. "columns": [
  2101. {
  2102. "value": "time_suspended",
  2103. "isExpression": false
  2104. }
  2105. ],
  2106. "isUnique": false,
  2107. "where": "\"session\".\"time_suspended\" is not null",
  2108. "origin": "manual",
  2109. "name": "session_time_suspended_idx",
  2110. "entityType": "indexes",
  2111. "table": "session"
  2112. }
  2113. ],
  2114. "renames": []
  2115. }