schema.json 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "00924d88-1842-4d71-ac74-5682ddc47e1c",
  5. "prevIds": ["15060ec5-05f7-4b86-b2a5-9108609432b3"],
  6. "ddl": [
  7. {
  8. "name": "account_state",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "account",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "control_account",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "credential",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "event_sequence",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "event",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "kv",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "permission",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "project_directory",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "project",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "instruction_blob",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "instruction_entry",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "instruction_state",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "session_message",
  61. "entityType": "tables"
  62. },
  63. {
  64. "name": "session_pending",
  65. "entityType": "tables"
  66. },
  67. {
  68. "name": "session_v2",
  69. "entityType": "tables"
  70. },
  71. {
  72. "name": "workspace",
  73. "entityType": "tables"
  74. },
  75. {
  76. "type": "integer",
  77. "notNull": false,
  78. "autoincrement": false,
  79. "default": null,
  80. "generated": null,
  81. "name": "id",
  82. "entityType": "columns",
  83. "table": "account_state"
  84. },
  85. {
  86. "type": "text",
  87. "notNull": false,
  88. "autoincrement": false,
  89. "default": null,
  90. "generated": null,
  91. "name": "active_account_id",
  92. "entityType": "columns",
  93. "table": "account_state"
  94. },
  95. {
  96. "type": "text",
  97. "notNull": false,
  98. "autoincrement": false,
  99. "default": null,
  100. "generated": null,
  101. "name": "active_org_id",
  102. "entityType": "columns",
  103. "table": "account_state"
  104. },
  105. {
  106. "type": "text",
  107. "notNull": false,
  108. "autoincrement": false,
  109. "default": null,
  110. "generated": null,
  111. "name": "id",
  112. "entityType": "columns",
  113. "table": "account"
  114. },
  115. {
  116. "type": "text",
  117. "notNull": true,
  118. "autoincrement": false,
  119. "default": null,
  120. "generated": null,
  121. "name": "email",
  122. "entityType": "columns",
  123. "table": "account"
  124. },
  125. {
  126. "type": "text",
  127. "notNull": true,
  128. "autoincrement": false,
  129. "default": null,
  130. "generated": null,
  131. "name": "url",
  132. "entityType": "columns",
  133. "table": "account"
  134. },
  135. {
  136. "type": "text",
  137. "notNull": true,
  138. "autoincrement": false,
  139. "default": null,
  140. "generated": null,
  141. "name": "access_token",
  142. "entityType": "columns",
  143. "table": "account"
  144. },
  145. {
  146. "type": "text",
  147. "notNull": true,
  148. "autoincrement": false,
  149. "default": null,
  150. "generated": null,
  151. "name": "refresh_token",
  152. "entityType": "columns",
  153. "table": "account"
  154. },
  155. {
  156. "type": "integer",
  157. "notNull": false,
  158. "autoincrement": false,
  159. "default": null,
  160. "generated": null,
  161. "name": "token_expiry",
  162. "entityType": "columns",
  163. "table": "account"
  164. },
  165. {
  166. "type": "integer",
  167. "notNull": true,
  168. "autoincrement": false,
  169. "default": null,
  170. "generated": null,
  171. "name": "time_created",
  172. "entityType": "columns",
  173. "table": "account"
  174. },
  175. {
  176. "type": "integer",
  177. "notNull": true,
  178. "autoincrement": false,
  179. "default": null,
  180. "generated": null,
  181. "name": "time_updated",
  182. "entityType": "columns",
  183. "table": "account"
  184. },
  185. {
  186. "type": "text",
  187. "notNull": true,
  188. "autoincrement": false,
  189. "default": null,
  190. "generated": null,
  191. "name": "email",
  192. "entityType": "columns",
  193. "table": "control_account"
  194. },
  195. {
  196. "type": "text",
  197. "notNull": true,
  198. "autoincrement": false,
  199. "default": null,
  200. "generated": null,
  201. "name": "url",
  202. "entityType": "columns",
  203. "table": "control_account"
  204. },
  205. {
  206. "type": "text",
  207. "notNull": true,
  208. "autoincrement": false,
  209. "default": null,
  210. "generated": null,
  211. "name": "access_token",
  212. "entityType": "columns",
  213. "table": "control_account"
  214. },
  215. {
  216. "type": "text",
  217. "notNull": true,
  218. "autoincrement": false,
  219. "default": null,
  220. "generated": null,
  221. "name": "refresh_token",
  222. "entityType": "columns",
  223. "table": "control_account"
  224. },
  225. {
  226. "type": "integer",
  227. "notNull": false,
  228. "autoincrement": false,
  229. "default": null,
  230. "generated": null,
  231. "name": "token_expiry",
  232. "entityType": "columns",
  233. "table": "control_account"
  234. },
  235. {
  236. "type": "integer",
  237. "notNull": true,
  238. "autoincrement": false,
  239. "default": null,
  240. "generated": null,
  241. "name": "active",
  242. "entityType": "columns",
  243. "table": "control_account"
  244. },
  245. {
  246. "type": "integer",
  247. "notNull": true,
  248. "autoincrement": false,
  249. "default": null,
  250. "generated": null,
  251. "name": "time_created",
  252. "entityType": "columns",
  253. "table": "control_account"
  254. },
  255. {
  256. "type": "integer",
  257. "notNull": true,
  258. "autoincrement": false,
  259. "default": null,
  260. "generated": null,
  261. "name": "time_updated",
  262. "entityType": "columns",
  263. "table": "control_account"
  264. },
  265. {
  266. "type": "text",
  267. "notNull": false,
  268. "autoincrement": false,
  269. "default": null,
  270. "generated": null,
  271. "name": "id",
  272. "entityType": "columns",
  273. "table": "credential"
  274. },
  275. {
  276. "type": "text",
  277. "notNull": false,
  278. "autoincrement": false,
  279. "default": null,
  280. "generated": null,
  281. "name": "integration_id",
  282. "entityType": "columns",
  283. "table": "credential"
  284. },
  285. {
  286. "type": "text",
  287. "notNull": true,
  288. "autoincrement": false,
  289. "default": null,
  290. "generated": null,
  291. "name": "label",
  292. "entityType": "columns",
  293. "table": "credential"
  294. },
  295. {
  296. "type": "text",
  297. "notNull": true,
  298. "autoincrement": false,
  299. "default": null,
  300. "generated": null,
  301. "name": "value",
  302. "entityType": "columns",
  303. "table": "credential"
  304. },
  305. {
  306. "type": "text",
  307. "notNull": false,
  308. "autoincrement": false,
  309. "default": null,
  310. "generated": null,
  311. "name": "connector_id",
  312. "entityType": "columns",
  313. "table": "credential"
  314. },
  315. {
  316. "type": "text",
  317. "notNull": false,
  318. "autoincrement": false,
  319. "default": null,
  320. "generated": null,
  321. "name": "method_id",
  322. "entityType": "columns",
  323. "table": "credential"
  324. },
  325. {
  326. "type": "integer",
  327. "notNull": false,
  328. "autoincrement": false,
  329. "default": null,
  330. "generated": null,
  331. "name": "active",
  332. "entityType": "columns",
  333. "table": "credential"
  334. },
  335. {
  336. "type": "integer",
  337. "notNull": true,
  338. "autoincrement": false,
  339. "default": null,
  340. "generated": null,
  341. "name": "time_created",
  342. "entityType": "columns",
  343. "table": "credential"
  344. },
  345. {
  346. "type": "integer",
  347. "notNull": true,
  348. "autoincrement": false,
  349. "default": null,
  350. "generated": null,
  351. "name": "time_updated",
  352. "entityType": "columns",
  353. "table": "credential"
  354. },
  355. {
  356. "type": "text",
  357. "notNull": false,
  358. "autoincrement": false,
  359. "default": null,
  360. "generated": null,
  361. "name": "aggregate_id",
  362. "entityType": "columns",
  363. "table": "event_sequence"
  364. },
  365. {
  366. "type": "integer",
  367. "notNull": true,
  368. "autoincrement": false,
  369. "default": null,
  370. "generated": null,
  371. "name": "seq",
  372. "entityType": "columns",
  373. "table": "event_sequence"
  374. },
  375. {
  376. "type": "text",
  377. "notNull": false,
  378. "autoincrement": false,
  379. "default": null,
  380. "generated": null,
  381. "name": "owner_id",
  382. "entityType": "columns",
  383. "table": "event_sequence"
  384. },
  385. {
  386. "type": "text",
  387. "notNull": false,
  388. "autoincrement": false,
  389. "default": null,
  390. "generated": null,
  391. "name": "id",
  392. "entityType": "columns",
  393. "table": "event"
  394. },
  395. {
  396. "type": "text",
  397. "notNull": true,
  398. "autoincrement": false,
  399. "default": null,
  400. "generated": null,
  401. "name": "aggregate_id",
  402. "entityType": "columns",
  403. "table": "event"
  404. },
  405. {
  406. "type": "integer",
  407. "notNull": true,
  408. "autoincrement": false,
  409. "default": null,
  410. "generated": null,
  411. "name": "seq",
  412. "entityType": "columns",
  413. "table": "event"
  414. },
  415. {
  416. "type": "integer",
  417. "notNull": true,
  418. "autoincrement": false,
  419. "default": "0",
  420. "generated": null,
  421. "name": "created",
  422. "entityType": "columns",
  423. "table": "event"
  424. },
  425. {
  426. "type": "text",
  427. "notNull": true,
  428. "autoincrement": false,
  429. "default": null,
  430. "generated": null,
  431. "name": "type",
  432. "entityType": "columns",
  433. "table": "event"
  434. },
  435. {
  436. "type": "text",
  437. "notNull": true,
  438. "autoincrement": false,
  439. "default": null,
  440. "generated": null,
  441. "name": "data",
  442. "entityType": "columns",
  443. "table": "event"
  444. },
  445. {
  446. "type": "text",
  447. "notNull": false,
  448. "autoincrement": false,
  449. "default": null,
  450. "generated": null,
  451. "name": "key",
  452. "entityType": "columns",
  453. "table": "kv"
  454. },
  455. {
  456. "type": "text",
  457. "notNull": true,
  458. "autoincrement": false,
  459. "default": null,
  460. "generated": null,
  461. "name": "value",
  462. "entityType": "columns",
  463. "table": "kv"
  464. },
  465. {
  466. "type": "integer",
  467. "notNull": true,
  468. "autoincrement": false,
  469. "default": null,
  470. "generated": null,
  471. "name": "time_created",
  472. "entityType": "columns",
  473. "table": "kv"
  474. },
  475. {
  476. "type": "integer",
  477. "notNull": true,
  478. "autoincrement": false,
  479. "default": null,
  480. "generated": null,
  481. "name": "time_updated",
  482. "entityType": "columns",
  483. "table": "kv"
  484. },
  485. {
  486. "type": "text",
  487. "notNull": false,
  488. "autoincrement": false,
  489. "default": null,
  490. "generated": null,
  491. "name": "id",
  492. "entityType": "columns",
  493. "table": "permission"
  494. },
  495. {
  496. "type": "text",
  497. "notNull": true,
  498. "autoincrement": false,
  499. "default": null,
  500. "generated": null,
  501. "name": "project_id",
  502. "entityType": "columns",
  503. "table": "permission"
  504. },
  505. {
  506. "type": "text",
  507. "notNull": true,
  508. "autoincrement": false,
  509. "default": null,
  510. "generated": null,
  511. "name": "action",
  512. "entityType": "columns",
  513. "table": "permission"
  514. },
  515. {
  516. "type": "text",
  517. "notNull": true,
  518. "autoincrement": false,
  519. "default": null,
  520. "generated": null,
  521. "name": "resource",
  522. "entityType": "columns",
  523. "table": "permission"
  524. },
  525. {
  526. "type": "integer",
  527. "notNull": true,
  528. "autoincrement": false,
  529. "default": null,
  530. "generated": null,
  531. "name": "time_created",
  532. "entityType": "columns",
  533. "table": "permission"
  534. },
  535. {
  536. "type": "integer",
  537. "notNull": true,
  538. "autoincrement": false,
  539. "default": null,
  540. "generated": null,
  541. "name": "time_updated",
  542. "entityType": "columns",
  543. "table": "permission"
  544. },
  545. {
  546. "type": "text",
  547. "notNull": true,
  548. "autoincrement": false,
  549. "default": null,
  550. "generated": null,
  551. "name": "project_id",
  552. "entityType": "columns",
  553. "table": "project_directory"
  554. },
  555. {
  556. "type": "text",
  557. "notNull": true,
  558. "autoincrement": false,
  559. "default": null,
  560. "generated": null,
  561. "name": "directory",
  562. "entityType": "columns",
  563. "table": "project_directory"
  564. },
  565. {
  566. "type": "text",
  567. "notNull": false,
  568. "autoincrement": false,
  569. "default": null,
  570. "generated": null,
  571. "name": "type",
  572. "entityType": "columns",
  573. "table": "project_directory"
  574. },
  575. {
  576. "type": "text",
  577. "notNull": false,
  578. "autoincrement": false,
  579. "default": null,
  580. "generated": null,
  581. "name": "strategy",
  582. "entityType": "columns",
  583. "table": "project_directory"
  584. },
  585. {
  586. "type": "integer",
  587. "notNull": true,
  588. "autoincrement": false,
  589. "default": null,
  590. "generated": null,
  591. "name": "time_created",
  592. "entityType": "columns",
  593. "table": "project_directory"
  594. },
  595. {
  596. "type": "text",
  597. "notNull": false,
  598. "autoincrement": false,
  599. "default": null,
  600. "generated": null,
  601. "name": "id",
  602. "entityType": "columns",
  603. "table": "project"
  604. },
  605. {
  606. "type": "text",
  607. "notNull": true,
  608. "autoincrement": false,
  609. "default": null,
  610. "generated": null,
  611. "name": "worktree",
  612. "entityType": "columns",
  613. "table": "project"
  614. },
  615. {
  616. "type": "text",
  617. "notNull": false,
  618. "autoincrement": false,
  619. "default": null,
  620. "generated": null,
  621. "name": "vcs",
  622. "entityType": "columns",
  623. "table": "project"
  624. },
  625. {
  626. "type": "text",
  627. "notNull": false,
  628. "autoincrement": false,
  629. "default": null,
  630. "generated": null,
  631. "name": "name",
  632. "entityType": "columns",
  633. "table": "project"
  634. },
  635. {
  636. "type": "text",
  637. "notNull": false,
  638. "autoincrement": false,
  639. "default": null,
  640. "generated": null,
  641. "name": "icon_url",
  642. "entityType": "columns",
  643. "table": "project"
  644. },
  645. {
  646. "type": "text",
  647. "notNull": false,
  648. "autoincrement": false,
  649. "default": null,
  650. "generated": null,
  651. "name": "icon_url_override",
  652. "entityType": "columns",
  653. "table": "project"
  654. },
  655. {
  656. "type": "text",
  657. "notNull": false,
  658. "autoincrement": false,
  659. "default": null,
  660. "generated": null,
  661. "name": "icon_color",
  662. "entityType": "columns",
  663. "table": "project"
  664. },
  665. {
  666. "type": "integer",
  667. "notNull": true,
  668. "autoincrement": false,
  669. "default": null,
  670. "generated": null,
  671. "name": "time_created",
  672. "entityType": "columns",
  673. "table": "project"
  674. },
  675. {
  676. "type": "integer",
  677. "notNull": true,
  678. "autoincrement": false,
  679. "default": null,
  680. "generated": null,
  681. "name": "time_updated",
  682. "entityType": "columns",
  683. "table": "project"
  684. },
  685. {
  686. "type": "integer",
  687. "notNull": false,
  688. "autoincrement": false,
  689. "default": null,
  690. "generated": null,
  691. "name": "time_initialized",
  692. "entityType": "columns",
  693. "table": "project"
  694. },
  695. {
  696. "type": "text",
  697. "notNull": true,
  698. "autoincrement": false,
  699. "default": null,
  700. "generated": null,
  701. "name": "sandboxes",
  702. "entityType": "columns",
  703. "table": "project"
  704. },
  705. {
  706. "type": "text",
  707. "notNull": false,
  708. "autoincrement": false,
  709. "default": null,
  710. "generated": null,
  711. "name": "commands",
  712. "entityType": "columns",
  713. "table": "project"
  714. },
  715. {
  716. "type": "text",
  717. "notNull": false,
  718. "autoincrement": false,
  719. "default": null,
  720. "generated": null,
  721. "name": "hash",
  722. "entityType": "columns",
  723. "table": "instruction_blob"
  724. },
  725. {
  726. "type": "text",
  727. "notNull": false,
  728. "autoincrement": false,
  729. "default": null,
  730. "generated": null,
  731. "name": "value",
  732. "entityType": "columns",
  733. "table": "instruction_blob"
  734. },
  735. {
  736. "type": "text",
  737. "notNull": true,
  738. "autoincrement": false,
  739. "default": null,
  740. "generated": null,
  741. "name": "session_id",
  742. "entityType": "columns",
  743. "table": "instruction_entry"
  744. },
  745. {
  746. "type": "text",
  747. "notNull": true,
  748. "autoincrement": false,
  749. "default": null,
  750. "generated": null,
  751. "name": "key",
  752. "entityType": "columns",
  753. "table": "instruction_entry"
  754. },
  755. {
  756. "type": "text",
  757. "notNull": false,
  758. "autoincrement": false,
  759. "default": null,
  760. "generated": null,
  761. "name": "value",
  762. "entityType": "columns",
  763. "table": "instruction_entry"
  764. },
  765. {
  766. "type": "integer",
  767. "notNull": true,
  768. "autoincrement": false,
  769. "default": "false",
  770. "generated": null,
  771. "name": "removed",
  772. "entityType": "columns",
  773. "table": "instruction_entry"
  774. },
  775. {
  776. "type": "integer",
  777. "notNull": true,
  778. "autoincrement": false,
  779. "default": null,
  780. "generated": null,
  781. "name": "time_created",
  782. "entityType": "columns",
  783. "table": "instruction_entry"
  784. },
  785. {
  786. "type": "integer",
  787. "notNull": true,
  788. "autoincrement": false,
  789. "default": null,
  790. "generated": null,
  791. "name": "time_updated",
  792. "entityType": "columns",
  793. "table": "instruction_entry"
  794. },
  795. {
  796. "type": "text",
  797. "notNull": false,
  798. "autoincrement": false,
  799. "default": null,
  800. "generated": null,
  801. "name": "session_id",
  802. "entityType": "columns",
  803. "table": "instruction_state"
  804. },
  805. {
  806. "type": "integer",
  807. "notNull": true,
  808. "autoincrement": false,
  809. "default": null,
  810. "generated": null,
  811. "name": "epoch_start",
  812. "entityType": "columns",
  813. "table": "instruction_state"
  814. },
  815. {
  816. "type": "integer",
  817. "notNull": true,
  818. "autoincrement": false,
  819. "default": null,
  820. "generated": null,
  821. "name": "through_seq",
  822. "entityType": "columns",
  823. "table": "instruction_state"
  824. },
  825. {
  826. "type": "text",
  827. "notNull": true,
  828. "autoincrement": false,
  829. "default": null,
  830. "generated": null,
  831. "name": "initial_values",
  832. "entityType": "columns",
  833. "table": "instruction_state"
  834. },
  835. {
  836. "type": "text",
  837. "notNull": true,
  838. "autoincrement": false,
  839. "default": null,
  840. "generated": null,
  841. "name": "current_values",
  842. "entityType": "columns",
  843. "table": "instruction_state"
  844. },
  845. {
  846. "type": "text",
  847. "notNull": false,
  848. "autoincrement": false,
  849. "default": null,
  850. "generated": null,
  851. "name": "id",
  852. "entityType": "columns",
  853. "table": "session_message"
  854. },
  855. {
  856. "type": "text",
  857. "notNull": true,
  858. "autoincrement": false,
  859. "default": null,
  860. "generated": null,
  861. "name": "session_id",
  862. "entityType": "columns",
  863. "table": "session_message"
  864. },
  865. {
  866. "type": "text",
  867. "notNull": true,
  868. "autoincrement": false,
  869. "default": null,
  870. "generated": null,
  871. "name": "type",
  872. "entityType": "columns",
  873. "table": "session_message"
  874. },
  875. {
  876. "type": "integer",
  877. "notNull": true,
  878. "autoincrement": false,
  879. "default": null,
  880. "generated": null,
  881. "name": "seq",
  882. "entityType": "columns",
  883. "table": "session_message"
  884. },
  885. {
  886. "type": "integer",
  887. "notNull": true,
  888. "autoincrement": false,
  889. "default": null,
  890. "generated": null,
  891. "name": "time_created",
  892. "entityType": "columns",
  893. "table": "session_message"
  894. },
  895. {
  896. "type": "integer",
  897. "notNull": true,
  898. "autoincrement": false,
  899. "default": null,
  900. "generated": null,
  901. "name": "time_updated",
  902. "entityType": "columns",
  903. "table": "session_message"
  904. },
  905. {
  906. "type": "text",
  907. "notNull": true,
  908. "autoincrement": false,
  909. "default": null,
  910. "generated": null,
  911. "name": "data",
  912. "entityType": "columns",
  913. "table": "session_message"
  914. },
  915. {
  916. "type": "text",
  917. "notNull": false,
  918. "autoincrement": false,
  919. "default": null,
  920. "generated": null,
  921. "name": "id",
  922. "entityType": "columns",
  923. "table": "session_pending"
  924. },
  925. {
  926. "type": "text",
  927. "notNull": true,
  928. "autoincrement": false,
  929. "default": null,
  930. "generated": null,
  931. "name": "session_id",
  932. "entityType": "columns",
  933. "table": "session_pending"
  934. },
  935. {
  936. "type": "text",
  937. "notNull": true,
  938. "autoincrement": false,
  939. "default": null,
  940. "generated": null,
  941. "name": "type",
  942. "entityType": "columns",
  943. "table": "session_pending"
  944. },
  945. {
  946. "type": "text",
  947. "notNull": true,
  948. "autoincrement": false,
  949. "default": null,
  950. "generated": null,
  951. "name": "data",
  952. "entityType": "columns",
  953. "table": "session_pending"
  954. },
  955. {
  956. "type": "text",
  957. "notNull": false,
  958. "autoincrement": false,
  959. "default": null,
  960. "generated": null,
  961. "name": "delivery",
  962. "entityType": "columns",
  963. "table": "session_pending"
  964. },
  965. {
  966. "type": "integer",
  967. "notNull": true,
  968. "autoincrement": false,
  969. "default": null,
  970. "generated": null,
  971. "name": "admitted_seq",
  972. "entityType": "columns",
  973. "table": "session_pending"
  974. },
  975. {
  976. "type": "integer",
  977. "notNull": true,
  978. "autoincrement": false,
  979. "default": null,
  980. "generated": null,
  981. "name": "time_created",
  982. "entityType": "columns",
  983. "table": "session_pending"
  984. },
  985. {
  986. "type": "text",
  987. "notNull": false,
  988. "autoincrement": false,
  989. "default": null,
  990. "generated": null,
  991. "name": "id",
  992. "entityType": "columns",
  993. "table": "session_v2"
  994. },
  995. {
  996. "type": "text",
  997. "notNull": true,
  998. "autoincrement": false,
  999. "default": null,
  1000. "generated": null,
  1001. "name": "project_id",
  1002. "entityType": "columns",
  1003. "table": "session_v2"
  1004. },
  1005. {
  1006. "type": "text",
  1007. "notNull": false,
  1008. "autoincrement": false,
  1009. "default": null,
  1010. "generated": null,
  1011. "name": "workspace_id",
  1012. "entityType": "columns",
  1013. "table": "session_v2"
  1014. },
  1015. {
  1016. "type": "text",
  1017. "notNull": false,
  1018. "autoincrement": false,
  1019. "default": null,
  1020. "generated": null,
  1021. "name": "parent_id",
  1022. "entityType": "columns",
  1023. "table": "session_v2"
  1024. },
  1025. {
  1026. "type": "text",
  1027. "notNull": false,
  1028. "autoincrement": false,
  1029. "default": null,
  1030. "generated": null,
  1031. "name": "fork_session_id",
  1032. "entityType": "columns",
  1033. "table": "session_v2"
  1034. },
  1035. {
  1036. "type": "text",
  1037. "notNull": false,
  1038. "autoincrement": false,
  1039. "default": null,
  1040. "generated": null,
  1041. "name": "fork_boundary",
  1042. "entityType": "columns",
  1043. "table": "session_v2"
  1044. },
  1045. {
  1046. "type": "text",
  1047. "notNull": true,
  1048. "autoincrement": false,
  1049. "default": null,
  1050. "generated": null,
  1051. "name": "slug",
  1052. "entityType": "columns",
  1053. "table": "session_v2"
  1054. },
  1055. {
  1056. "type": "text",
  1057. "notNull": true,
  1058. "autoincrement": false,
  1059. "default": null,
  1060. "generated": null,
  1061. "name": "directory",
  1062. "entityType": "columns",
  1063. "table": "session_v2"
  1064. },
  1065. {
  1066. "type": "text",
  1067. "notNull": false,
  1068. "autoincrement": false,
  1069. "default": null,
  1070. "generated": null,
  1071. "name": "path",
  1072. "entityType": "columns",
  1073. "table": "session_v2"
  1074. },
  1075. {
  1076. "type": "text",
  1077. "notNull": false,
  1078. "autoincrement": false,
  1079. "default": null,
  1080. "generated": null,
  1081. "name": "title",
  1082. "entityType": "columns",
  1083. "table": "session_v2"
  1084. },
  1085. {
  1086. "type": "text",
  1087. "notNull": true,
  1088. "autoincrement": false,
  1089. "default": null,
  1090. "generated": null,
  1091. "name": "version",
  1092. "entityType": "columns",
  1093. "table": "session_v2"
  1094. },
  1095. {
  1096. "type": "text",
  1097. "notNull": false,
  1098. "autoincrement": false,
  1099. "default": null,
  1100. "generated": null,
  1101. "name": "share_url",
  1102. "entityType": "columns",
  1103. "table": "session_v2"
  1104. },
  1105. {
  1106. "type": "integer",
  1107. "notNull": false,
  1108. "autoincrement": false,
  1109. "default": null,
  1110. "generated": null,
  1111. "name": "summary_additions",
  1112. "entityType": "columns",
  1113. "table": "session_v2"
  1114. },
  1115. {
  1116. "type": "integer",
  1117. "notNull": false,
  1118. "autoincrement": false,
  1119. "default": null,
  1120. "generated": null,
  1121. "name": "summary_deletions",
  1122. "entityType": "columns",
  1123. "table": "session_v2"
  1124. },
  1125. {
  1126. "type": "integer",
  1127. "notNull": false,
  1128. "autoincrement": false,
  1129. "default": null,
  1130. "generated": null,
  1131. "name": "summary_files",
  1132. "entityType": "columns",
  1133. "table": "session_v2"
  1134. },
  1135. {
  1136. "type": "text",
  1137. "notNull": false,
  1138. "autoincrement": false,
  1139. "default": null,
  1140. "generated": null,
  1141. "name": "summary_diffs",
  1142. "entityType": "columns",
  1143. "table": "session_v2"
  1144. },
  1145. {
  1146. "type": "text",
  1147. "notNull": false,
  1148. "autoincrement": false,
  1149. "default": null,
  1150. "generated": null,
  1151. "name": "metadata",
  1152. "entityType": "columns",
  1153. "table": "session_v2"
  1154. },
  1155. {
  1156. "type": "real",
  1157. "notNull": true,
  1158. "autoincrement": false,
  1159. "default": "0",
  1160. "generated": null,
  1161. "name": "cost",
  1162. "entityType": "columns",
  1163. "table": "session_v2"
  1164. },
  1165. {
  1166. "type": "integer",
  1167. "notNull": true,
  1168. "autoincrement": false,
  1169. "default": "0",
  1170. "generated": null,
  1171. "name": "tokens_input",
  1172. "entityType": "columns",
  1173. "table": "session_v2"
  1174. },
  1175. {
  1176. "type": "integer",
  1177. "notNull": true,
  1178. "autoincrement": false,
  1179. "default": "0",
  1180. "generated": null,
  1181. "name": "tokens_output",
  1182. "entityType": "columns",
  1183. "table": "session_v2"
  1184. },
  1185. {
  1186. "type": "integer",
  1187. "notNull": true,
  1188. "autoincrement": false,
  1189. "default": "0",
  1190. "generated": null,
  1191. "name": "tokens_reasoning",
  1192. "entityType": "columns",
  1193. "table": "session_v2"
  1194. },
  1195. {
  1196. "type": "integer",
  1197. "notNull": true,
  1198. "autoincrement": false,
  1199. "default": "0",
  1200. "generated": null,
  1201. "name": "tokens_cache_read",
  1202. "entityType": "columns",
  1203. "table": "session_v2"
  1204. },
  1205. {
  1206. "type": "integer",
  1207. "notNull": true,
  1208. "autoincrement": false,
  1209. "default": "0",
  1210. "generated": null,
  1211. "name": "tokens_cache_write",
  1212. "entityType": "columns",
  1213. "table": "session_v2"
  1214. },
  1215. {
  1216. "type": "text",
  1217. "notNull": false,
  1218. "autoincrement": false,
  1219. "default": null,
  1220. "generated": null,
  1221. "name": "revert",
  1222. "entityType": "columns",
  1223. "table": "session_v2"
  1224. },
  1225. {
  1226. "type": "text",
  1227. "notNull": false,
  1228. "autoincrement": false,
  1229. "default": null,
  1230. "generated": null,
  1231. "name": "permission",
  1232. "entityType": "columns",
  1233. "table": "session_v2"
  1234. },
  1235. {
  1236. "type": "text",
  1237. "notNull": false,
  1238. "autoincrement": false,
  1239. "default": null,
  1240. "generated": null,
  1241. "name": "agent",
  1242. "entityType": "columns",
  1243. "table": "session_v2"
  1244. },
  1245. {
  1246. "type": "text",
  1247. "notNull": false,
  1248. "autoincrement": false,
  1249. "default": null,
  1250. "generated": null,
  1251. "name": "model",
  1252. "entityType": "columns",
  1253. "table": "session_v2"
  1254. },
  1255. {
  1256. "type": "integer",
  1257. "notNull": true,
  1258. "autoincrement": false,
  1259. "default": null,
  1260. "generated": null,
  1261. "name": "time_created",
  1262. "entityType": "columns",
  1263. "table": "session_v2"
  1264. },
  1265. {
  1266. "type": "integer",
  1267. "notNull": true,
  1268. "autoincrement": false,
  1269. "default": null,
  1270. "generated": null,
  1271. "name": "time_updated",
  1272. "entityType": "columns",
  1273. "table": "session_v2"
  1274. },
  1275. {
  1276. "type": "integer",
  1277. "notNull": false,
  1278. "autoincrement": false,
  1279. "default": null,
  1280. "generated": null,
  1281. "name": "time_compacting",
  1282. "entityType": "columns",
  1283. "table": "session_v2"
  1284. },
  1285. {
  1286. "type": "integer",
  1287. "notNull": false,
  1288. "autoincrement": false,
  1289. "default": null,
  1290. "generated": null,
  1291. "name": "time_archived",
  1292. "entityType": "columns",
  1293. "table": "session_v2"
  1294. },
  1295. {
  1296. "type": "integer",
  1297. "notNull": false,
  1298. "autoincrement": false,
  1299. "default": null,
  1300. "generated": null,
  1301. "name": "time_suspended",
  1302. "entityType": "columns",
  1303. "table": "session_v2"
  1304. },
  1305. {
  1306. "type": "integer",
  1307. "notNull": true,
  1308. "autoincrement": false,
  1309. "default": "0",
  1310. "generated": null,
  1311. "name": "resume_attempts",
  1312. "entityType": "columns",
  1313. "table": "session_v2"
  1314. },
  1315. {
  1316. "type": "text",
  1317. "notNull": false,
  1318. "autoincrement": false,
  1319. "default": null,
  1320. "generated": null,
  1321. "name": "id",
  1322. "entityType": "columns",
  1323. "table": "workspace"
  1324. },
  1325. {
  1326. "type": "text",
  1327. "notNull": true,
  1328. "autoincrement": false,
  1329. "default": null,
  1330. "generated": null,
  1331. "name": "provider",
  1332. "entityType": "columns",
  1333. "table": "workspace"
  1334. },
  1335. {
  1336. "type": "text",
  1337. "notNull": true,
  1338. "autoincrement": false,
  1339. "default": null,
  1340. "generated": null,
  1341. "name": "binding",
  1342. "entityType": "columns",
  1343. "table": "workspace"
  1344. },
  1345. {
  1346. "type": "integer",
  1347. "notNull": true,
  1348. "autoincrement": false,
  1349. "default": null,
  1350. "generated": null,
  1351. "name": "created_at",
  1352. "entityType": "columns",
  1353. "table": "workspace"
  1354. },
  1355. {
  1356. "type": "integer",
  1357. "notNull": true,
  1358. "autoincrement": false,
  1359. "default": null,
  1360. "generated": null,
  1361. "name": "last_used_at",
  1362. "entityType": "columns",
  1363. "table": "workspace"
  1364. },
  1365. {
  1366. "columns": ["active_account_id"],
  1367. "tableTo": "account",
  1368. "columnsTo": ["id"],
  1369. "onUpdate": "NO ACTION",
  1370. "onDelete": "SET NULL",
  1371. "nameExplicit": false,
  1372. "name": "fk_account_state_active_account_id_account_id_fk",
  1373. "entityType": "fks",
  1374. "table": "account_state"
  1375. },
  1376. {
  1377. "columns": ["aggregate_id"],
  1378. "tableTo": "event_sequence",
  1379. "columnsTo": ["aggregate_id"],
  1380. "onUpdate": "NO ACTION",
  1381. "onDelete": "CASCADE",
  1382. "nameExplicit": false,
  1383. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1384. "entityType": "fks",
  1385. "table": "event"
  1386. },
  1387. {
  1388. "columns": ["project_id"],
  1389. "tableTo": "project",
  1390. "columnsTo": ["id"],
  1391. "onUpdate": "NO ACTION",
  1392. "onDelete": "CASCADE",
  1393. "nameExplicit": false,
  1394. "name": "fk_permission_project_id_project_id_fk",
  1395. "entityType": "fks",
  1396. "table": "permission"
  1397. },
  1398. {
  1399. "columns": ["project_id"],
  1400. "tableTo": "project",
  1401. "columnsTo": ["id"],
  1402. "onUpdate": "NO ACTION",
  1403. "onDelete": "CASCADE",
  1404. "nameExplicit": false,
  1405. "name": "fk_project_directory_project_id_project_id_fk",
  1406. "entityType": "fks",
  1407. "table": "project_directory"
  1408. },
  1409. {
  1410. "columns": ["session_id"],
  1411. "tableTo": "session_v2",
  1412. "columnsTo": ["id"],
  1413. "onUpdate": "NO ACTION",
  1414. "onDelete": "CASCADE",
  1415. "nameExplicit": false,
  1416. "name": "fk_instruction_entry_session_id_session_v2_id_fk",
  1417. "entityType": "fks",
  1418. "table": "instruction_entry"
  1419. },
  1420. {
  1421. "columns": ["session_id"],
  1422. "tableTo": "session_v2",
  1423. "columnsTo": ["id"],
  1424. "onUpdate": "NO ACTION",
  1425. "onDelete": "CASCADE",
  1426. "nameExplicit": false,
  1427. "name": "fk_instruction_state_session_id_session_v2_id_fk",
  1428. "entityType": "fks",
  1429. "table": "instruction_state"
  1430. },
  1431. {
  1432. "columns": ["session_id"],
  1433. "tableTo": "session_v2",
  1434. "columnsTo": ["id"],
  1435. "onUpdate": "NO ACTION",
  1436. "onDelete": "CASCADE",
  1437. "nameExplicit": false,
  1438. "name": "fk_session_message_session_id_session_v2_id_fk",
  1439. "entityType": "fks",
  1440. "table": "session_message"
  1441. },
  1442. {
  1443. "columns": ["session_id"],
  1444. "tableTo": "session_v2",
  1445. "columnsTo": ["id"],
  1446. "onUpdate": "NO ACTION",
  1447. "onDelete": "CASCADE",
  1448. "nameExplicit": false,
  1449. "name": "fk_session_pending_session_id_session_v2_id_fk",
  1450. "entityType": "fks",
  1451. "table": "session_pending"
  1452. },
  1453. {
  1454. "columns": ["project_id"],
  1455. "tableTo": "project",
  1456. "columnsTo": ["id"],
  1457. "onUpdate": "NO ACTION",
  1458. "onDelete": "CASCADE",
  1459. "nameExplicit": false,
  1460. "name": "fk_session_v2_project_id_project_id_fk",
  1461. "entityType": "fks",
  1462. "table": "session_v2"
  1463. },
  1464. {
  1465. "columns": ["email", "url"],
  1466. "nameExplicit": false,
  1467. "name": "control_account_pk",
  1468. "entityType": "pks",
  1469. "table": "control_account"
  1470. },
  1471. {
  1472. "columns": ["project_id", "directory"],
  1473. "nameExplicit": false,
  1474. "name": "project_directory_pk",
  1475. "entityType": "pks",
  1476. "table": "project_directory"
  1477. },
  1478. {
  1479. "columns": ["session_id", "key"],
  1480. "nameExplicit": false,
  1481. "name": "instruction_entry_pk",
  1482. "entityType": "pks",
  1483. "table": "instruction_entry"
  1484. },
  1485. {
  1486. "columns": ["id"],
  1487. "nameExplicit": false,
  1488. "name": "account_state_pk",
  1489. "table": "account_state",
  1490. "entityType": "pks"
  1491. },
  1492. {
  1493. "columns": ["id"],
  1494. "nameExplicit": false,
  1495. "name": "account_pk",
  1496. "table": "account",
  1497. "entityType": "pks"
  1498. },
  1499. {
  1500. "columns": ["id"],
  1501. "nameExplicit": false,
  1502. "name": "credential_pk",
  1503. "table": "credential",
  1504. "entityType": "pks"
  1505. },
  1506. {
  1507. "columns": ["aggregate_id"],
  1508. "nameExplicit": false,
  1509. "name": "event_sequence_pk",
  1510. "table": "event_sequence",
  1511. "entityType": "pks"
  1512. },
  1513. {
  1514. "columns": ["id"],
  1515. "nameExplicit": false,
  1516. "name": "event_pk",
  1517. "table": "event",
  1518. "entityType": "pks"
  1519. },
  1520. {
  1521. "columns": ["key"],
  1522. "nameExplicit": false,
  1523. "name": "kv_pk",
  1524. "table": "kv",
  1525. "entityType": "pks"
  1526. },
  1527. {
  1528. "columns": ["id"],
  1529. "nameExplicit": false,
  1530. "name": "permission_pk",
  1531. "table": "permission",
  1532. "entityType": "pks"
  1533. },
  1534. {
  1535. "columns": ["id"],
  1536. "nameExplicit": false,
  1537. "name": "project_pk",
  1538. "table": "project",
  1539. "entityType": "pks"
  1540. },
  1541. {
  1542. "columns": ["hash"],
  1543. "nameExplicit": false,
  1544. "name": "instruction_blob_pk",
  1545. "table": "instruction_blob",
  1546. "entityType": "pks"
  1547. },
  1548. {
  1549. "columns": ["session_id"],
  1550. "nameExplicit": false,
  1551. "name": "instruction_state_pk",
  1552. "table": "instruction_state",
  1553. "entityType": "pks"
  1554. },
  1555. {
  1556. "columns": ["id"],
  1557. "nameExplicit": false,
  1558. "name": "session_message_pk",
  1559. "table": "session_message",
  1560. "entityType": "pks"
  1561. },
  1562. {
  1563. "columns": ["id"],
  1564. "nameExplicit": false,
  1565. "name": "session_pending_pk",
  1566. "table": "session_pending",
  1567. "entityType": "pks"
  1568. },
  1569. {
  1570. "columns": ["id"],
  1571. "nameExplicit": false,
  1572. "name": "session_v2_pk",
  1573. "table": "session_v2",
  1574. "entityType": "pks"
  1575. },
  1576. {
  1577. "columns": ["id"],
  1578. "nameExplicit": false,
  1579. "name": "workspace_pk",
  1580. "table": "workspace",
  1581. "entityType": "pks"
  1582. },
  1583. {
  1584. "columns": [
  1585. {
  1586. "value": "aggregate_id",
  1587. "isExpression": false
  1588. },
  1589. {
  1590. "value": "seq",
  1591. "isExpression": false
  1592. }
  1593. ],
  1594. "isUnique": true,
  1595. "where": null,
  1596. "origin": "manual",
  1597. "name": "event_aggregate_seq_idx",
  1598. "entityType": "indexes",
  1599. "table": "event"
  1600. },
  1601. {
  1602. "columns": [
  1603. {
  1604. "value": "aggregate_id",
  1605. "isExpression": false
  1606. },
  1607. {
  1608. "value": "type",
  1609. "isExpression": false
  1610. },
  1611. {
  1612. "value": "seq",
  1613. "isExpression": false
  1614. }
  1615. ],
  1616. "isUnique": false,
  1617. "where": null,
  1618. "origin": "manual",
  1619. "name": "event_aggregate_type_seq_idx",
  1620. "entityType": "indexes",
  1621. "table": "event"
  1622. },
  1623. {
  1624. "columns": [
  1625. {
  1626. "value": "project_id",
  1627. "isExpression": false
  1628. },
  1629. {
  1630. "value": "action",
  1631. "isExpression": false
  1632. },
  1633. {
  1634. "value": "resource",
  1635. "isExpression": false
  1636. }
  1637. ],
  1638. "isUnique": true,
  1639. "where": null,
  1640. "origin": "manual",
  1641. "name": "permission_project_action_resource_idx",
  1642. "entityType": "indexes",
  1643. "table": "permission"
  1644. },
  1645. {
  1646. "columns": [
  1647. {
  1648. "value": "session_id",
  1649. "isExpression": false
  1650. },
  1651. {
  1652. "value": "seq",
  1653. "isExpression": false
  1654. }
  1655. ],
  1656. "isUnique": true,
  1657. "where": null,
  1658. "origin": "manual",
  1659. "name": "session_message_session_seq_idx",
  1660. "entityType": "indexes",
  1661. "table": "session_message"
  1662. },
  1663. {
  1664. "columns": [
  1665. {
  1666. "value": "session_id",
  1667. "isExpression": false
  1668. },
  1669. {
  1670. "value": "type",
  1671. "isExpression": false
  1672. },
  1673. {
  1674. "value": "seq",
  1675. "isExpression": false
  1676. }
  1677. ],
  1678. "isUnique": false,
  1679. "where": null,
  1680. "origin": "manual",
  1681. "name": "session_message_session_type_seq_idx",
  1682. "entityType": "indexes",
  1683. "table": "session_message"
  1684. },
  1685. {
  1686. "columns": [
  1687. {
  1688. "value": "session_id",
  1689. "isExpression": false
  1690. },
  1691. {
  1692. "value": "time_created",
  1693. "isExpression": false
  1694. },
  1695. {
  1696. "value": "id",
  1697. "isExpression": false
  1698. }
  1699. ],
  1700. "isUnique": false,
  1701. "where": null,
  1702. "origin": "manual",
  1703. "name": "session_message_session_time_created_id_idx",
  1704. "entityType": "indexes",
  1705. "table": "session_message"
  1706. },
  1707. {
  1708. "columns": [
  1709. {
  1710. "value": "time_created",
  1711. "isExpression": false
  1712. }
  1713. ],
  1714. "isUnique": false,
  1715. "where": null,
  1716. "origin": "manual",
  1717. "name": "session_message_time_created_idx",
  1718. "entityType": "indexes",
  1719. "table": "session_message"
  1720. },
  1721. {
  1722. "columns": [
  1723. {
  1724. "value": "session_id",
  1725. "isExpression": false
  1726. },
  1727. {
  1728. "value": "delivery",
  1729. "isExpression": false
  1730. },
  1731. {
  1732. "value": "admitted_seq",
  1733. "isExpression": false
  1734. }
  1735. ],
  1736. "isUnique": false,
  1737. "where": null,
  1738. "origin": "manual",
  1739. "name": "session_pending_session_delivery_seq_idx",
  1740. "entityType": "indexes",
  1741. "table": "session_pending"
  1742. },
  1743. {
  1744. "columns": [
  1745. {
  1746. "value": "session_id",
  1747. "isExpression": false
  1748. }
  1749. ],
  1750. "isUnique": true,
  1751. "where": "\"session_pending\".\"type\" = 'compaction'",
  1752. "origin": "manual",
  1753. "name": "session_pending_session_compaction_idx",
  1754. "entityType": "indexes",
  1755. "table": "session_pending"
  1756. },
  1757. {
  1758. "columns": [
  1759. {
  1760. "value": "session_id",
  1761. "isExpression": false
  1762. },
  1763. {
  1764. "value": "admitted_seq",
  1765. "isExpression": false
  1766. }
  1767. ],
  1768. "isUnique": true,
  1769. "where": null,
  1770. "origin": "manual",
  1771. "name": "session_pending_session_admitted_seq_idx",
  1772. "entityType": "indexes",
  1773. "table": "session_pending"
  1774. },
  1775. {
  1776. "columns": [
  1777. {
  1778. "value": "project_id",
  1779. "isExpression": false
  1780. }
  1781. ],
  1782. "isUnique": false,
  1783. "where": null,
  1784. "origin": "manual",
  1785. "name": "session_v2_project_idx",
  1786. "entityType": "indexes",
  1787. "table": "session_v2"
  1788. },
  1789. {
  1790. "columns": [
  1791. {
  1792. "value": "workspace_id",
  1793. "isExpression": false
  1794. }
  1795. ],
  1796. "isUnique": false,
  1797. "where": null,
  1798. "origin": "manual",
  1799. "name": "session_v2_workspace_idx",
  1800. "entityType": "indexes",
  1801. "table": "session_v2"
  1802. },
  1803. {
  1804. "columns": [
  1805. {
  1806. "value": "parent_id",
  1807. "isExpression": false
  1808. }
  1809. ],
  1810. "isUnique": false,
  1811. "where": null,
  1812. "origin": "manual",
  1813. "name": "session_v2_parent_idx",
  1814. "entityType": "indexes",
  1815. "table": "session_v2"
  1816. },
  1817. {
  1818. "columns": [
  1819. {
  1820. "value": "time_suspended",
  1821. "isExpression": false
  1822. }
  1823. ],
  1824. "isUnique": false,
  1825. "where": "\"session_v2\".\"time_suspended\" is not null",
  1826. "origin": "manual",
  1827. "name": "session_v2_time_suspended_idx",
  1828. "entityType": "indexes",
  1829. "table": "session_v2"
  1830. }
  1831. ],
  1832. "renames": []
  1833. }