snapshot.json 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500
  1. {
  2. "version": "7",
  3. "dialect": "sqlite",
  4. "id": "85d2086c-3c95-4706-90b0-f7480b73db5c",
  5. "prevIds": ["fdfcccee-fb3a-481f-b801-b9835fa30d5d"],
  6. "ddl": [
  7. {
  8. "name": "account_state",
  9. "entityType": "tables"
  10. },
  11. {
  12. "name": "account",
  13. "entityType": "tables"
  14. },
  15. {
  16. "name": "control_account",
  17. "entityType": "tables"
  18. },
  19. {
  20. "name": "workspace",
  21. "entityType": "tables"
  22. },
  23. {
  24. "name": "data_migration",
  25. "entityType": "tables"
  26. },
  27. {
  28. "name": "project",
  29. "entityType": "tables"
  30. },
  31. {
  32. "name": "message",
  33. "entityType": "tables"
  34. },
  35. {
  36. "name": "part",
  37. "entityType": "tables"
  38. },
  39. {
  40. "name": "permission",
  41. "entityType": "tables"
  42. },
  43. {
  44. "name": "session_message",
  45. "entityType": "tables"
  46. },
  47. {
  48. "name": "session",
  49. "entityType": "tables"
  50. },
  51. {
  52. "name": "todo",
  53. "entityType": "tables"
  54. },
  55. {
  56. "name": "session_share",
  57. "entityType": "tables"
  58. },
  59. {
  60. "name": "event_sequence",
  61. "entityType": "tables"
  62. },
  63. {
  64. "name": "event",
  65. "entityType": "tables"
  66. },
  67. {
  68. "type": "integer",
  69. "notNull": false,
  70. "autoincrement": false,
  71. "default": null,
  72. "generated": null,
  73. "name": "id",
  74. "entityType": "columns",
  75. "table": "account_state"
  76. },
  77. {
  78. "type": "text",
  79. "notNull": false,
  80. "autoincrement": false,
  81. "default": null,
  82. "generated": null,
  83. "name": "active_account_id",
  84. "entityType": "columns",
  85. "table": "account_state"
  86. },
  87. {
  88. "type": "text",
  89. "notNull": false,
  90. "autoincrement": false,
  91. "default": null,
  92. "generated": null,
  93. "name": "active_org_id",
  94. "entityType": "columns",
  95. "table": "account_state"
  96. },
  97. {
  98. "type": "text",
  99. "notNull": false,
  100. "autoincrement": false,
  101. "default": null,
  102. "generated": null,
  103. "name": "id",
  104. "entityType": "columns",
  105. "table": "account"
  106. },
  107. {
  108. "type": "text",
  109. "notNull": true,
  110. "autoincrement": false,
  111. "default": null,
  112. "generated": null,
  113. "name": "email",
  114. "entityType": "columns",
  115. "table": "account"
  116. },
  117. {
  118. "type": "text",
  119. "notNull": true,
  120. "autoincrement": false,
  121. "default": null,
  122. "generated": null,
  123. "name": "url",
  124. "entityType": "columns",
  125. "table": "account"
  126. },
  127. {
  128. "type": "text",
  129. "notNull": true,
  130. "autoincrement": false,
  131. "default": null,
  132. "generated": null,
  133. "name": "access_token",
  134. "entityType": "columns",
  135. "table": "account"
  136. },
  137. {
  138. "type": "text",
  139. "notNull": true,
  140. "autoincrement": false,
  141. "default": null,
  142. "generated": null,
  143. "name": "refresh_token",
  144. "entityType": "columns",
  145. "table": "account"
  146. },
  147. {
  148. "type": "integer",
  149. "notNull": false,
  150. "autoincrement": false,
  151. "default": null,
  152. "generated": null,
  153. "name": "token_expiry",
  154. "entityType": "columns",
  155. "table": "account"
  156. },
  157. {
  158. "type": "integer",
  159. "notNull": true,
  160. "autoincrement": false,
  161. "default": null,
  162. "generated": null,
  163. "name": "time_created",
  164. "entityType": "columns",
  165. "table": "account"
  166. },
  167. {
  168. "type": "integer",
  169. "notNull": true,
  170. "autoincrement": false,
  171. "default": null,
  172. "generated": null,
  173. "name": "time_updated",
  174. "entityType": "columns",
  175. "table": "account"
  176. },
  177. {
  178. "type": "text",
  179. "notNull": true,
  180. "autoincrement": false,
  181. "default": null,
  182. "generated": null,
  183. "name": "email",
  184. "entityType": "columns",
  185. "table": "control_account"
  186. },
  187. {
  188. "type": "text",
  189. "notNull": true,
  190. "autoincrement": false,
  191. "default": null,
  192. "generated": null,
  193. "name": "url",
  194. "entityType": "columns",
  195. "table": "control_account"
  196. },
  197. {
  198. "type": "text",
  199. "notNull": true,
  200. "autoincrement": false,
  201. "default": null,
  202. "generated": null,
  203. "name": "access_token",
  204. "entityType": "columns",
  205. "table": "control_account"
  206. },
  207. {
  208. "type": "text",
  209. "notNull": true,
  210. "autoincrement": false,
  211. "default": null,
  212. "generated": null,
  213. "name": "refresh_token",
  214. "entityType": "columns",
  215. "table": "control_account"
  216. },
  217. {
  218. "type": "integer",
  219. "notNull": false,
  220. "autoincrement": false,
  221. "default": null,
  222. "generated": null,
  223. "name": "token_expiry",
  224. "entityType": "columns",
  225. "table": "control_account"
  226. },
  227. {
  228. "type": "integer",
  229. "notNull": true,
  230. "autoincrement": false,
  231. "default": null,
  232. "generated": null,
  233. "name": "active",
  234. "entityType": "columns",
  235. "table": "control_account"
  236. },
  237. {
  238. "type": "integer",
  239. "notNull": true,
  240. "autoincrement": false,
  241. "default": null,
  242. "generated": null,
  243. "name": "time_created",
  244. "entityType": "columns",
  245. "table": "control_account"
  246. },
  247. {
  248. "type": "integer",
  249. "notNull": true,
  250. "autoincrement": false,
  251. "default": null,
  252. "generated": null,
  253. "name": "time_updated",
  254. "entityType": "columns",
  255. "table": "control_account"
  256. },
  257. {
  258. "type": "text",
  259. "notNull": false,
  260. "autoincrement": false,
  261. "default": null,
  262. "generated": null,
  263. "name": "id",
  264. "entityType": "columns",
  265. "table": "workspace"
  266. },
  267. {
  268. "type": "text",
  269. "notNull": true,
  270. "autoincrement": false,
  271. "default": null,
  272. "generated": null,
  273. "name": "type",
  274. "entityType": "columns",
  275. "table": "workspace"
  276. },
  277. {
  278. "type": "text",
  279. "notNull": true,
  280. "autoincrement": false,
  281. "default": "''",
  282. "generated": null,
  283. "name": "name",
  284. "entityType": "columns",
  285. "table": "workspace"
  286. },
  287. {
  288. "type": "text",
  289. "notNull": false,
  290. "autoincrement": false,
  291. "default": null,
  292. "generated": null,
  293. "name": "branch",
  294. "entityType": "columns",
  295. "table": "workspace"
  296. },
  297. {
  298. "type": "text",
  299. "notNull": false,
  300. "autoincrement": false,
  301. "default": null,
  302. "generated": null,
  303. "name": "directory",
  304. "entityType": "columns",
  305. "table": "workspace"
  306. },
  307. {
  308. "type": "text",
  309. "notNull": false,
  310. "autoincrement": false,
  311. "default": null,
  312. "generated": null,
  313. "name": "extra",
  314. "entityType": "columns",
  315. "table": "workspace"
  316. },
  317. {
  318. "type": "text",
  319. "notNull": true,
  320. "autoincrement": false,
  321. "default": null,
  322. "generated": null,
  323. "name": "project_id",
  324. "entityType": "columns",
  325. "table": "workspace"
  326. },
  327. {
  328. "type": "integer",
  329. "notNull": true,
  330. "autoincrement": false,
  331. "default": null,
  332. "generated": null,
  333. "name": "time_used",
  334. "entityType": "columns",
  335. "table": "workspace"
  336. },
  337. {
  338. "type": "text",
  339. "notNull": false,
  340. "autoincrement": false,
  341. "default": null,
  342. "generated": null,
  343. "name": "name",
  344. "entityType": "columns",
  345. "table": "data_migration"
  346. },
  347. {
  348. "type": "integer",
  349. "notNull": true,
  350. "autoincrement": false,
  351. "default": null,
  352. "generated": null,
  353. "name": "time_completed",
  354. "entityType": "columns",
  355. "table": "data_migration"
  356. },
  357. {
  358. "type": "text",
  359. "notNull": false,
  360. "autoincrement": false,
  361. "default": null,
  362. "generated": null,
  363. "name": "id",
  364. "entityType": "columns",
  365. "table": "project"
  366. },
  367. {
  368. "type": "text",
  369. "notNull": true,
  370. "autoincrement": false,
  371. "default": null,
  372. "generated": null,
  373. "name": "worktree",
  374. "entityType": "columns",
  375. "table": "project"
  376. },
  377. {
  378. "type": "text",
  379. "notNull": false,
  380. "autoincrement": false,
  381. "default": null,
  382. "generated": null,
  383. "name": "vcs",
  384. "entityType": "columns",
  385. "table": "project"
  386. },
  387. {
  388. "type": "text",
  389. "notNull": false,
  390. "autoincrement": false,
  391. "default": null,
  392. "generated": null,
  393. "name": "name",
  394. "entityType": "columns",
  395. "table": "project"
  396. },
  397. {
  398. "type": "text",
  399. "notNull": false,
  400. "autoincrement": false,
  401. "default": null,
  402. "generated": null,
  403. "name": "icon_url",
  404. "entityType": "columns",
  405. "table": "project"
  406. },
  407. {
  408. "type": "text",
  409. "notNull": false,
  410. "autoincrement": false,
  411. "default": null,
  412. "generated": null,
  413. "name": "icon_url_override",
  414. "entityType": "columns",
  415. "table": "project"
  416. },
  417. {
  418. "type": "text",
  419. "notNull": false,
  420. "autoincrement": false,
  421. "default": null,
  422. "generated": null,
  423. "name": "icon_color",
  424. "entityType": "columns",
  425. "table": "project"
  426. },
  427. {
  428. "type": "integer",
  429. "notNull": true,
  430. "autoincrement": false,
  431. "default": null,
  432. "generated": null,
  433. "name": "time_created",
  434. "entityType": "columns",
  435. "table": "project"
  436. },
  437. {
  438. "type": "integer",
  439. "notNull": true,
  440. "autoincrement": false,
  441. "default": null,
  442. "generated": null,
  443. "name": "time_updated",
  444. "entityType": "columns",
  445. "table": "project"
  446. },
  447. {
  448. "type": "integer",
  449. "notNull": false,
  450. "autoincrement": false,
  451. "default": null,
  452. "generated": null,
  453. "name": "time_initialized",
  454. "entityType": "columns",
  455. "table": "project"
  456. },
  457. {
  458. "type": "text",
  459. "notNull": true,
  460. "autoincrement": false,
  461. "default": null,
  462. "generated": null,
  463. "name": "sandboxes",
  464. "entityType": "columns",
  465. "table": "project"
  466. },
  467. {
  468. "type": "text",
  469. "notNull": false,
  470. "autoincrement": false,
  471. "default": null,
  472. "generated": null,
  473. "name": "commands",
  474. "entityType": "columns",
  475. "table": "project"
  476. },
  477. {
  478. "type": "text",
  479. "notNull": false,
  480. "autoincrement": false,
  481. "default": null,
  482. "generated": null,
  483. "name": "id",
  484. "entityType": "columns",
  485. "table": "message"
  486. },
  487. {
  488. "type": "text",
  489. "notNull": true,
  490. "autoincrement": false,
  491. "default": null,
  492. "generated": null,
  493. "name": "session_id",
  494. "entityType": "columns",
  495. "table": "message"
  496. },
  497. {
  498. "type": "integer",
  499. "notNull": true,
  500. "autoincrement": false,
  501. "default": null,
  502. "generated": null,
  503. "name": "time_created",
  504. "entityType": "columns",
  505. "table": "message"
  506. },
  507. {
  508. "type": "integer",
  509. "notNull": true,
  510. "autoincrement": false,
  511. "default": null,
  512. "generated": null,
  513. "name": "time_updated",
  514. "entityType": "columns",
  515. "table": "message"
  516. },
  517. {
  518. "type": "text",
  519. "notNull": true,
  520. "autoincrement": false,
  521. "default": null,
  522. "generated": null,
  523. "name": "data",
  524. "entityType": "columns",
  525. "table": "message"
  526. },
  527. {
  528. "type": "text",
  529. "notNull": false,
  530. "autoincrement": false,
  531. "default": null,
  532. "generated": null,
  533. "name": "id",
  534. "entityType": "columns",
  535. "table": "part"
  536. },
  537. {
  538. "type": "text",
  539. "notNull": true,
  540. "autoincrement": false,
  541. "default": null,
  542. "generated": null,
  543. "name": "message_id",
  544. "entityType": "columns",
  545. "table": "part"
  546. },
  547. {
  548. "type": "text",
  549. "notNull": true,
  550. "autoincrement": false,
  551. "default": null,
  552. "generated": null,
  553. "name": "session_id",
  554. "entityType": "columns",
  555. "table": "part"
  556. },
  557. {
  558. "type": "integer",
  559. "notNull": true,
  560. "autoincrement": false,
  561. "default": null,
  562. "generated": null,
  563. "name": "time_created",
  564. "entityType": "columns",
  565. "table": "part"
  566. },
  567. {
  568. "type": "integer",
  569. "notNull": true,
  570. "autoincrement": false,
  571. "default": null,
  572. "generated": null,
  573. "name": "time_updated",
  574. "entityType": "columns",
  575. "table": "part"
  576. },
  577. {
  578. "type": "text",
  579. "notNull": true,
  580. "autoincrement": false,
  581. "default": null,
  582. "generated": null,
  583. "name": "data",
  584. "entityType": "columns",
  585. "table": "part"
  586. },
  587. {
  588. "type": "text",
  589. "notNull": false,
  590. "autoincrement": false,
  591. "default": null,
  592. "generated": null,
  593. "name": "project_id",
  594. "entityType": "columns",
  595. "table": "permission"
  596. },
  597. {
  598. "type": "integer",
  599. "notNull": true,
  600. "autoincrement": false,
  601. "default": null,
  602. "generated": null,
  603. "name": "time_created",
  604. "entityType": "columns",
  605. "table": "permission"
  606. },
  607. {
  608. "type": "integer",
  609. "notNull": true,
  610. "autoincrement": false,
  611. "default": null,
  612. "generated": null,
  613. "name": "time_updated",
  614. "entityType": "columns",
  615. "table": "permission"
  616. },
  617. {
  618. "type": "text",
  619. "notNull": true,
  620. "autoincrement": false,
  621. "default": null,
  622. "generated": null,
  623. "name": "data",
  624. "entityType": "columns",
  625. "table": "permission"
  626. },
  627. {
  628. "type": "text",
  629. "notNull": false,
  630. "autoincrement": false,
  631. "default": null,
  632. "generated": null,
  633. "name": "id",
  634. "entityType": "columns",
  635. "table": "session_message"
  636. },
  637. {
  638. "type": "text",
  639. "notNull": true,
  640. "autoincrement": false,
  641. "default": null,
  642. "generated": null,
  643. "name": "session_id",
  644. "entityType": "columns",
  645. "table": "session_message"
  646. },
  647. {
  648. "type": "text",
  649. "notNull": true,
  650. "autoincrement": false,
  651. "default": null,
  652. "generated": null,
  653. "name": "type",
  654. "entityType": "columns",
  655. "table": "session_message"
  656. },
  657. {
  658. "type": "integer",
  659. "notNull": true,
  660. "autoincrement": false,
  661. "default": null,
  662. "generated": null,
  663. "name": "time_created",
  664. "entityType": "columns",
  665. "table": "session_message"
  666. },
  667. {
  668. "type": "integer",
  669. "notNull": true,
  670. "autoincrement": false,
  671. "default": null,
  672. "generated": null,
  673. "name": "time_updated",
  674. "entityType": "columns",
  675. "table": "session_message"
  676. },
  677. {
  678. "type": "text",
  679. "notNull": true,
  680. "autoincrement": false,
  681. "default": null,
  682. "generated": null,
  683. "name": "data",
  684. "entityType": "columns",
  685. "table": "session_message"
  686. },
  687. {
  688. "type": "text",
  689. "notNull": false,
  690. "autoincrement": false,
  691. "default": null,
  692. "generated": null,
  693. "name": "id",
  694. "entityType": "columns",
  695. "table": "session"
  696. },
  697. {
  698. "type": "text",
  699. "notNull": true,
  700. "autoincrement": false,
  701. "default": null,
  702. "generated": null,
  703. "name": "project_id",
  704. "entityType": "columns",
  705. "table": "session"
  706. },
  707. {
  708. "type": "text",
  709. "notNull": false,
  710. "autoincrement": false,
  711. "default": null,
  712. "generated": null,
  713. "name": "workspace_id",
  714. "entityType": "columns",
  715. "table": "session"
  716. },
  717. {
  718. "type": "text",
  719. "notNull": false,
  720. "autoincrement": false,
  721. "default": null,
  722. "generated": null,
  723. "name": "parent_id",
  724. "entityType": "columns",
  725. "table": "session"
  726. },
  727. {
  728. "type": "text",
  729. "notNull": true,
  730. "autoincrement": false,
  731. "default": null,
  732. "generated": null,
  733. "name": "slug",
  734. "entityType": "columns",
  735. "table": "session"
  736. },
  737. {
  738. "type": "text",
  739. "notNull": true,
  740. "autoincrement": false,
  741. "default": null,
  742. "generated": null,
  743. "name": "directory",
  744. "entityType": "columns",
  745. "table": "session"
  746. },
  747. {
  748. "type": "text",
  749. "notNull": false,
  750. "autoincrement": false,
  751. "default": null,
  752. "generated": null,
  753. "name": "path",
  754. "entityType": "columns",
  755. "table": "session"
  756. },
  757. {
  758. "type": "text",
  759. "notNull": true,
  760. "autoincrement": false,
  761. "default": null,
  762. "generated": null,
  763. "name": "title",
  764. "entityType": "columns",
  765. "table": "session"
  766. },
  767. {
  768. "type": "text",
  769. "notNull": true,
  770. "autoincrement": false,
  771. "default": null,
  772. "generated": null,
  773. "name": "version",
  774. "entityType": "columns",
  775. "table": "session"
  776. },
  777. {
  778. "type": "text",
  779. "notNull": false,
  780. "autoincrement": false,
  781. "default": null,
  782. "generated": null,
  783. "name": "share_url",
  784. "entityType": "columns",
  785. "table": "session"
  786. },
  787. {
  788. "type": "integer",
  789. "notNull": false,
  790. "autoincrement": false,
  791. "default": null,
  792. "generated": null,
  793. "name": "summary_additions",
  794. "entityType": "columns",
  795. "table": "session"
  796. },
  797. {
  798. "type": "integer",
  799. "notNull": false,
  800. "autoincrement": false,
  801. "default": null,
  802. "generated": null,
  803. "name": "summary_deletions",
  804. "entityType": "columns",
  805. "table": "session"
  806. },
  807. {
  808. "type": "integer",
  809. "notNull": false,
  810. "autoincrement": false,
  811. "default": null,
  812. "generated": null,
  813. "name": "summary_files",
  814. "entityType": "columns",
  815. "table": "session"
  816. },
  817. {
  818. "type": "text",
  819. "notNull": false,
  820. "autoincrement": false,
  821. "default": null,
  822. "generated": null,
  823. "name": "summary_diffs",
  824. "entityType": "columns",
  825. "table": "session"
  826. },
  827. {
  828. "type": "text",
  829. "notNull": false,
  830. "autoincrement": false,
  831. "default": null,
  832. "generated": null,
  833. "name": "metadata",
  834. "entityType": "columns",
  835. "table": "session"
  836. },
  837. {
  838. "type": "text",
  839. "notNull": false,
  840. "autoincrement": false,
  841. "default": null,
  842. "generated": null,
  843. "name": "revert",
  844. "entityType": "columns",
  845. "table": "session"
  846. },
  847. {
  848. "type": "text",
  849. "notNull": false,
  850. "autoincrement": false,
  851. "default": null,
  852. "generated": null,
  853. "name": "permission",
  854. "entityType": "columns",
  855. "table": "session"
  856. },
  857. {
  858. "type": "text",
  859. "notNull": false,
  860. "autoincrement": false,
  861. "default": null,
  862. "generated": null,
  863. "name": "agent",
  864. "entityType": "columns",
  865. "table": "session"
  866. },
  867. {
  868. "type": "text",
  869. "notNull": false,
  870. "autoincrement": false,
  871. "default": null,
  872. "generated": null,
  873. "name": "model",
  874. "entityType": "columns",
  875. "table": "session"
  876. },
  877. {
  878. "type": "integer",
  879. "notNull": true,
  880. "autoincrement": false,
  881. "default": null,
  882. "generated": null,
  883. "name": "time_created",
  884. "entityType": "columns",
  885. "table": "session"
  886. },
  887. {
  888. "type": "integer",
  889. "notNull": true,
  890. "autoincrement": false,
  891. "default": null,
  892. "generated": null,
  893. "name": "time_updated",
  894. "entityType": "columns",
  895. "table": "session"
  896. },
  897. {
  898. "type": "integer",
  899. "notNull": false,
  900. "autoincrement": false,
  901. "default": null,
  902. "generated": null,
  903. "name": "time_compacting",
  904. "entityType": "columns",
  905. "table": "session"
  906. },
  907. {
  908. "type": "integer",
  909. "notNull": false,
  910. "autoincrement": false,
  911. "default": null,
  912. "generated": null,
  913. "name": "time_archived",
  914. "entityType": "columns",
  915. "table": "session"
  916. },
  917. {
  918. "type": "text",
  919. "notNull": true,
  920. "autoincrement": false,
  921. "default": null,
  922. "generated": null,
  923. "name": "session_id",
  924. "entityType": "columns",
  925. "table": "todo"
  926. },
  927. {
  928. "type": "text",
  929. "notNull": true,
  930. "autoincrement": false,
  931. "default": null,
  932. "generated": null,
  933. "name": "content",
  934. "entityType": "columns",
  935. "table": "todo"
  936. },
  937. {
  938. "type": "text",
  939. "notNull": true,
  940. "autoincrement": false,
  941. "default": null,
  942. "generated": null,
  943. "name": "status",
  944. "entityType": "columns",
  945. "table": "todo"
  946. },
  947. {
  948. "type": "text",
  949. "notNull": true,
  950. "autoincrement": false,
  951. "default": null,
  952. "generated": null,
  953. "name": "priority",
  954. "entityType": "columns",
  955. "table": "todo"
  956. },
  957. {
  958. "type": "integer",
  959. "notNull": true,
  960. "autoincrement": false,
  961. "default": null,
  962. "generated": null,
  963. "name": "position",
  964. "entityType": "columns",
  965. "table": "todo"
  966. },
  967. {
  968. "type": "integer",
  969. "notNull": true,
  970. "autoincrement": false,
  971. "default": null,
  972. "generated": null,
  973. "name": "time_created",
  974. "entityType": "columns",
  975. "table": "todo"
  976. },
  977. {
  978. "type": "integer",
  979. "notNull": true,
  980. "autoincrement": false,
  981. "default": null,
  982. "generated": null,
  983. "name": "time_updated",
  984. "entityType": "columns",
  985. "table": "todo"
  986. },
  987. {
  988. "type": "text",
  989. "notNull": false,
  990. "autoincrement": false,
  991. "default": null,
  992. "generated": null,
  993. "name": "session_id",
  994. "entityType": "columns",
  995. "table": "session_share"
  996. },
  997. {
  998. "type": "text",
  999. "notNull": true,
  1000. "autoincrement": false,
  1001. "default": null,
  1002. "generated": null,
  1003. "name": "id",
  1004. "entityType": "columns",
  1005. "table": "session_share"
  1006. },
  1007. {
  1008. "type": "text",
  1009. "notNull": true,
  1010. "autoincrement": false,
  1011. "default": null,
  1012. "generated": null,
  1013. "name": "secret",
  1014. "entityType": "columns",
  1015. "table": "session_share"
  1016. },
  1017. {
  1018. "type": "text",
  1019. "notNull": true,
  1020. "autoincrement": false,
  1021. "default": null,
  1022. "generated": null,
  1023. "name": "url",
  1024. "entityType": "columns",
  1025. "table": "session_share"
  1026. },
  1027. {
  1028. "type": "integer",
  1029. "notNull": true,
  1030. "autoincrement": false,
  1031. "default": null,
  1032. "generated": null,
  1033. "name": "time_created",
  1034. "entityType": "columns",
  1035. "table": "session_share"
  1036. },
  1037. {
  1038. "type": "integer",
  1039. "notNull": true,
  1040. "autoincrement": false,
  1041. "default": null,
  1042. "generated": null,
  1043. "name": "time_updated",
  1044. "entityType": "columns",
  1045. "table": "session_share"
  1046. },
  1047. {
  1048. "type": "text",
  1049. "notNull": false,
  1050. "autoincrement": false,
  1051. "default": null,
  1052. "generated": null,
  1053. "name": "aggregate_id",
  1054. "entityType": "columns",
  1055. "table": "event_sequence"
  1056. },
  1057. {
  1058. "type": "integer",
  1059. "notNull": true,
  1060. "autoincrement": false,
  1061. "default": null,
  1062. "generated": null,
  1063. "name": "seq",
  1064. "entityType": "columns",
  1065. "table": "event_sequence"
  1066. },
  1067. {
  1068. "type": "text",
  1069. "notNull": false,
  1070. "autoincrement": false,
  1071. "default": null,
  1072. "generated": null,
  1073. "name": "owner_id",
  1074. "entityType": "columns",
  1075. "table": "event_sequence"
  1076. },
  1077. {
  1078. "type": "text",
  1079. "notNull": false,
  1080. "autoincrement": false,
  1081. "default": null,
  1082. "generated": null,
  1083. "name": "id",
  1084. "entityType": "columns",
  1085. "table": "event"
  1086. },
  1087. {
  1088. "type": "text",
  1089. "notNull": true,
  1090. "autoincrement": false,
  1091. "default": null,
  1092. "generated": null,
  1093. "name": "aggregate_id",
  1094. "entityType": "columns",
  1095. "table": "event"
  1096. },
  1097. {
  1098. "type": "integer",
  1099. "notNull": true,
  1100. "autoincrement": false,
  1101. "default": null,
  1102. "generated": null,
  1103. "name": "seq",
  1104. "entityType": "columns",
  1105. "table": "event"
  1106. },
  1107. {
  1108. "type": "text",
  1109. "notNull": true,
  1110. "autoincrement": false,
  1111. "default": null,
  1112. "generated": null,
  1113. "name": "type",
  1114. "entityType": "columns",
  1115. "table": "event"
  1116. },
  1117. {
  1118. "type": "text",
  1119. "notNull": true,
  1120. "autoincrement": false,
  1121. "default": null,
  1122. "generated": null,
  1123. "name": "data",
  1124. "entityType": "columns",
  1125. "table": "event"
  1126. },
  1127. {
  1128. "columns": ["active_account_id"],
  1129. "tableTo": "account",
  1130. "columnsTo": ["id"],
  1131. "onUpdate": "NO ACTION",
  1132. "onDelete": "SET NULL",
  1133. "nameExplicit": false,
  1134. "name": "fk_account_state_active_account_id_account_id_fk",
  1135. "entityType": "fks",
  1136. "table": "account_state"
  1137. },
  1138. {
  1139. "columns": ["project_id"],
  1140. "tableTo": "project",
  1141. "columnsTo": ["id"],
  1142. "onUpdate": "NO ACTION",
  1143. "onDelete": "CASCADE",
  1144. "nameExplicit": false,
  1145. "name": "fk_workspace_project_id_project_id_fk",
  1146. "entityType": "fks",
  1147. "table": "workspace"
  1148. },
  1149. {
  1150. "columns": ["session_id"],
  1151. "tableTo": "session",
  1152. "columnsTo": ["id"],
  1153. "onUpdate": "NO ACTION",
  1154. "onDelete": "CASCADE",
  1155. "nameExplicit": false,
  1156. "name": "fk_message_session_id_session_id_fk",
  1157. "entityType": "fks",
  1158. "table": "message"
  1159. },
  1160. {
  1161. "columns": ["message_id"],
  1162. "tableTo": "message",
  1163. "columnsTo": ["id"],
  1164. "onUpdate": "NO ACTION",
  1165. "onDelete": "CASCADE",
  1166. "nameExplicit": false,
  1167. "name": "fk_part_message_id_message_id_fk",
  1168. "entityType": "fks",
  1169. "table": "part"
  1170. },
  1171. {
  1172. "columns": ["project_id"],
  1173. "tableTo": "project",
  1174. "columnsTo": ["id"],
  1175. "onUpdate": "NO ACTION",
  1176. "onDelete": "CASCADE",
  1177. "nameExplicit": false,
  1178. "name": "fk_permission_project_id_project_id_fk",
  1179. "entityType": "fks",
  1180. "table": "permission"
  1181. },
  1182. {
  1183. "columns": ["session_id"],
  1184. "tableTo": "session",
  1185. "columnsTo": ["id"],
  1186. "onUpdate": "NO ACTION",
  1187. "onDelete": "CASCADE",
  1188. "nameExplicit": false,
  1189. "name": "fk_session_message_session_id_session_id_fk",
  1190. "entityType": "fks",
  1191. "table": "session_message"
  1192. },
  1193. {
  1194. "columns": ["project_id"],
  1195. "tableTo": "project",
  1196. "columnsTo": ["id"],
  1197. "onUpdate": "NO ACTION",
  1198. "onDelete": "CASCADE",
  1199. "nameExplicit": false,
  1200. "name": "fk_session_project_id_project_id_fk",
  1201. "entityType": "fks",
  1202. "table": "session"
  1203. },
  1204. {
  1205. "columns": ["session_id"],
  1206. "tableTo": "session",
  1207. "columnsTo": ["id"],
  1208. "onUpdate": "NO ACTION",
  1209. "onDelete": "CASCADE",
  1210. "nameExplicit": false,
  1211. "name": "fk_todo_session_id_session_id_fk",
  1212. "entityType": "fks",
  1213. "table": "todo"
  1214. },
  1215. {
  1216. "columns": ["session_id"],
  1217. "tableTo": "session",
  1218. "columnsTo": ["id"],
  1219. "onUpdate": "NO ACTION",
  1220. "onDelete": "CASCADE",
  1221. "nameExplicit": false,
  1222. "name": "fk_session_share_session_id_session_id_fk",
  1223. "entityType": "fks",
  1224. "table": "session_share"
  1225. },
  1226. {
  1227. "columns": ["aggregate_id"],
  1228. "tableTo": "event_sequence",
  1229. "columnsTo": ["aggregate_id"],
  1230. "onUpdate": "NO ACTION",
  1231. "onDelete": "CASCADE",
  1232. "nameExplicit": false,
  1233. "name": "fk_event_aggregate_id_event_sequence_aggregate_id_fk",
  1234. "entityType": "fks",
  1235. "table": "event"
  1236. },
  1237. {
  1238. "columns": ["email", "url"],
  1239. "nameExplicit": false,
  1240. "name": "control_account_pk",
  1241. "entityType": "pks",
  1242. "table": "control_account"
  1243. },
  1244. {
  1245. "columns": ["session_id", "position"],
  1246. "nameExplicit": false,
  1247. "name": "todo_pk",
  1248. "entityType": "pks",
  1249. "table": "todo"
  1250. },
  1251. {
  1252. "columns": ["id"],
  1253. "nameExplicit": false,
  1254. "name": "account_state_pk",
  1255. "table": "account_state",
  1256. "entityType": "pks"
  1257. },
  1258. {
  1259. "columns": ["id"],
  1260. "nameExplicit": false,
  1261. "name": "account_pk",
  1262. "table": "account",
  1263. "entityType": "pks"
  1264. },
  1265. {
  1266. "columns": ["id"],
  1267. "nameExplicit": false,
  1268. "name": "workspace_pk",
  1269. "table": "workspace",
  1270. "entityType": "pks"
  1271. },
  1272. {
  1273. "columns": ["name"],
  1274. "nameExplicit": false,
  1275. "name": "data_migration_pk",
  1276. "table": "data_migration",
  1277. "entityType": "pks"
  1278. },
  1279. {
  1280. "columns": ["id"],
  1281. "nameExplicit": false,
  1282. "name": "project_pk",
  1283. "table": "project",
  1284. "entityType": "pks"
  1285. },
  1286. {
  1287. "columns": ["id"],
  1288. "nameExplicit": false,
  1289. "name": "message_pk",
  1290. "table": "message",
  1291. "entityType": "pks"
  1292. },
  1293. {
  1294. "columns": ["id"],
  1295. "nameExplicit": false,
  1296. "name": "part_pk",
  1297. "table": "part",
  1298. "entityType": "pks"
  1299. },
  1300. {
  1301. "columns": ["project_id"],
  1302. "nameExplicit": false,
  1303. "name": "permission_pk",
  1304. "table": "permission",
  1305. "entityType": "pks"
  1306. },
  1307. {
  1308. "columns": ["id"],
  1309. "nameExplicit": false,
  1310. "name": "session_message_pk",
  1311. "table": "session_message",
  1312. "entityType": "pks"
  1313. },
  1314. {
  1315. "columns": ["id"],
  1316. "nameExplicit": false,
  1317. "name": "session_pk",
  1318. "table": "session",
  1319. "entityType": "pks"
  1320. },
  1321. {
  1322. "columns": ["session_id"],
  1323. "nameExplicit": false,
  1324. "name": "session_share_pk",
  1325. "table": "session_share",
  1326. "entityType": "pks"
  1327. },
  1328. {
  1329. "columns": ["aggregate_id"],
  1330. "nameExplicit": false,
  1331. "name": "event_sequence_pk",
  1332. "table": "event_sequence",
  1333. "entityType": "pks"
  1334. },
  1335. {
  1336. "columns": ["id"],
  1337. "nameExplicit": false,
  1338. "name": "event_pk",
  1339. "table": "event",
  1340. "entityType": "pks"
  1341. },
  1342. {
  1343. "columns": [
  1344. {
  1345. "value": "session_id",
  1346. "isExpression": false
  1347. },
  1348. {
  1349. "value": "time_created",
  1350. "isExpression": false
  1351. },
  1352. {
  1353. "value": "id",
  1354. "isExpression": false
  1355. }
  1356. ],
  1357. "isUnique": false,
  1358. "where": null,
  1359. "origin": "manual",
  1360. "name": "message_session_time_created_id_idx",
  1361. "entityType": "indexes",
  1362. "table": "message"
  1363. },
  1364. {
  1365. "columns": [
  1366. {
  1367. "value": "message_id",
  1368. "isExpression": false
  1369. },
  1370. {
  1371. "value": "id",
  1372. "isExpression": false
  1373. }
  1374. ],
  1375. "isUnique": false,
  1376. "where": null,
  1377. "origin": "manual",
  1378. "name": "part_message_id_id_idx",
  1379. "entityType": "indexes",
  1380. "table": "part"
  1381. },
  1382. {
  1383. "columns": [
  1384. {
  1385. "value": "session_id",
  1386. "isExpression": false
  1387. }
  1388. ],
  1389. "isUnique": false,
  1390. "where": null,
  1391. "origin": "manual",
  1392. "name": "part_session_idx",
  1393. "entityType": "indexes",
  1394. "table": "part"
  1395. },
  1396. {
  1397. "columns": [
  1398. {
  1399. "value": "session_id",
  1400. "isExpression": false
  1401. }
  1402. ],
  1403. "isUnique": false,
  1404. "where": null,
  1405. "origin": "manual",
  1406. "name": "session_message_session_idx",
  1407. "entityType": "indexes",
  1408. "table": "session_message"
  1409. },
  1410. {
  1411. "columns": [
  1412. {
  1413. "value": "session_id",
  1414. "isExpression": false
  1415. },
  1416. {
  1417. "value": "type",
  1418. "isExpression": false
  1419. }
  1420. ],
  1421. "isUnique": false,
  1422. "where": null,
  1423. "origin": "manual",
  1424. "name": "session_message_session_type_idx",
  1425. "entityType": "indexes",
  1426. "table": "session_message"
  1427. },
  1428. {
  1429. "columns": [
  1430. {
  1431. "value": "time_created",
  1432. "isExpression": false
  1433. }
  1434. ],
  1435. "isUnique": false,
  1436. "where": null,
  1437. "origin": "manual",
  1438. "name": "session_message_time_created_idx",
  1439. "entityType": "indexes",
  1440. "table": "session_message"
  1441. },
  1442. {
  1443. "columns": [
  1444. {
  1445. "value": "project_id",
  1446. "isExpression": false
  1447. }
  1448. ],
  1449. "isUnique": false,
  1450. "where": null,
  1451. "origin": "manual",
  1452. "name": "session_project_idx",
  1453. "entityType": "indexes",
  1454. "table": "session"
  1455. },
  1456. {
  1457. "columns": [
  1458. {
  1459. "value": "workspace_id",
  1460. "isExpression": false
  1461. }
  1462. ],
  1463. "isUnique": false,
  1464. "where": null,
  1465. "origin": "manual",
  1466. "name": "session_workspace_idx",
  1467. "entityType": "indexes",
  1468. "table": "session"
  1469. },
  1470. {
  1471. "columns": [
  1472. {
  1473. "value": "parent_id",
  1474. "isExpression": false
  1475. }
  1476. ],
  1477. "isUnique": false,
  1478. "where": null,
  1479. "origin": "manual",
  1480. "name": "session_parent_idx",
  1481. "entityType": "indexes",
  1482. "table": "session"
  1483. },
  1484. {
  1485. "columns": [
  1486. {
  1487. "value": "session_id",
  1488. "isExpression": false
  1489. }
  1490. ],
  1491. "isUnique": false,
  1492. "where": null,
  1493. "origin": "manual",
  1494. "name": "todo_session_idx",
  1495. "entityType": "indexes",
  1496. "table": "todo"
  1497. }
  1498. ],
  1499. "renames": []
  1500. }