1
0

schema.json 48 KB

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