schema.json 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "169a0f0f-d58f-479f-b024-fa1c7b9a09db",
  5. "prevIds": [
  6. "abd2f920-b822-49af-b8a7-2e48367d424f"
  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": "'build'",
  910. "generated": null,
  911. "name": "agent",
  912. "entityType": "columns",
  913. "table": "session_context_epoch"
  914. },
  915. {
  916. "type": "text",
  917. "notNull": true,
  918. "autoincrement": false,
  919. "default": null,
  920. "generated": null,
  921. "name": "snapshot",
  922. "entityType": "columns",
  923. "table": "session_context_epoch"
  924. },
  925. {
  926. "type": "integer",
  927. "notNull": true,
  928. "autoincrement": false,
  929. "default": null,
  930. "generated": null,
  931. "name": "baseline_seq",
  932. "entityType": "columns",
  933. "table": "session_context_epoch"
  934. },
  935. {
  936. "type": "integer",
  937. "notNull": false,
  938. "autoincrement": false,
  939. "default": null,
  940. "generated": null,
  941. "name": "replacement_seq",
  942. "entityType": "columns",
  943. "table": "session_context_epoch"
  944. },
  945. {
  946. "type": "integer",
  947. "notNull": true,
  948. "autoincrement": false,
  949. "default": "0",
  950. "generated": null,
  951. "name": "revision",
  952. "entityType": "columns",
  953. "table": "session_context_epoch"
  954. },
  955. {
  956. "type": "text",
  957. "notNull": false,
  958. "autoincrement": false,
  959. "default": null,
  960. "generated": null,
  961. "name": "id",
  962. "entityType": "columns",
  963. "table": "session_input"
  964. },
  965. {
  966. "type": "text",
  967. "notNull": true,
  968. "autoincrement": false,
  969. "default": null,
  970. "generated": null,
  971. "name": "session_id",
  972. "entityType": "columns",
  973. "table": "session_input"
  974. },
  975. {
  976. "type": "text",
  977. "notNull": true,
  978. "autoincrement": false,
  979. "default": null,
  980. "generated": null,
  981. "name": "prompt",
  982. "entityType": "columns",
  983. "table": "session_input"
  984. },
  985. {
  986. "type": "text",
  987. "notNull": true,
  988. "autoincrement": false,
  989. "default": null,
  990. "generated": null,
  991. "name": "delivery",
  992. "entityType": "columns",
  993. "table": "session_input"
  994. },
  995. {
  996. "type": "integer",
  997. "notNull": true,
  998. "autoincrement": false,
  999. "default": null,
  1000. "generated": null,
  1001. "name": "admitted_seq",
  1002. "entityType": "columns",
  1003. "table": "session_input"
  1004. },
  1005. {
  1006. "type": "integer",
  1007. "notNull": false,
  1008. "autoincrement": false,
  1009. "default": null,
  1010. "generated": null,
  1011. "name": "promoted_seq",
  1012. "entityType": "columns",
  1013. "table": "session_input"
  1014. },
  1015. {
  1016. "type": "integer",
  1017. "notNull": true,
  1018. "autoincrement": false,
  1019. "default": null,
  1020. "generated": null,
  1021. "name": "time_created",
  1022. "entityType": "columns",
  1023. "table": "session_input"
  1024. },
  1025. {
  1026. "type": "text",
  1027. "notNull": false,
  1028. "autoincrement": false,
  1029. "default": null,
  1030. "generated": null,
  1031. "name": "id",
  1032. "entityType": "columns",
  1033. "table": "session_message"
  1034. },
  1035. {
  1036. "type": "text",
  1037. "notNull": true,
  1038. "autoincrement": false,
  1039. "default": null,
  1040. "generated": null,
  1041. "name": "session_id",
  1042. "entityType": "columns",
  1043. "table": "session_message"
  1044. },
  1045. {
  1046. "type": "text",
  1047. "notNull": true,
  1048. "autoincrement": false,
  1049. "default": null,
  1050. "generated": null,
  1051. "name": "type",
  1052. "entityType": "columns",
  1053. "table": "session_message"
  1054. },
  1055. {
  1056. "type": "integer",
  1057. "notNull": true,
  1058. "autoincrement": false,
  1059. "default": null,
  1060. "generated": null,
  1061. "name": "seq",
  1062. "entityType": "columns",
  1063. "table": "session_message"
  1064. },
  1065. {
  1066. "type": "integer",
  1067. "notNull": true,
  1068. "autoincrement": false,
  1069. "default": null,
  1070. "generated": null,
  1071. "name": "time_created",
  1072. "entityType": "columns",
  1073. "table": "session_message"
  1074. },
  1075. {
  1076. "type": "integer",
  1077. "notNull": true,
  1078. "autoincrement": false,
  1079. "default": null,
  1080. "generated": null,
  1081. "name": "time_updated",
  1082. "entityType": "columns",
  1083. "table": "session_message"
  1084. },
  1085. {
  1086. "type": "text",
  1087. "notNull": true,
  1088. "autoincrement": false,
  1089. "default": null,
  1090. "generated": null,
  1091. "name": "data",
  1092. "entityType": "columns",
  1093. "table": "session_message"
  1094. },
  1095. {
  1096. "type": "text",
  1097. "notNull": false,
  1098. "autoincrement": false,
  1099. "default": null,
  1100. "generated": null,
  1101. "name": "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": "project_id",
  1112. "entityType": "columns",
  1113. "table": "session"
  1114. },
  1115. {
  1116. "type": "text",
  1117. "notNull": false,
  1118. "autoincrement": false,
  1119. "default": null,
  1120. "generated": null,
  1121. "name": "workspace_id",
  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": "parent_id",
  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": "slug",
  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": "directory",
  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": "path",
  1162. "entityType": "columns",
  1163. "table": "session"
  1164. },
  1165. {
  1166. "type": "text",
  1167. "notNull": true,
  1168. "autoincrement": false,
  1169. "default": null,
  1170. "generated": null,
  1171. "name": "title",
  1172. "entityType": "columns",
  1173. "table": "session"
  1174. },
  1175. {
  1176. "type": "text",
  1177. "notNull": true,
  1178. "autoincrement": false,
  1179. "default": null,
  1180. "generated": null,
  1181. "name": "version",
  1182. "entityType": "columns",
  1183. "table": "session"
  1184. },
  1185. {
  1186. "type": "text",
  1187. "notNull": false,
  1188. "autoincrement": false,
  1189. "default": null,
  1190. "generated": null,
  1191. "name": "share_url",
  1192. "entityType": "columns",
  1193. "table": "session"
  1194. },
  1195. {
  1196. "type": "integer",
  1197. "notNull": false,
  1198. "autoincrement": false,
  1199. "default": null,
  1200. "generated": null,
  1201. "name": "summary_additions",
  1202. "entityType": "columns",
  1203. "table": "session"
  1204. },
  1205. {
  1206. "type": "integer",
  1207. "notNull": false,
  1208. "autoincrement": false,
  1209. "default": null,
  1210. "generated": null,
  1211. "name": "summary_deletions",
  1212. "entityType": "columns",
  1213. "table": "session"
  1214. },
  1215. {
  1216. "type": "integer",
  1217. "notNull": false,
  1218. "autoincrement": false,
  1219. "default": null,
  1220. "generated": null,
  1221. "name": "summary_files",
  1222. "entityType": "columns",
  1223. "table": "session"
  1224. },
  1225. {
  1226. "type": "text",
  1227. "notNull": false,
  1228. "autoincrement": false,
  1229. "default": null,
  1230. "generated": null,
  1231. "name": "summary_diffs",
  1232. "entityType": "columns",
  1233. "table": "session"
  1234. },
  1235. {
  1236. "type": "text",
  1237. "notNull": false,
  1238. "autoincrement": false,
  1239. "default": null,
  1240. "generated": null,
  1241. "name": "metadata",
  1242. "entityType": "columns",
  1243. "table": "session"
  1244. },
  1245. {
  1246. "type": "real",
  1247. "notNull": true,
  1248. "autoincrement": false,
  1249. "default": "0",
  1250. "generated": null,
  1251. "name": "cost",
  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_input",
  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_output",
  1272. "entityType": "columns",
  1273. "table": "session"
  1274. },
  1275. {
  1276. "type": "integer",
  1277. "notNull": true,
  1278. "autoincrement": false,
  1279. "default": "0",
  1280. "generated": null,
  1281. "name": "tokens_reasoning",
  1282. "entityType": "columns",
  1283. "table": "session"
  1284. },
  1285. {
  1286. "type": "integer",
  1287. "notNull": true,
  1288. "autoincrement": false,
  1289. "default": "0",
  1290. "generated": null,
  1291. "name": "tokens_cache_read",
  1292. "entityType": "columns",
  1293. "table": "session"
  1294. },
  1295. {
  1296. "type": "integer",
  1297. "notNull": true,
  1298. "autoincrement": false,
  1299. "default": "0",
  1300. "generated": null,
  1301. "name": "tokens_cache_write",
  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": "revert",
  1312. "entityType": "columns",
  1313. "table": "session"
  1314. },
  1315. {
  1316. "type": "text",
  1317. "notNull": false,
  1318. "autoincrement": false,
  1319. "default": null,
  1320. "generated": null,
  1321. "name": "permission",
  1322. "entityType": "columns",
  1323. "table": "session"
  1324. },
  1325. {
  1326. "type": "text",
  1327. "notNull": false,
  1328. "autoincrement": false,
  1329. "default": null,
  1330. "generated": null,
  1331. "name": "agent",
  1332. "entityType": "columns",
  1333. "table": "session"
  1334. },
  1335. {
  1336. "type": "text",
  1337. "notNull": false,
  1338. "autoincrement": false,
  1339. "default": null,
  1340. "generated": null,
  1341. "name": "model",
  1342. "entityType": "columns",
  1343. "table": "session"
  1344. },
  1345. {
  1346. "type": "integer",
  1347. "notNull": true,
  1348. "autoincrement": false,
  1349. "default": null,
  1350. "generated": null,
  1351. "name": "time_created",
  1352. "entityType": "columns",
  1353. "table": "session"
  1354. },
  1355. {
  1356. "type": "integer",
  1357. "notNull": true,
  1358. "autoincrement": false,
  1359. "default": null,
  1360. "generated": null,
  1361. "name": "time_updated",
  1362. "entityType": "columns",
  1363. "table": "session"
  1364. },
  1365. {
  1366. "type": "integer",
  1367. "notNull": false,
  1368. "autoincrement": false,
  1369. "default": null,
  1370. "generated": null,
  1371. "name": "time_compacting",
  1372. "entityType": "columns",
  1373. "table": "session"
  1374. },
  1375. {
  1376. "type": "integer",
  1377. "notNull": false,
  1378. "autoincrement": false,
  1379. "default": null,
  1380. "generated": null,
  1381. "name": "time_archived",
  1382. "entityType": "columns",
  1383. "table": "session"
  1384. },
  1385. {
  1386. "type": "text",
  1387. "notNull": true,
  1388. "autoincrement": false,
  1389. "default": null,
  1390. "generated": null,
  1391. "name": "session_id",
  1392. "entityType": "columns",
  1393. "table": "todo"
  1394. },
  1395. {
  1396. "type": "text",
  1397. "notNull": true,
  1398. "autoincrement": false,
  1399. "default": null,
  1400. "generated": null,
  1401. "name": "content",
  1402. "entityType": "columns",
  1403. "table": "todo"
  1404. },
  1405. {
  1406. "type": "text",
  1407. "notNull": true,
  1408. "autoincrement": false,
  1409. "default": null,
  1410. "generated": null,
  1411. "name": "status",
  1412. "entityType": "columns",
  1413. "table": "todo"
  1414. },
  1415. {
  1416. "type": "text",
  1417. "notNull": true,
  1418. "autoincrement": false,
  1419. "default": null,
  1420. "generated": null,
  1421. "name": "priority",
  1422. "entityType": "columns",
  1423. "table": "todo"
  1424. },
  1425. {
  1426. "type": "integer",
  1427. "notNull": true,
  1428. "autoincrement": false,
  1429. "default": null,
  1430. "generated": null,
  1431. "name": "position",
  1432. "entityType": "columns",
  1433. "table": "todo"
  1434. },
  1435. {
  1436. "type": "integer",
  1437. "notNull": true,
  1438. "autoincrement": false,
  1439. "default": null,
  1440. "generated": null,
  1441. "name": "time_created",
  1442. "entityType": "columns",
  1443. "table": "todo"
  1444. },
  1445. {
  1446. "type": "integer",
  1447. "notNull": true,
  1448. "autoincrement": false,
  1449. "default": null,
  1450. "generated": null,
  1451. "name": "time_updated",
  1452. "entityType": "columns",
  1453. "table": "todo"
  1454. },
  1455. {
  1456. "type": "text",
  1457. "notNull": false,
  1458. "autoincrement": false,
  1459. "default": null,
  1460. "generated": null,
  1461. "name": "session_id",
  1462. "entityType": "columns",
  1463. "table": "session_share"
  1464. },
  1465. {
  1466. "type": "text",
  1467. "notNull": true,
  1468. "autoincrement": false,
  1469. "default": null,
  1470. "generated": null,
  1471. "name": "id",
  1472. "entityType": "columns",
  1473. "table": "session_share"
  1474. },
  1475. {
  1476. "type": "text",
  1477. "notNull": true,
  1478. "autoincrement": false,
  1479. "default": null,
  1480. "generated": null,
  1481. "name": "secret",
  1482. "entityType": "columns",
  1483. "table": "session_share"
  1484. },
  1485. {
  1486. "type": "text",
  1487. "notNull": true,
  1488. "autoincrement": false,
  1489. "default": null,
  1490. "generated": null,
  1491. "name": "url",
  1492. "entityType": "columns",
  1493. "table": "session_share"
  1494. },
  1495. {
  1496. "type": "integer",
  1497. "notNull": true,
  1498. "autoincrement": false,
  1499. "default": null,
  1500. "generated": null,
  1501. "name": "time_created",
  1502. "entityType": "columns",
  1503. "table": "session_share"
  1504. },
  1505. {
  1506. "type": "integer",
  1507. "notNull": true,
  1508. "autoincrement": false,
  1509. "default": null,
  1510. "generated": null,
  1511. "name": "time_updated",
  1512. "entityType": "columns",
  1513. "table": "session_share"
  1514. },
  1515. {
  1516. "columns": [
  1517. "project_id"
  1518. ],
  1519. "tableTo": "project",
  1520. "columnsTo": [
  1521. "id"
  1522. ],
  1523. "onUpdate": "NO ACTION",
  1524. "onDelete": "CASCADE",
  1525. "nameExplicit": false,
  1526. "name": "fk_workspace_project_id_project_id_fk",
  1527. "entityType": "fks",
  1528. "table": "workspace"
  1529. },
  1530. {
  1531. "columns": [
  1532. "active_account_id"
  1533. ],
  1534. "tableTo": "account",
  1535. "columnsTo": [
  1536. "id"
  1537. ],
  1538. "onUpdate": "NO ACTION",
  1539. "onDelete": "SET NULL",
  1540. "nameExplicit": false,
  1541. "name": "fk_account_state_active_account_id_account_id_fk",
  1542. "entityType": "fks",
  1543. "table": "account_state"
  1544. },
  1545. {
  1546. "columns": [
  1547. "aggregate_id"
  1548. ],
  1549. "tableTo": "event_sequence",
  1550. "columnsTo": [
  1551. "aggregate_id"
  1552. ],
  1553. "onUpdate": "NO ACTION",
  1554. "onDelete": "CASCADE",
  1555. "nameExplicit": false,
  1556. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1557. "entityType": "fks",
  1558. "table": "event"
  1559. },
  1560. {
  1561. "columns": [
  1562. "project_id"
  1563. ],
  1564. "tableTo": "project",
  1565. "columnsTo": [
  1566. "id"
  1567. ],
  1568. "onUpdate": "NO ACTION",
  1569. "onDelete": "CASCADE",
  1570. "nameExplicit": false,
  1571. "name": "fk_permission_project_id_project_id_fk",
  1572. "entityType": "fks",
  1573. "table": "permission"
  1574. },
  1575. {
  1576. "columns": [
  1577. "project_id"
  1578. ],
  1579. "tableTo": "project",
  1580. "columnsTo": [
  1581. "id"
  1582. ],
  1583. "onUpdate": "NO ACTION",
  1584. "onDelete": "CASCADE",
  1585. "nameExplicit": false,
  1586. "name": "fk_project_directory_project_id_project_id_fk",
  1587. "entityType": "fks",
  1588. "table": "project_directory"
  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_message_session_id_session_id_fk",
  1602. "entityType": "fks",
  1603. "table": "message"
  1604. },
  1605. {
  1606. "columns": [
  1607. "message_id"
  1608. ],
  1609. "tableTo": "message",
  1610. "columnsTo": [
  1611. "id"
  1612. ],
  1613. "onUpdate": "NO ACTION",
  1614. "onDelete": "CASCADE",
  1615. "nameExplicit": false,
  1616. "name": "fk_part_message_id_message_id_fk",
  1617. "entityType": "fks",
  1618. "table": "part"
  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_context_epoch_session_id_session_id_fk",
  1632. "entityType": "fks",
  1633. "table": "session_context_epoch"
  1634. },
  1635. {
  1636. "columns": [
  1637. "session_id"
  1638. ],
  1639. "tableTo": "session",
  1640. "columnsTo": [
  1641. "id"
  1642. ],
  1643. "onUpdate": "NO ACTION",
  1644. "onDelete": "CASCADE",
  1645. "nameExplicit": false,
  1646. "name": "fk_session_input_session_id_session_id_fk",
  1647. "entityType": "fks",
  1648. "table": "session_input"
  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_session_message_session_id_session_id_fk",
  1662. "entityType": "fks",
  1663. "table": "session_message"
  1664. },
  1665. {
  1666. "columns": [
  1667. "project_id"
  1668. ],
  1669. "tableTo": "project",
  1670. "columnsTo": [
  1671. "id"
  1672. ],
  1673. "onUpdate": "NO ACTION",
  1674. "onDelete": "CASCADE",
  1675. "nameExplicit": false,
  1676. "name": "fk_session_project_id_project_id_fk",
  1677. "entityType": "fks",
  1678. "table": "session"
  1679. },
  1680. {
  1681. "columns": [
  1682. "session_id"
  1683. ],
  1684. "tableTo": "session",
  1685. "columnsTo": [
  1686. "id"
  1687. ],
  1688. "onUpdate": "NO ACTION",
  1689. "onDelete": "CASCADE",
  1690. "nameExplicit": false,
  1691. "name": "fk_todo_session_id_session_id_fk",
  1692. "entityType": "fks",
  1693. "table": "todo"
  1694. },
  1695. {
  1696. "columns": [
  1697. "session_id"
  1698. ],
  1699. "tableTo": "session",
  1700. "columnsTo": [
  1701. "id"
  1702. ],
  1703. "onUpdate": "NO ACTION",
  1704. "onDelete": "CASCADE",
  1705. "nameExplicit": false,
  1706. "name": "fk_session_share_session_id_session_id_fk",
  1707. "entityType": "fks",
  1708. "table": "session_share"
  1709. },
  1710. {
  1711. "columns": [
  1712. "email",
  1713. "url"
  1714. ],
  1715. "nameExplicit": false,
  1716. "name": "control_account_pk",
  1717. "entityType": "pks",
  1718. "table": "control_account"
  1719. },
  1720. {
  1721. "columns": [
  1722. "project_id",
  1723. "directory"
  1724. ],
  1725. "nameExplicit": false,
  1726. "name": "project_directory_pk",
  1727. "entityType": "pks",
  1728. "table": "project_directory"
  1729. },
  1730. {
  1731. "columns": [
  1732. "session_id",
  1733. "position"
  1734. ],
  1735. "nameExplicit": false,
  1736. "name": "todo_pk",
  1737. "entityType": "pks",
  1738. "table": "todo"
  1739. },
  1740. {
  1741. "columns": [
  1742. "id"
  1743. ],
  1744. "nameExplicit": false,
  1745. "name": "workspace_pk",
  1746. "table": "workspace",
  1747. "entityType": "pks"
  1748. },
  1749. {
  1750. "columns": [
  1751. "name"
  1752. ],
  1753. "nameExplicit": false,
  1754. "name": "data_migration_pk",
  1755. "table": "data_migration",
  1756. "entityType": "pks"
  1757. },
  1758. {
  1759. "columns": [
  1760. "id"
  1761. ],
  1762. "nameExplicit": false,
  1763. "name": "account_state_pk",
  1764. "table": "account_state",
  1765. "entityType": "pks"
  1766. },
  1767. {
  1768. "columns": [
  1769. "id"
  1770. ],
  1771. "nameExplicit": false,
  1772. "name": "account_pk",
  1773. "table": "account",
  1774. "entityType": "pks"
  1775. },
  1776. {
  1777. "columns": [
  1778. "id"
  1779. ],
  1780. "nameExplicit": false,
  1781. "name": "credential_pk",
  1782. "table": "credential",
  1783. "entityType": "pks"
  1784. },
  1785. {
  1786. "columns": [
  1787. "aggregate_id"
  1788. ],
  1789. "nameExplicit": false,
  1790. "name": "event_sequence_pk",
  1791. "table": "event_sequence",
  1792. "entityType": "pks"
  1793. },
  1794. {
  1795. "columns": [
  1796. "id"
  1797. ],
  1798. "nameExplicit": false,
  1799. "name": "event_pk",
  1800. "table": "event",
  1801. "entityType": "pks"
  1802. },
  1803. {
  1804. "columns": [
  1805. "id"
  1806. ],
  1807. "nameExplicit": false,
  1808. "name": "permission_pk",
  1809. "table": "permission",
  1810. "entityType": "pks"
  1811. },
  1812. {
  1813. "columns": [
  1814. "id"
  1815. ],
  1816. "nameExplicit": false,
  1817. "name": "project_pk",
  1818. "table": "project",
  1819. "entityType": "pks"
  1820. },
  1821. {
  1822. "columns": [
  1823. "id"
  1824. ],
  1825. "nameExplicit": false,
  1826. "name": "message_pk",
  1827. "table": "message",
  1828. "entityType": "pks"
  1829. },
  1830. {
  1831. "columns": [
  1832. "id"
  1833. ],
  1834. "nameExplicit": false,
  1835. "name": "part_pk",
  1836. "table": "part",
  1837. "entityType": "pks"
  1838. },
  1839. {
  1840. "columns": [
  1841. "session_id"
  1842. ],
  1843. "nameExplicit": false,
  1844. "name": "session_context_epoch_pk",
  1845. "table": "session_context_epoch",
  1846. "entityType": "pks"
  1847. },
  1848. {
  1849. "columns": [
  1850. "id"
  1851. ],
  1852. "nameExplicit": false,
  1853. "name": "session_input_pk",
  1854. "table": "session_input",
  1855. "entityType": "pks"
  1856. },
  1857. {
  1858. "columns": [
  1859. "id"
  1860. ],
  1861. "nameExplicit": false,
  1862. "name": "session_message_pk",
  1863. "table": "session_message",
  1864. "entityType": "pks"
  1865. },
  1866. {
  1867. "columns": [
  1868. "id"
  1869. ],
  1870. "nameExplicit": false,
  1871. "name": "session_pk",
  1872. "table": "session",
  1873. "entityType": "pks"
  1874. },
  1875. {
  1876. "columns": [
  1877. "session_id"
  1878. ],
  1879. "nameExplicit": false,
  1880. "name": "session_share_pk",
  1881. "table": "session_share",
  1882. "entityType": "pks"
  1883. },
  1884. {
  1885. "columns": [
  1886. {
  1887. "value": "aggregate_id",
  1888. "isExpression": false
  1889. },
  1890. {
  1891. "value": "seq",
  1892. "isExpression": false
  1893. }
  1894. ],
  1895. "isUnique": true,
  1896. "where": null,
  1897. "origin": "manual",
  1898. "name": "event_aggregate_seq_idx",
  1899. "entityType": "indexes",
  1900. "table": "event"
  1901. },
  1902. {
  1903. "columns": [
  1904. {
  1905. "value": "aggregate_id",
  1906. "isExpression": false
  1907. },
  1908. {
  1909. "value": "type",
  1910. "isExpression": false
  1911. },
  1912. {
  1913. "value": "seq",
  1914. "isExpression": false
  1915. }
  1916. ],
  1917. "isUnique": false,
  1918. "where": null,
  1919. "origin": "manual",
  1920. "name": "event_aggregate_type_seq_idx",
  1921. "entityType": "indexes",
  1922. "table": "event"
  1923. },
  1924. {
  1925. "columns": [
  1926. {
  1927. "value": "project_id",
  1928. "isExpression": false
  1929. },
  1930. {
  1931. "value": "action",
  1932. "isExpression": false
  1933. },
  1934. {
  1935. "value": "resource",
  1936. "isExpression": false
  1937. }
  1938. ],
  1939. "isUnique": true,
  1940. "where": null,
  1941. "origin": "manual",
  1942. "name": "permission_project_action_resource_idx",
  1943. "entityType": "indexes",
  1944. "table": "permission"
  1945. },
  1946. {
  1947. "columns": [
  1948. {
  1949. "value": "session_id",
  1950. "isExpression": false
  1951. },
  1952. {
  1953. "value": "time_created",
  1954. "isExpression": false
  1955. },
  1956. {
  1957. "value": "id",
  1958. "isExpression": false
  1959. }
  1960. ],
  1961. "isUnique": false,
  1962. "where": null,
  1963. "origin": "manual",
  1964. "name": "message_session_time_created_id_idx",
  1965. "entityType": "indexes",
  1966. "table": "message"
  1967. },
  1968. {
  1969. "columns": [
  1970. {
  1971. "value": "message_id",
  1972. "isExpression": false
  1973. },
  1974. {
  1975. "value": "id",
  1976. "isExpression": false
  1977. }
  1978. ],
  1979. "isUnique": false,
  1980. "where": null,
  1981. "origin": "manual",
  1982. "name": "part_message_id_id_idx",
  1983. "entityType": "indexes",
  1984. "table": "part"
  1985. },
  1986. {
  1987. "columns": [
  1988. {
  1989. "value": "session_id",
  1990. "isExpression": false
  1991. }
  1992. ],
  1993. "isUnique": false,
  1994. "where": null,
  1995. "origin": "manual",
  1996. "name": "part_session_idx",
  1997. "entityType": "indexes",
  1998. "table": "part"
  1999. },
  2000. {
  2001. "columns": [
  2002. {
  2003. "value": "session_id",
  2004. "isExpression": false
  2005. },
  2006. {
  2007. "value": "promoted_seq",
  2008. "isExpression": false
  2009. },
  2010. {
  2011. "value": "delivery",
  2012. "isExpression": false
  2013. },
  2014. {
  2015. "value": "admitted_seq",
  2016. "isExpression": false
  2017. }
  2018. ],
  2019. "isUnique": false,
  2020. "where": null,
  2021. "origin": "manual",
  2022. "name": "session_input_session_pending_delivery_seq_idx",
  2023. "entityType": "indexes",
  2024. "table": "session_input"
  2025. },
  2026. {
  2027. "columns": [
  2028. {
  2029. "value": "session_id",
  2030. "isExpression": false
  2031. },
  2032. {
  2033. "value": "admitted_seq",
  2034. "isExpression": false
  2035. }
  2036. ],
  2037. "isUnique": true,
  2038. "where": null,
  2039. "origin": "manual",
  2040. "name": "session_input_session_admitted_seq_idx",
  2041. "entityType": "indexes",
  2042. "table": "session_input"
  2043. },
  2044. {
  2045. "columns": [
  2046. {
  2047. "value": "session_id",
  2048. "isExpression": false
  2049. },
  2050. {
  2051. "value": "promoted_seq",
  2052. "isExpression": false
  2053. }
  2054. ],
  2055. "isUnique": true,
  2056. "where": null,
  2057. "origin": "manual",
  2058. "name": "session_input_session_promoted_seq_idx",
  2059. "entityType": "indexes",
  2060. "table": "session_input"
  2061. },
  2062. {
  2063. "columns": [
  2064. {
  2065. "value": "session_id",
  2066. "isExpression": false
  2067. },
  2068. {
  2069. "value": "seq",
  2070. "isExpression": false
  2071. }
  2072. ],
  2073. "isUnique": true,
  2074. "where": null,
  2075. "origin": "manual",
  2076. "name": "session_message_session_seq_idx",
  2077. "entityType": "indexes",
  2078. "table": "session_message"
  2079. },
  2080. {
  2081. "columns": [
  2082. {
  2083. "value": "session_id",
  2084. "isExpression": false
  2085. },
  2086. {
  2087. "value": "type",
  2088. "isExpression": false
  2089. },
  2090. {
  2091. "value": "seq",
  2092. "isExpression": false
  2093. }
  2094. ],
  2095. "isUnique": false,
  2096. "where": null,
  2097. "origin": "manual",
  2098. "name": "session_message_session_type_seq_idx",
  2099. "entityType": "indexes",
  2100. "table": "session_message"
  2101. },
  2102. {
  2103. "columns": [
  2104. {
  2105. "value": "session_id",
  2106. "isExpression": false
  2107. },
  2108. {
  2109. "value": "time_created",
  2110. "isExpression": false
  2111. },
  2112. {
  2113. "value": "id",
  2114. "isExpression": false
  2115. }
  2116. ],
  2117. "isUnique": false,
  2118. "where": null,
  2119. "origin": "manual",
  2120. "name": "session_message_session_time_created_id_idx",
  2121. "entityType": "indexes",
  2122. "table": "session_message"
  2123. },
  2124. {
  2125. "columns": [
  2126. {
  2127. "value": "time_created",
  2128. "isExpression": false
  2129. }
  2130. ],
  2131. "isUnique": false,
  2132. "where": null,
  2133. "origin": "manual",
  2134. "name": "session_message_time_created_idx",
  2135. "entityType": "indexes",
  2136. "table": "session_message"
  2137. },
  2138. {
  2139. "columns": [
  2140. {
  2141. "value": "project_id",
  2142. "isExpression": false
  2143. }
  2144. ],
  2145. "isUnique": false,
  2146. "where": null,
  2147. "origin": "manual",
  2148. "name": "session_project_idx",
  2149. "entityType": "indexes",
  2150. "table": "session"
  2151. },
  2152. {
  2153. "columns": [
  2154. {
  2155. "value": "workspace_id",
  2156. "isExpression": false
  2157. }
  2158. ],
  2159. "isUnique": false,
  2160. "where": null,
  2161. "origin": "manual",
  2162. "name": "session_workspace_idx",
  2163. "entityType": "indexes",
  2164. "table": "session"
  2165. },
  2166. {
  2167. "columns": [
  2168. {
  2169. "value": "parent_id",
  2170. "isExpression": false
  2171. }
  2172. ],
  2173. "isUnique": false,
  2174. "where": null,
  2175. "origin": "manual",
  2176. "name": "session_parent_idx",
  2177. "entityType": "indexes",
  2178. "table": "session"
  2179. },
  2180. {
  2181. "columns": [
  2182. {
  2183. "value": "session_id",
  2184. "isExpression": false
  2185. }
  2186. ],
  2187. "isUnique": false,
  2188. "where": null,
  2189. "origin": "manual",
  2190. "name": "todo_session_idx",
  2191. "entityType": "indexes",
  2192. "table": "todo"
  2193. }
  2194. ],
  2195. "renames": []
  2196. }