schema.json 46 KB

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