schema.json 43 KB

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