0011_snapshot.json 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569
  1. {
  2. "version": "6",
  3. "dialect": "sqlite",
  4. "id": "305d48b6-563e-4dbb-b0c8-8f1b276cdfc5",
  5. "prevId": "15f0e075-8654-4542-8539-fbbde3abd913",
  6. "tables": {
  7. "admin_sessions": {
  8. "name": "admin_sessions",
  9. "columns": {
  10. "id": {
  11. "name": "id",
  12. "type": "text",
  13. "primaryKey": true,
  14. "notNull": true,
  15. "autoincrement": false
  16. },
  17. "created_at": {
  18. "name": "created_at",
  19. "type": "text",
  20. "primaryKey": false,
  21. "notNull": true,
  22. "autoincrement": false,
  23. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  24. },
  25. "expires_at": {
  26. "name": "expires_at",
  27. "type": "text",
  28. "primaryKey": false,
  29. "notNull": true,
  30. "autoincrement": false
  31. }
  32. },
  33. "indexes": {},
  34. "foreignKeys": {},
  35. "compositePrimaryKeys": {},
  36. "uniqueConstraints": {},
  37. "checkConstraints": {}
  38. },
  39. "api_keys": {
  40. "name": "api_keys",
  41. "columns": {
  42. "id": {
  43. "name": "id",
  44. "type": "text",
  45. "primaryKey": true,
  46. "notNull": true,
  47. "autoincrement": false
  48. },
  49. "name": {
  50. "name": "name",
  51. "type": "text",
  52. "primaryKey": false,
  53. "notNull": true,
  54. "autoincrement": false
  55. },
  56. "key_hash": {
  57. "name": "key_hash",
  58. "type": "text",
  59. "primaryKey": false,
  60. "notNull": true,
  61. "autoincrement": false
  62. },
  63. "key_prefix": {
  64. "name": "key_prefix",
  65. "type": "text",
  66. "primaryKey": false,
  67. "notNull": true,
  68. "autoincrement": false
  69. },
  70. "enabled": {
  71. "name": "enabled",
  72. "type": "integer",
  73. "primaryKey": false,
  74. "notNull": true,
  75. "autoincrement": false,
  76. "default": true
  77. },
  78. "allowed_profile_ids": {
  79. "name": "allowed_profile_ids",
  80. "type": "text",
  81. "primaryKey": false,
  82. "notNull": true,
  83. "autoincrement": false,
  84. "default": "'[]'"
  85. },
  86. "default_profile_id": {
  87. "name": "default_profile_id",
  88. "type": "text",
  89. "primaryKey": false,
  90. "notNull": false,
  91. "autoincrement": false
  92. },
  93. "created_at": {
  94. "name": "created_at",
  95. "type": "text",
  96. "primaryKey": false,
  97. "notNull": true,
  98. "autoincrement": false,
  99. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  100. },
  101. "last_used_at": {
  102. "name": "last_used_at",
  103. "type": "text",
  104. "primaryKey": false,
  105. "notNull": false,
  106. "autoincrement": false
  107. }
  108. },
  109. "indexes": {
  110. "api_keys_key_hash_unique": {
  111. "name": "api_keys_key_hash_unique",
  112. "columns": [
  113. "key_hash"
  114. ],
  115. "isUnique": true
  116. }
  117. },
  118. "foreignKeys": {},
  119. "compositePrimaryKeys": {},
  120. "uniqueConstraints": {},
  121. "checkConstraints": {}
  122. },
  123. "audit_logs": {
  124. "name": "audit_logs",
  125. "columns": {
  126. "id": {
  127. "name": "id",
  128. "type": "integer",
  129. "primaryKey": true,
  130. "notNull": true,
  131. "autoincrement": true
  132. },
  133. "ts": {
  134. "name": "ts",
  135. "type": "text",
  136. "primaryKey": false,
  137. "notNull": true,
  138. "autoincrement": false,
  139. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  140. },
  141. "actor": {
  142. "name": "actor",
  143. "type": "text",
  144. "primaryKey": false,
  145. "notNull": true,
  146. "autoincrement": false
  147. },
  148. "session_id": {
  149. "name": "session_id",
  150. "type": "text",
  151. "primaryKey": false,
  152. "notNull": false,
  153. "autoincrement": false
  154. },
  155. "kind": {
  156. "name": "kind",
  157. "type": "text",
  158. "primaryKey": false,
  159. "notNull": true,
  160. "autoincrement": false
  161. },
  162. "summary": {
  163. "name": "summary",
  164. "type": "text",
  165. "primaryKey": false,
  166. "notNull": true,
  167. "autoincrement": false
  168. },
  169. "detail": {
  170. "name": "detail",
  171. "type": "text",
  172. "primaryKey": false,
  173. "notNull": false,
  174. "autoincrement": false
  175. }
  176. },
  177. "indexes": {
  178. "audit_ts_idx": {
  179. "name": "audit_ts_idx",
  180. "columns": [
  181. "ts"
  182. ],
  183. "isUnique": false
  184. }
  185. },
  186. "foreignKeys": {},
  187. "compositePrimaryKeys": {},
  188. "uniqueConstraints": {},
  189. "checkConstraints": {}
  190. },
  191. "bot_api_keys": {
  192. "name": "bot_api_keys",
  193. "columns": {
  194. "id": {
  195. "name": "id",
  196. "type": "text",
  197. "primaryKey": true,
  198. "notNull": true,
  199. "autoincrement": false
  200. },
  201. "name": {
  202. "name": "name",
  203. "type": "text",
  204. "primaryKey": false,
  205. "notNull": true,
  206. "autoincrement": false
  207. },
  208. "key_hash": {
  209. "name": "key_hash",
  210. "type": "text",
  211. "primaryKey": false,
  212. "notNull": true,
  213. "autoincrement": false
  214. },
  215. "key_prefix": {
  216. "name": "key_prefix",
  217. "type": "text",
  218. "primaryKey": false,
  219. "notNull": true,
  220. "autoincrement": false
  221. },
  222. "enabled": {
  223. "name": "enabled",
  224. "type": "integer",
  225. "primaryKey": false,
  226. "notNull": true,
  227. "autoincrement": false,
  228. "default": true
  229. },
  230. "allowed_bot_ids": {
  231. "name": "allowed_bot_ids",
  232. "type": "text",
  233. "primaryKey": false,
  234. "notNull": true,
  235. "autoincrement": false,
  236. "default": "'[]'"
  237. },
  238. "created_at": {
  239. "name": "created_at",
  240. "type": "text",
  241. "primaryKey": false,
  242. "notNull": true,
  243. "autoincrement": false,
  244. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  245. },
  246. "last_used_at": {
  247. "name": "last_used_at",
  248. "type": "text",
  249. "primaryKey": false,
  250. "notNull": false,
  251. "autoincrement": false
  252. }
  253. },
  254. "indexes": {
  255. "bot_api_keys_key_hash_unique": {
  256. "name": "bot_api_keys_key_hash_unique",
  257. "columns": [
  258. "key_hash"
  259. ],
  260. "isUnique": true
  261. }
  262. },
  263. "foreignKeys": {},
  264. "compositePrimaryKeys": {},
  265. "uniqueConstraints": {},
  266. "checkConstraints": {}
  267. },
  268. "bots": {
  269. "name": "bots",
  270. "columns": {
  271. "id": {
  272. "name": "id",
  273. "type": "text",
  274. "primaryKey": true,
  275. "notNull": true,
  276. "autoincrement": false
  277. },
  278. "name": {
  279. "name": "name",
  280. "type": "text",
  281. "primaryKey": false,
  282. "notNull": true,
  283. "autoincrement": false
  284. },
  285. "avatar": {
  286. "name": "avatar",
  287. "type": "text",
  288. "primaryKey": false,
  289. "notNull": true,
  290. "autoincrement": false,
  291. "default": "'🤖'"
  292. },
  293. "kind": {
  294. "name": "kind",
  295. "type": "text",
  296. "primaryKey": false,
  297. "notNull": true,
  298. "autoincrement": false
  299. },
  300. "description": {
  301. "name": "description",
  302. "type": "text",
  303. "primaryKey": false,
  304. "notNull": true,
  305. "autoincrement": false,
  306. "default": "''"
  307. },
  308. "profile_id": {
  309. "name": "profile_id",
  310. "type": "text",
  311. "primaryKey": false,
  312. "notNull": true,
  313. "autoincrement": false
  314. },
  315. "enabled": {
  316. "name": "enabled",
  317. "type": "integer",
  318. "primaryKey": false,
  319. "notNull": true,
  320. "autoincrement": false,
  321. "default": true
  322. },
  323. "created_at": {
  324. "name": "created_at",
  325. "type": "text",
  326. "primaryKey": false,
  327. "notNull": true,
  328. "autoincrement": false,
  329. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  330. },
  331. "updated_at": {
  332. "name": "updated_at",
  333. "type": "text",
  334. "primaryKey": false,
  335. "notNull": true,
  336. "autoincrement": false,
  337. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  338. }
  339. },
  340. "indexes": {
  341. "bots_name_unique": {
  342. "name": "bots_name_unique",
  343. "columns": [
  344. "name"
  345. ],
  346. "isUnique": true
  347. }
  348. },
  349. "foreignKeys": {},
  350. "compositePrimaryKeys": {},
  351. "uniqueConstraints": {},
  352. "checkConstraints": {}
  353. },
  354. "custom_skill_versions": {
  355. "name": "custom_skill_versions",
  356. "columns": {
  357. "skill_id": {
  358. "name": "skill_id",
  359. "type": "text",
  360. "primaryKey": false,
  361. "notNull": true,
  362. "autoincrement": false
  363. },
  364. "version": {
  365. "name": "version",
  366. "type": "integer",
  367. "primaryKey": false,
  368. "notNull": true,
  369. "autoincrement": false
  370. },
  371. "reason": {
  372. "name": "reason",
  373. "type": "text",
  374. "primaryKey": false,
  375. "notNull": true,
  376. "autoincrement": false
  377. },
  378. "files": {
  379. "name": "files",
  380. "type": "text",
  381. "primaryKey": false,
  382. "notNull": true,
  383. "autoincrement": false
  384. },
  385. "changed": {
  386. "name": "changed",
  387. "type": "text",
  388. "primaryKey": false,
  389. "notNull": true,
  390. "autoincrement": false
  391. },
  392. "created_at": {
  393. "name": "created_at",
  394. "type": "text",
  395. "primaryKey": false,
  396. "notNull": true,
  397. "autoincrement": false,
  398. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  399. }
  400. },
  401. "indexes": {},
  402. "foreignKeys": {},
  403. "compositePrimaryKeys": {
  404. "custom_skill_versions_skill_id_version_pk": {
  405. "columns": [
  406. "skill_id",
  407. "version"
  408. ],
  409. "name": "custom_skill_versions_skill_id_version_pk"
  410. }
  411. },
  412. "uniqueConstraints": {},
  413. "checkConstraints": {}
  414. },
  415. "custom_skills": {
  416. "name": "custom_skills",
  417. "columns": {
  418. "id": {
  419. "name": "id",
  420. "type": "text",
  421. "primaryKey": true,
  422. "notNull": true,
  423. "autoincrement": false
  424. },
  425. "name": {
  426. "name": "name",
  427. "type": "text",
  428. "primaryKey": false,
  429. "notNull": true,
  430. "autoincrement": false
  431. },
  432. "description": {
  433. "name": "description",
  434. "type": "text",
  435. "primaryKey": false,
  436. "notNull": true,
  437. "autoincrement": false,
  438. "default": "''"
  439. },
  440. "origin": {
  441. "name": "origin",
  442. "type": "text",
  443. "primaryKey": false,
  444. "notNull": true,
  445. "autoincrement": false
  446. },
  447. "source_id": {
  448. "name": "source_id",
  449. "type": "text",
  450. "primaryKey": false,
  451. "notNull": false,
  452. "autoincrement": false
  453. },
  454. "enabled": {
  455. "name": "enabled",
  456. "type": "integer",
  457. "primaryKey": false,
  458. "notNull": true,
  459. "autoincrement": false,
  460. "default": true
  461. },
  462. "include_in_all": {
  463. "name": "include_in_all",
  464. "type": "integer",
  465. "primaryKey": false,
  466. "notNull": true,
  467. "autoincrement": false,
  468. "default": false
  469. },
  470. "published_version": {
  471. "name": "published_version",
  472. "type": "integer",
  473. "primaryKey": false,
  474. "notNull": false,
  475. "autoincrement": false
  476. },
  477. "latest_version": {
  478. "name": "latest_version",
  479. "type": "integer",
  480. "primaryKey": false,
  481. "notNull": true,
  482. "autoincrement": false,
  483. "default": 0
  484. },
  485. "working_files": {
  486. "name": "working_files",
  487. "type": "text",
  488. "primaryKey": false,
  489. "notNull": true,
  490. "autoincrement": false,
  491. "default": "'{}'"
  492. },
  493. "created_at": {
  494. "name": "created_at",
  495. "type": "text",
  496. "primaryKey": false,
  497. "notNull": true,
  498. "autoincrement": false,
  499. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  500. },
  501. "updated_at": {
  502. "name": "updated_at",
  503. "type": "text",
  504. "primaryKey": false,
  505. "notNull": true,
  506. "autoincrement": false,
  507. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  508. }
  509. },
  510. "indexes": {
  511. "custom_skills_name_unique": {
  512. "name": "custom_skills_name_unique",
  513. "columns": [
  514. "name"
  515. ],
  516. "isUnique": true
  517. }
  518. },
  519. "foreignKeys": {},
  520. "compositePrimaryKeys": {},
  521. "uniqueConstraints": {},
  522. "checkConstraints": {}
  523. },
  524. "events": {
  525. "name": "events",
  526. "columns": {
  527. "session_id": {
  528. "name": "session_id",
  529. "type": "text",
  530. "primaryKey": false,
  531. "notNull": true,
  532. "autoincrement": false
  533. },
  534. "seq": {
  535. "name": "seq",
  536. "type": "integer",
  537. "primaryKey": false,
  538. "notNull": true,
  539. "autoincrement": false
  540. },
  541. "run_id": {
  542. "name": "run_id",
  543. "type": "text",
  544. "primaryKey": false,
  545. "notNull": false,
  546. "autoincrement": false
  547. },
  548. "type": {
  549. "name": "type",
  550. "type": "text",
  551. "primaryKey": false,
  552. "notNull": true,
  553. "autoincrement": false
  554. },
  555. "payload": {
  556. "name": "payload",
  557. "type": "text",
  558. "primaryKey": false,
  559. "notNull": true,
  560. "autoincrement": false
  561. },
  562. "ts": {
  563. "name": "ts",
  564. "type": "text",
  565. "primaryKey": false,
  566. "notNull": true,
  567. "autoincrement": false
  568. }
  569. },
  570. "indexes": {},
  571. "foreignKeys": {},
  572. "compositePrimaryKeys": {
  573. "events_session_id_seq_pk": {
  574. "columns": [
  575. "session_id",
  576. "seq"
  577. ],
  578. "name": "events_session_id_seq_pk"
  579. }
  580. },
  581. "uniqueConstraints": {},
  582. "checkConstraints": {}
  583. },
  584. "files": {
  585. "name": "files",
  586. "columns": {
  587. "id": {
  588. "name": "id",
  589. "type": "text",
  590. "primaryKey": true,
  591. "notNull": true,
  592. "autoincrement": false
  593. },
  594. "session_id": {
  595. "name": "session_id",
  596. "type": "text",
  597. "primaryKey": false,
  598. "notNull": true,
  599. "autoincrement": false
  600. },
  601. "rel_path": {
  602. "name": "rel_path",
  603. "type": "text",
  604. "primaryKey": false,
  605. "notNull": true,
  606. "autoincrement": false
  607. },
  608. "origin": {
  609. "name": "origin",
  610. "type": "text",
  611. "primaryKey": false,
  612. "notNull": true,
  613. "autoincrement": false
  614. },
  615. "mime": {
  616. "name": "mime",
  617. "type": "text",
  618. "primaryKey": false,
  619. "notNull": true,
  620. "autoincrement": false
  621. },
  622. "size": {
  623. "name": "size",
  624. "type": "integer",
  625. "primaryKey": false,
  626. "notNull": true,
  627. "autoincrement": false
  628. },
  629. "mtime_ms": {
  630. "name": "mtime_ms",
  631. "type": "real",
  632. "primaryKey": false,
  633. "notNull": true,
  634. "autoincrement": false
  635. },
  636. "created_at": {
  637. "name": "created_at",
  638. "type": "text",
  639. "primaryKey": false,
  640. "notNull": true,
  641. "autoincrement": false,
  642. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  643. },
  644. "updated_at": {
  645. "name": "updated_at",
  646. "type": "text",
  647. "primaryKey": false,
  648. "notNull": true,
  649. "autoincrement": false,
  650. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  651. }
  652. },
  653. "indexes": {
  654. "files_session_path_idx": {
  655. "name": "files_session_path_idx",
  656. "columns": [
  657. "session_id",
  658. "rel_path"
  659. ],
  660. "isUnique": false
  661. }
  662. },
  663. "foreignKeys": {},
  664. "compositePrimaryKeys": {},
  665. "uniqueConstraints": {},
  666. "checkConstraints": {}
  667. },
  668. "interactions": {
  669. "name": "interactions",
  670. "columns": {
  671. "id": {
  672. "name": "id",
  673. "type": "text",
  674. "primaryKey": true,
  675. "notNull": true,
  676. "autoincrement": false
  677. },
  678. "session_id": {
  679. "name": "session_id",
  680. "type": "text",
  681. "primaryKey": false,
  682. "notNull": true,
  683. "autoincrement": false
  684. },
  685. "run_id": {
  686. "name": "run_id",
  687. "type": "text",
  688. "primaryKey": false,
  689. "notNull": true,
  690. "autoincrement": false
  691. },
  692. "kind": {
  693. "name": "kind",
  694. "type": "text",
  695. "primaryKey": false,
  696. "notNull": true,
  697. "autoincrement": false
  698. },
  699. "request": {
  700. "name": "request",
  701. "type": "text",
  702. "primaryKey": false,
  703. "notNull": true,
  704. "autoincrement": false
  705. },
  706. "response": {
  707. "name": "response",
  708. "type": "text",
  709. "primaryKey": false,
  710. "notNull": false,
  711. "autoincrement": false
  712. },
  713. "status": {
  714. "name": "status",
  715. "type": "text",
  716. "primaryKey": false,
  717. "notNull": true,
  718. "autoincrement": false
  719. },
  720. "created_at": {
  721. "name": "created_at",
  722. "type": "text",
  723. "primaryKey": false,
  724. "notNull": true,
  725. "autoincrement": false,
  726. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  727. },
  728. "resolved_at": {
  729. "name": "resolved_at",
  730. "type": "text",
  731. "primaryKey": false,
  732. "notNull": false,
  733. "autoincrement": false
  734. },
  735. "expires_at": {
  736. "name": "expires_at",
  737. "type": "text",
  738. "primaryKey": false,
  739. "notNull": true,
  740. "autoincrement": false
  741. }
  742. },
  743. "indexes": {
  744. "interactions_session_idx": {
  745. "name": "interactions_session_idx",
  746. "columns": [
  747. "session_id",
  748. "status"
  749. ],
  750. "isUnique": false
  751. }
  752. },
  753. "foreignKeys": {},
  754. "compositePrimaryKeys": {},
  755. "uniqueConstraints": {},
  756. "checkConstraints": {}
  757. },
  758. "jobs": {
  759. "name": "jobs",
  760. "columns": {
  761. "id": {
  762. "name": "id",
  763. "type": "text",
  764. "primaryKey": true,
  765. "notNull": true,
  766. "autoincrement": false
  767. },
  768. "team_id": {
  769. "name": "team_id",
  770. "type": "text",
  771. "primaryKey": false,
  772. "notNull": true,
  773. "autoincrement": false
  774. },
  775. "no": {
  776. "name": "no",
  777. "type": "integer",
  778. "primaryKey": false,
  779. "notNull": true,
  780. "autoincrement": false
  781. },
  782. "title": {
  783. "name": "title",
  784. "type": "text",
  785. "primaryKey": false,
  786. "notNull": true,
  787. "autoincrement": false
  788. },
  789. "plan": {
  790. "name": "plan",
  791. "type": "text",
  792. "primaryKey": false,
  793. "notNull": true,
  794. "autoincrement": false,
  795. "default": "''"
  796. },
  797. "status": {
  798. "name": "status",
  799. "type": "text",
  800. "primaryKey": false,
  801. "notNull": true,
  802. "autoincrement": false,
  803. "default": "'running'"
  804. },
  805. "summary": {
  806. "name": "summary",
  807. "type": "text",
  808. "primaryKey": false,
  809. "notNull": false,
  810. "autoincrement": false
  811. },
  812. "files": {
  813. "name": "files",
  814. "type": "text",
  815. "primaryKey": false,
  816. "notNull": true,
  817. "autoincrement": false,
  818. "default": "'[]'"
  819. },
  820. "blocked_by": {
  821. "name": "blocked_by",
  822. "type": "text",
  823. "primaryKey": false,
  824. "notNull": false,
  825. "autoincrement": false
  826. },
  827. "limits": {
  828. "name": "limits",
  829. "type": "text",
  830. "primaryKey": false,
  831. "notNull": true,
  832. "autoincrement": false
  833. },
  834. "lead_runs": {
  835. "name": "lead_runs",
  836. "type": "integer",
  837. "primaryKey": false,
  838. "notNull": true,
  839. "autoincrement": false,
  840. "default": 0
  841. },
  842. "run_ids": {
  843. "name": "run_ids",
  844. "type": "text",
  845. "primaryKey": false,
  846. "notNull": true,
  847. "autoincrement": false,
  848. "default": "'[]'"
  849. },
  850. "created_at": {
  851. "name": "created_at",
  852. "type": "text",
  853. "primaryKey": false,
  854. "notNull": true,
  855. "autoincrement": false,
  856. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  857. },
  858. "ended_at": {
  859. "name": "ended_at",
  860. "type": "text",
  861. "primaryKey": false,
  862. "notNull": false,
  863. "autoincrement": false
  864. }
  865. },
  866. "indexes": {
  867. "jobs_team_idx": {
  868. "name": "jobs_team_idx",
  869. "columns": [
  870. "team_id",
  871. "no"
  872. ],
  873. "isUnique": false
  874. }
  875. },
  876. "foreignKeys": {},
  877. "compositePrimaryKeys": {},
  878. "uniqueConstraints": {},
  879. "checkConstraints": {}
  880. },
  881. "knowledge_roots": {
  882. "name": "knowledge_roots",
  883. "columns": {
  884. "id": {
  885. "name": "id",
  886. "type": "text",
  887. "primaryKey": true,
  888. "notNull": true,
  889. "autoincrement": false
  890. },
  891. "name": {
  892. "name": "name",
  893. "type": "text",
  894. "primaryKey": false,
  895. "notNull": true,
  896. "autoincrement": false
  897. },
  898. "path": {
  899. "name": "path",
  900. "type": "text",
  901. "primaryKey": false,
  902. "notNull": true,
  903. "autoincrement": false
  904. },
  905. "description": {
  906. "name": "description",
  907. "type": "text",
  908. "primaryKey": false,
  909. "notNull": true,
  910. "autoincrement": false,
  911. "default": "''"
  912. },
  913. "access": {
  914. "name": "access",
  915. "type": "text",
  916. "primaryKey": false,
  917. "notNull": true,
  918. "autoincrement": false,
  919. "default": "'read'"
  920. },
  921. "enabled": {
  922. "name": "enabled",
  923. "type": "integer",
  924. "primaryKey": false,
  925. "notNull": true,
  926. "autoincrement": false,
  927. "default": true
  928. },
  929. "created_at": {
  930. "name": "created_at",
  931. "type": "text",
  932. "primaryKey": false,
  933. "notNull": true,
  934. "autoincrement": false,
  935. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  936. },
  937. "updated_at": {
  938. "name": "updated_at",
  939. "type": "text",
  940. "primaryKey": false,
  941. "notNull": true,
  942. "autoincrement": false,
  943. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  944. }
  945. },
  946. "indexes": {},
  947. "foreignKeys": {},
  948. "compositePrimaryKeys": {},
  949. "uniqueConstraints": {},
  950. "checkConstraints": {}
  951. },
  952. "mcp_servers": {
  953. "name": "mcp_servers",
  954. "columns": {
  955. "id": {
  956. "name": "id",
  957. "type": "text",
  958. "primaryKey": true,
  959. "notNull": true,
  960. "autoincrement": false
  961. },
  962. "name": {
  963. "name": "name",
  964. "type": "text",
  965. "primaryKey": false,
  966. "notNull": true,
  967. "autoincrement": false
  968. },
  969. "title": {
  970. "name": "title",
  971. "type": "text",
  972. "primaryKey": false,
  973. "notNull": true,
  974. "autoincrement": false
  975. },
  976. "description": {
  977. "name": "description",
  978. "type": "text",
  979. "primaryKey": false,
  980. "notNull": true,
  981. "autoincrement": false,
  982. "default": "''"
  983. },
  984. "transport": {
  985. "name": "transport",
  986. "type": "text",
  987. "primaryKey": false,
  988. "notNull": true,
  989. "autoincrement": false
  990. },
  991. "enabled": {
  992. "name": "enabled",
  993. "type": "integer",
  994. "primaryKey": false,
  995. "notNull": true,
  996. "autoincrement": false,
  997. "default": true
  998. },
  999. "url": {
  1000. "name": "url",
  1001. "type": "text",
  1002. "primaryKey": false,
  1003. "notNull": true,
  1004. "autoincrement": false,
  1005. "default": "''"
  1006. },
  1007. "headers": {
  1008. "name": "headers",
  1009. "type": "text",
  1010. "primaryKey": false,
  1011. "notNull": true,
  1012. "autoincrement": false,
  1013. "default": "'{}'"
  1014. },
  1015. "command": {
  1016. "name": "command",
  1017. "type": "text",
  1018. "primaryKey": false,
  1019. "notNull": true,
  1020. "autoincrement": false,
  1021. "default": "''"
  1022. },
  1023. "args": {
  1024. "name": "args",
  1025. "type": "text",
  1026. "primaryKey": false,
  1027. "notNull": true,
  1028. "autoincrement": false,
  1029. "default": "'[]'"
  1030. },
  1031. "env": {
  1032. "name": "env",
  1033. "type": "text",
  1034. "primaryKey": false,
  1035. "notNull": true,
  1036. "autoincrement": false,
  1037. "default": "'{}'"
  1038. },
  1039. "allow_network": {
  1040. "name": "allow_network",
  1041. "type": "integer",
  1042. "primaryKey": false,
  1043. "notNull": true,
  1044. "autoincrement": false,
  1045. "default": false
  1046. },
  1047. "read_paths": {
  1048. "name": "read_paths",
  1049. "type": "text",
  1050. "primaryKey": false,
  1051. "notNull": true,
  1052. "autoincrement": false,
  1053. "default": "'[]'"
  1054. },
  1055. "write_paths": {
  1056. "name": "write_paths",
  1057. "type": "text",
  1058. "primaryKey": false,
  1059. "notNull": true,
  1060. "autoincrement": false,
  1061. "default": "'[]'"
  1062. },
  1063. "tool_policies": {
  1064. "name": "tool_policies",
  1065. "type": "text",
  1066. "primaryKey": false,
  1067. "notNull": true,
  1068. "autoincrement": false,
  1069. "default": "'{}'"
  1070. },
  1071. "tools_cache": {
  1072. "name": "tools_cache",
  1073. "type": "text",
  1074. "primaryKey": false,
  1075. "notNull": true,
  1076. "autoincrement": false,
  1077. "default": "'[]'"
  1078. },
  1079. "tools_updated_at": {
  1080. "name": "tools_updated_at",
  1081. "type": "text",
  1082. "primaryKey": false,
  1083. "notNull": false,
  1084. "autoincrement": false
  1085. },
  1086. "created_at": {
  1087. "name": "created_at",
  1088. "type": "text",
  1089. "primaryKey": false,
  1090. "notNull": true,
  1091. "autoincrement": false,
  1092. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1093. },
  1094. "updated_at": {
  1095. "name": "updated_at",
  1096. "type": "text",
  1097. "primaryKey": false,
  1098. "notNull": true,
  1099. "autoincrement": false,
  1100. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1101. }
  1102. },
  1103. "indexes": {
  1104. "mcp_servers_name_unique": {
  1105. "name": "mcp_servers_name_unique",
  1106. "columns": [
  1107. "name"
  1108. ],
  1109. "isUnique": true
  1110. }
  1111. },
  1112. "foreignKeys": {},
  1113. "compositePrimaryKeys": {},
  1114. "uniqueConstraints": {},
  1115. "checkConstraints": {}
  1116. },
  1117. "profile_versions": {
  1118. "name": "profile_versions",
  1119. "columns": {
  1120. "profile_id": {
  1121. "name": "profile_id",
  1122. "type": "text",
  1123. "primaryKey": false,
  1124. "notNull": true,
  1125. "autoincrement": false
  1126. },
  1127. "version": {
  1128. "name": "version",
  1129. "type": "integer",
  1130. "primaryKey": false,
  1131. "notNull": true,
  1132. "autoincrement": false
  1133. },
  1134. "snapshot": {
  1135. "name": "snapshot",
  1136. "type": "text",
  1137. "primaryKey": false,
  1138. "notNull": true,
  1139. "autoincrement": false
  1140. },
  1141. "created_at": {
  1142. "name": "created_at",
  1143. "type": "text",
  1144. "primaryKey": false,
  1145. "notNull": true,
  1146. "autoincrement": false,
  1147. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1148. }
  1149. },
  1150. "indexes": {},
  1151. "foreignKeys": {},
  1152. "compositePrimaryKeys": {
  1153. "profile_versions_profile_id_version_pk": {
  1154. "columns": [
  1155. "profile_id",
  1156. "version"
  1157. ],
  1158. "name": "profile_versions_profile_id_version_pk"
  1159. }
  1160. },
  1161. "uniqueConstraints": {},
  1162. "checkConstraints": {}
  1163. },
  1164. "profiles": {
  1165. "name": "profiles",
  1166. "columns": {
  1167. "id": {
  1168. "name": "id",
  1169. "type": "text",
  1170. "primaryKey": true,
  1171. "notNull": true,
  1172. "autoincrement": false
  1173. },
  1174. "name": {
  1175. "name": "name",
  1176. "type": "text",
  1177. "primaryKey": false,
  1178. "notNull": true,
  1179. "autoincrement": false
  1180. },
  1181. "description": {
  1182. "name": "description",
  1183. "type": "text",
  1184. "primaryKey": false,
  1185. "notNull": true,
  1186. "autoincrement": false,
  1187. "default": "''"
  1188. },
  1189. "provider": {
  1190. "name": "provider",
  1191. "type": "text",
  1192. "primaryKey": false,
  1193. "notNull": true,
  1194. "autoincrement": false
  1195. },
  1196. "model": {
  1197. "name": "model",
  1198. "type": "text",
  1199. "primaryKey": false,
  1200. "notNull": true,
  1201. "autoincrement": false
  1202. },
  1203. "system_prompt": {
  1204. "name": "system_prompt",
  1205. "type": "text",
  1206. "primaryKey": false,
  1207. "notNull": true,
  1208. "autoincrement": false,
  1209. "default": "''"
  1210. },
  1211. "permission_mode": {
  1212. "name": "permission_mode",
  1213. "type": "text",
  1214. "primaryKey": false,
  1215. "notNull": true,
  1216. "autoincrement": false,
  1217. "default": "'ask'"
  1218. },
  1219. "allowed_tools": {
  1220. "name": "allowed_tools",
  1221. "type": "text",
  1222. "primaryKey": false,
  1223. "notNull": true,
  1224. "autoincrement": false,
  1225. "default": "'[]'"
  1226. },
  1227. "disallowed_tools": {
  1228. "name": "disallowed_tools",
  1229. "type": "text",
  1230. "primaryKey": false,
  1231. "notNull": true,
  1232. "autoincrement": false,
  1233. "default": "'[]'"
  1234. },
  1235. "skills": {
  1236. "name": "skills",
  1237. "type": "text",
  1238. "primaryKey": false,
  1239. "notNull": true,
  1240. "autoincrement": false,
  1241. "default": "'\"all\"'"
  1242. },
  1243. "file_access": {
  1244. "name": "file_access",
  1245. "type": "text",
  1246. "primaryKey": false,
  1247. "notNull": true,
  1248. "autoincrement": false
  1249. },
  1250. "knowledge_root_ids": {
  1251. "name": "knowledge_root_ids",
  1252. "type": "text",
  1253. "primaryKey": false,
  1254. "notNull": true,
  1255. "autoincrement": false,
  1256. "default": "'[]'"
  1257. },
  1258. "mcp_server_ids": {
  1259. "name": "mcp_server_ids",
  1260. "type": "text",
  1261. "primaryKey": false,
  1262. "notNull": true,
  1263. "autoincrement": false,
  1264. "default": "'[]'"
  1265. },
  1266. "is_default": {
  1267. "name": "is_default",
  1268. "type": "integer",
  1269. "primaryKey": false,
  1270. "notNull": true,
  1271. "autoincrement": false,
  1272. "default": false
  1273. },
  1274. "builtin": {
  1275. "name": "builtin",
  1276. "type": "integer",
  1277. "primaryKey": false,
  1278. "notNull": true,
  1279. "autoincrement": false,
  1280. "default": false
  1281. },
  1282. "builtin_key": {
  1283. "name": "builtin_key",
  1284. "type": "text",
  1285. "primaryKey": false,
  1286. "notNull": false,
  1287. "autoincrement": false
  1288. },
  1289. "version": {
  1290. "name": "version",
  1291. "type": "integer",
  1292. "primaryKey": false,
  1293. "notNull": true,
  1294. "autoincrement": false,
  1295. "default": 1
  1296. },
  1297. "created_at": {
  1298. "name": "created_at",
  1299. "type": "text",
  1300. "primaryKey": false,
  1301. "notNull": true,
  1302. "autoincrement": false,
  1303. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1304. },
  1305. "updated_at": {
  1306. "name": "updated_at",
  1307. "type": "text",
  1308. "primaryKey": false,
  1309. "notNull": true,
  1310. "autoincrement": false,
  1311. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1312. }
  1313. },
  1314. "indexes": {},
  1315. "foreignKeys": {},
  1316. "compositePrimaryKeys": {},
  1317. "uniqueConstraints": {},
  1318. "checkConstraints": {}
  1319. },
  1320. "runs": {
  1321. "name": "runs",
  1322. "columns": {
  1323. "id": {
  1324. "name": "id",
  1325. "type": "text",
  1326. "primaryKey": true,
  1327. "notNull": true,
  1328. "autoincrement": false
  1329. },
  1330. "session_id": {
  1331. "name": "session_id",
  1332. "type": "text",
  1333. "primaryKey": false,
  1334. "notNull": true,
  1335. "autoincrement": false
  1336. },
  1337. "status": {
  1338. "name": "status",
  1339. "type": "text",
  1340. "primaryKey": false,
  1341. "notNull": true,
  1342. "autoincrement": false
  1343. },
  1344. "started_at": {
  1345. "name": "started_at",
  1346. "type": "text",
  1347. "primaryKey": false,
  1348. "notNull": false,
  1349. "autoincrement": false
  1350. },
  1351. "ended_at": {
  1352. "name": "ended_at",
  1353. "type": "text",
  1354. "primaryKey": false,
  1355. "notNull": false,
  1356. "autoincrement": false
  1357. },
  1358. "input_tokens": {
  1359. "name": "input_tokens",
  1360. "type": "integer",
  1361. "primaryKey": false,
  1362. "notNull": false,
  1363. "autoincrement": false
  1364. },
  1365. "output_tokens": {
  1366. "name": "output_tokens",
  1367. "type": "integer",
  1368. "primaryKey": false,
  1369. "notNull": false,
  1370. "autoincrement": false
  1371. },
  1372. "cache_read_tokens": {
  1373. "name": "cache_read_tokens",
  1374. "type": "integer",
  1375. "primaryKey": false,
  1376. "notNull": false,
  1377. "autoincrement": false
  1378. },
  1379. "cache_write_tokens": {
  1380. "name": "cache_write_tokens",
  1381. "type": "integer",
  1382. "primaryKey": false,
  1383. "notNull": false,
  1384. "autoincrement": false
  1385. },
  1386. "cost_usd": {
  1387. "name": "cost_usd",
  1388. "type": "real",
  1389. "primaryKey": false,
  1390. "notNull": false,
  1391. "autoincrement": false
  1392. },
  1393. "context_tokens": {
  1394. "name": "context_tokens",
  1395. "type": "integer",
  1396. "primaryKey": false,
  1397. "notNull": false,
  1398. "autoincrement": false
  1399. },
  1400. "error": {
  1401. "name": "error",
  1402. "type": "text",
  1403. "primaryKey": false,
  1404. "notNull": false,
  1405. "autoincrement": false
  1406. },
  1407. "created_at": {
  1408. "name": "created_at",
  1409. "type": "text",
  1410. "primaryKey": false,
  1411. "notNull": true,
  1412. "autoincrement": false,
  1413. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1414. }
  1415. },
  1416. "indexes": {
  1417. "runs_session_idx": {
  1418. "name": "runs_session_idx",
  1419. "columns": [
  1420. "session_id"
  1421. ],
  1422. "isUnique": false
  1423. }
  1424. },
  1425. "foreignKeys": {},
  1426. "compositePrimaryKeys": {},
  1427. "uniqueConstraints": {},
  1428. "checkConstraints": {}
  1429. },
  1430. "schedule_runs": {
  1431. "name": "schedule_runs",
  1432. "columns": {
  1433. "id": {
  1434. "name": "id",
  1435. "type": "integer",
  1436. "primaryKey": true,
  1437. "notNull": true,
  1438. "autoincrement": true
  1439. },
  1440. "schedule_id": {
  1441. "name": "schedule_id",
  1442. "type": "text",
  1443. "primaryKey": false,
  1444. "notNull": true,
  1445. "autoincrement": false
  1446. },
  1447. "ts": {
  1448. "name": "ts",
  1449. "type": "text",
  1450. "primaryKey": false,
  1451. "notNull": true,
  1452. "autoincrement": false,
  1453. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1454. },
  1455. "outcome": {
  1456. "name": "outcome",
  1457. "type": "text",
  1458. "primaryKey": false,
  1459. "notNull": true,
  1460. "autoincrement": false
  1461. },
  1462. "run_id": {
  1463. "name": "run_id",
  1464. "type": "text",
  1465. "primaryKey": false,
  1466. "notNull": false,
  1467. "autoincrement": false
  1468. },
  1469. "cost_usd": {
  1470. "name": "cost_usd",
  1471. "type": "real",
  1472. "primaryKey": false,
  1473. "notNull": false,
  1474. "autoincrement": false
  1475. },
  1476. "note": {
  1477. "name": "note",
  1478. "type": "text",
  1479. "primaryKey": false,
  1480. "notNull": false,
  1481. "autoincrement": false
  1482. }
  1483. },
  1484. "indexes": {
  1485. "schedule_runs_idx": {
  1486. "name": "schedule_runs_idx",
  1487. "columns": [
  1488. "schedule_id",
  1489. "id"
  1490. ],
  1491. "isUnique": false
  1492. }
  1493. },
  1494. "foreignKeys": {},
  1495. "compositePrimaryKeys": {},
  1496. "uniqueConstraints": {},
  1497. "checkConstraints": {}
  1498. },
  1499. "schedules": {
  1500. "name": "schedules",
  1501. "columns": {
  1502. "id": {
  1503. "name": "id",
  1504. "type": "text",
  1505. "primaryKey": true,
  1506. "notNull": true,
  1507. "autoincrement": false
  1508. },
  1509. "session_id": {
  1510. "name": "session_id",
  1511. "type": "text",
  1512. "primaryKey": false,
  1513. "notNull": false,
  1514. "autoincrement": false
  1515. },
  1516. "team_id": {
  1517. "name": "team_id",
  1518. "type": "text",
  1519. "primaryKey": false,
  1520. "notNull": false,
  1521. "autoincrement": false
  1522. },
  1523. "created_by_bot_id": {
  1524. "name": "created_by_bot_id",
  1525. "type": "text",
  1526. "primaryKey": false,
  1527. "notNull": false,
  1528. "autoincrement": false
  1529. },
  1530. "title": {
  1531. "name": "title",
  1532. "type": "text",
  1533. "primaryKey": false,
  1534. "notNull": true,
  1535. "autoincrement": false
  1536. },
  1537. "prompt": {
  1538. "name": "prompt",
  1539. "type": "text",
  1540. "primaryKey": false,
  1541. "notNull": true,
  1542. "autoincrement": false
  1543. },
  1544. "spec": {
  1545. "name": "spec",
  1546. "type": "text",
  1547. "primaryKey": false,
  1548. "notNull": true,
  1549. "autoincrement": false
  1550. },
  1551. "timezone": {
  1552. "name": "timezone",
  1553. "type": "text",
  1554. "primaryKey": false,
  1555. "notNull": true,
  1556. "autoincrement": false
  1557. },
  1558. "status": {
  1559. "name": "status",
  1560. "type": "text",
  1561. "primaryKey": false,
  1562. "notNull": true,
  1563. "autoincrement": false,
  1564. "default": "'active'"
  1565. },
  1566. "status_note": {
  1567. "name": "status_note",
  1568. "type": "text",
  1569. "primaryKey": false,
  1570. "notNull": false,
  1571. "autoincrement": false
  1572. },
  1573. "next_run_at": {
  1574. "name": "next_run_at",
  1575. "type": "text",
  1576. "primaryKey": false,
  1577. "notNull": false,
  1578. "autoincrement": false
  1579. },
  1580. "last_run_at": {
  1581. "name": "last_run_at",
  1582. "type": "text",
  1583. "primaryKey": false,
  1584. "notNull": false,
  1585. "autoincrement": false
  1586. },
  1587. "last_outcome": {
  1588. "name": "last_outcome",
  1589. "type": "text",
  1590. "primaryKey": false,
  1591. "notNull": false,
  1592. "autoincrement": false
  1593. },
  1594. "run_count": {
  1595. "name": "run_count",
  1596. "type": "integer",
  1597. "primaryKey": false,
  1598. "notNull": true,
  1599. "autoincrement": false,
  1600. "default": 0
  1601. },
  1602. "created_at": {
  1603. "name": "created_at",
  1604. "type": "text",
  1605. "primaryKey": false,
  1606. "notNull": true,
  1607. "autoincrement": false,
  1608. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1609. },
  1610. "updated_at": {
  1611. "name": "updated_at",
  1612. "type": "text",
  1613. "primaryKey": false,
  1614. "notNull": true,
  1615. "autoincrement": false,
  1616. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1617. }
  1618. },
  1619. "indexes": {
  1620. "schedules_due_idx": {
  1621. "name": "schedules_due_idx",
  1622. "columns": [
  1623. "status",
  1624. "next_run_at"
  1625. ],
  1626. "isUnique": false
  1627. },
  1628. "schedules_session_idx": {
  1629. "name": "schedules_session_idx",
  1630. "columns": [
  1631. "session_id"
  1632. ],
  1633. "isUnique": false
  1634. },
  1635. "schedules_team_idx": {
  1636. "name": "schedules_team_idx",
  1637. "columns": [
  1638. "team_id"
  1639. ],
  1640. "isUnique": false
  1641. }
  1642. },
  1643. "foreignKeys": {},
  1644. "compositePrimaryKeys": {},
  1645. "uniqueConstraints": {},
  1646. "checkConstraints": {}
  1647. },
  1648. "sessions": {
  1649. "name": "sessions",
  1650. "columns": {
  1651. "id": {
  1652. "name": "id",
  1653. "type": "text",
  1654. "primaryKey": true,
  1655. "notNull": true,
  1656. "autoincrement": false
  1657. },
  1658. "source": {
  1659. "name": "source",
  1660. "type": "text",
  1661. "primaryKey": false,
  1662. "notNull": true,
  1663. "autoincrement": false
  1664. },
  1665. "profile_id": {
  1666. "name": "profile_id",
  1667. "type": "text",
  1668. "primaryKey": false,
  1669. "notNull": false,
  1670. "autoincrement": false
  1671. },
  1672. "provider": {
  1673. "name": "provider",
  1674. "type": "text",
  1675. "primaryKey": false,
  1676. "notNull": true,
  1677. "autoincrement": false
  1678. },
  1679. "model": {
  1680. "name": "model",
  1681. "type": "text",
  1682. "primaryKey": false,
  1683. "notNull": true,
  1684. "autoincrement": false
  1685. },
  1686. "permission_mode": {
  1687. "name": "permission_mode",
  1688. "type": "text",
  1689. "primaryKey": false,
  1690. "notNull": false,
  1691. "autoincrement": false
  1692. },
  1693. "system_prompt_append": {
  1694. "name": "system_prompt_append",
  1695. "type": "text",
  1696. "primaryKey": false,
  1697. "notNull": true,
  1698. "autoincrement": false,
  1699. "default": "''"
  1700. },
  1701. "provider_session_id": {
  1702. "name": "provider_session_id",
  1703. "type": "text",
  1704. "primaryKey": false,
  1705. "notNull": false,
  1706. "autoincrement": false
  1707. },
  1708. "workspace_dir": {
  1709. "name": "workspace_dir",
  1710. "type": "text",
  1711. "primaryKey": false,
  1712. "notNull": true,
  1713. "autoincrement": false
  1714. },
  1715. "title": {
  1716. "name": "title",
  1717. "type": "text",
  1718. "primaryKey": false,
  1719. "notNull": true,
  1720. "autoincrement": false,
  1721. "default": "''"
  1722. },
  1723. "last_seq": {
  1724. "name": "last_seq",
  1725. "type": "integer",
  1726. "primaryKey": false,
  1727. "notNull": true,
  1728. "autoincrement": false,
  1729. "default": 0
  1730. },
  1731. "archived": {
  1732. "name": "archived",
  1733. "type": "integer",
  1734. "primaryKey": false,
  1735. "notNull": true,
  1736. "autoincrement": false,
  1737. "default": false
  1738. },
  1739. "created_at": {
  1740. "name": "created_at",
  1741. "type": "text",
  1742. "primaryKey": false,
  1743. "notNull": true,
  1744. "autoincrement": false,
  1745. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1746. },
  1747. "updated_at": {
  1748. "name": "updated_at",
  1749. "type": "text",
  1750. "primaryKey": false,
  1751. "notNull": true,
  1752. "autoincrement": false,
  1753. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1754. }
  1755. },
  1756. "indexes": {
  1757. "sessions_source_idx": {
  1758. "name": "sessions_source_idx",
  1759. "columns": [
  1760. "source",
  1761. "updated_at"
  1762. ],
  1763. "isUnique": false
  1764. }
  1765. },
  1766. "foreignKeys": {},
  1767. "compositePrimaryKeys": {},
  1768. "uniqueConstraints": {},
  1769. "checkConstraints": {}
  1770. },
  1771. "settings": {
  1772. "name": "settings",
  1773. "columns": {
  1774. "key": {
  1775. "name": "key",
  1776. "type": "text",
  1777. "primaryKey": true,
  1778. "notNull": true,
  1779. "autoincrement": false
  1780. },
  1781. "value": {
  1782. "name": "value",
  1783. "type": "text",
  1784. "primaryKey": false,
  1785. "notNull": true,
  1786. "autoincrement": false
  1787. },
  1788. "updated_at": {
  1789. "name": "updated_at",
  1790. "type": "text",
  1791. "primaryKey": false,
  1792. "notNull": true,
  1793. "autoincrement": false,
  1794. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1795. }
  1796. },
  1797. "indexes": {},
  1798. "foreignKeys": {},
  1799. "compositePrimaryKeys": {},
  1800. "uniqueConstraints": {},
  1801. "checkConstraints": {}
  1802. },
  1803. "skill_sources": {
  1804. "name": "skill_sources",
  1805. "columns": {
  1806. "id": {
  1807. "name": "id",
  1808. "type": "text",
  1809. "primaryKey": true,
  1810. "notNull": true,
  1811. "autoincrement": false
  1812. },
  1813. "name": {
  1814. "name": "name",
  1815. "type": "text",
  1816. "primaryKey": false,
  1817. "notNull": true,
  1818. "autoincrement": false
  1819. },
  1820. "description": {
  1821. "name": "description",
  1822. "type": "text",
  1823. "primaryKey": false,
  1824. "notNull": true,
  1825. "autoincrement": false,
  1826. "default": "''"
  1827. },
  1828. "kind": {
  1829. "name": "kind",
  1830. "type": "text",
  1831. "primaryKey": false,
  1832. "notNull": true,
  1833. "autoincrement": false
  1834. },
  1835. "path": {
  1836. "name": "path",
  1837. "type": "text",
  1838. "primaryKey": false,
  1839. "notNull": true,
  1840. "autoincrement": false
  1841. },
  1842. "sync_mode": {
  1843. "name": "sync_mode",
  1844. "type": "text",
  1845. "primaryKey": false,
  1846. "notNull": true,
  1847. "autoincrement": false,
  1848. "default": "'manual'"
  1849. },
  1850. "interval_min": {
  1851. "name": "interval_min",
  1852. "type": "integer",
  1853. "primaryKey": false,
  1854. "notNull": true,
  1855. "autoincrement": false,
  1856. "default": 10
  1857. },
  1858. "last_sync_at": {
  1859. "name": "last_sync_at",
  1860. "type": "text",
  1861. "primaryKey": false,
  1862. "notNull": false,
  1863. "autoincrement": false
  1864. },
  1865. "last_sync_digest": {
  1866. "name": "last_sync_digest",
  1867. "type": "text",
  1868. "primaryKey": false,
  1869. "notNull": false,
  1870. "autoincrement": false
  1871. },
  1872. "status": {
  1873. "name": "status",
  1874. "type": "text",
  1875. "primaryKey": false,
  1876. "notNull": true,
  1877. "autoincrement": false,
  1878. "default": "'never'"
  1879. },
  1880. "last_error": {
  1881. "name": "last_error",
  1882. "type": "text",
  1883. "primaryKey": false,
  1884. "notNull": false,
  1885. "autoincrement": false
  1886. },
  1887. "created_at": {
  1888. "name": "created_at",
  1889. "type": "text",
  1890. "primaryKey": false,
  1891. "notNull": true,
  1892. "autoincrement": false,
  1893. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1894. },
  1895. "updated_at": {
  1896. "name": "updated_at",
  1897. "type": "text",
  1898. "primaryKey": false,
  1899. "notNull": true,
  1900. "autoincrement": false,
  1901. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1902. }
  1903. },
  1904. "indexes": {},
  1905. "foreignKeys": {},
  1906. "compositePrimaryKeys": {},
  1907. "uniqueConstraints": {},
  1908. "checkConstraints": {}
  1909. },
  1910. "tasks": {
  1911. "name": "tasks",
  1912. "columns": {
  1913. "id": {
  1914. "name": "id",
  1915. "type": "text",
  1916. "primaryKey": true,
  1917. "notNull": true,
  1918. "autoincrement": false
  1919. },
  1920. "job_id": {
  1921. "name": "job_id",
  1922. "type": "text",
  1923. "primaryKey": false,
  1924. "notNull": true,
  1925. "autoincrement": false
  1926. },
  1927. "team_id": {
  1928. "name": "team_id",
  1929. "type": "text",
  1930. "primaryKey": false,
  1931. "notNull": true,
  1932. "autoincrement": false
  1933. },
  1934. "no": {
  1935. "name": "no",
  1936. "type": "integer",
  1937. "primaryKey": false,
  1938. "notNull": true,
  1939. "autoincrement": false
  1940. },
  1941. "bot_id": {
  1942. "name": "bot_id",
  1943. "type": "text",
  1944. "primaryKey": false,
  1945. "notNull": true,
  1946. "autoincrement": false
  1947. },
  1948. "title": {
  1949. "name": "title",
  1950. "type": "text",
  1951. "primaryKey": false,
  1952. "notNull": true,
  1953. "autoincrement": false
  1954. },
  1955. "instructions": {
  1956. "name": "instructions",
  1957. "type": "text",
  1958. "primaryKey": false,
  1959. "notNull": true,
  1960. "autoincrement": false
  1961. },
  1962. "depends_on": {
  1963. "name": "depends_on",
  1964. "type": "text",
  1965. "primaryKey": false,
  1966. "notNull": true,
  1967. "autoincrement": false,
  1968. "default": "'[]'"
  1969. },
  1970. "status": {
  1971. "name": "status",
  1972. "type": "text",
  1973. "primaryKey": false,
  1974. "notNull": true,
  1975. "autoincrement": false
  1976. },
  1977. "result": {
  1978. "name": "result",
  1979. "type": "text",
  1980. "primaryKey": false,
  1981. "notNull": false,
  1982. "autoincrement": false
  1983. },
  1984. "files": {
  1985. "name": "files",
  1986. "type": "text",
  1987. "primaryKey": false,
  1988. "notNull": true,
  1989. "autoincrement": false,
  1990. "default": "'[]'"
  1991. },
  1992. "run_id": {
  1993. "name": "run_id",
  1994. "type": "text",
  1995. "primaryKey": false,
  1996. "notNull": false,
  1997. "autoincrement": false
  1998. },
  1999. "session_id": {
  2000. "name": "session_id",
  2001. "type": "text",
  2002. "primaryKey": false,
  2003. "notNull": false,
  2004. "autoincrement": false
  2005. },
  2006. "created_at": {
  2007. "name": "created_at",
  2008. "type": "text",
  2009. "primaryKey": false,
  2010. "notNull": true,
  2011. "autoincrement": false,
  2012. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2013. },
  2014. "started_at": {
  2015. "name": "started_at",
  2016. "type": "text",
  2017. "primaryKey": false,
  2018. "notNull": false,
  2019. "autoincrement": false
  2020. },
  2021. "ended_at": {
  2022. "name": "ended_at",
  2023. "type": "text",
  2024. "primaryKey": false,
  2025. "notNull": false,
  2026. "autoincrement": false
  2027. }
  2028. },
  2029. "indexes": {
  2030. "tasks_team_idx": {
  2031. "name": "tasks_team_idx",
  2032. "columns": [
  2033. "team_id",
  2034. "no"
  2035. ],
  2036. "isUnique": false
  2037. },
  2038. "tasks_job_idx": {
  2039. "name": "tasks_job_idx",
  2040. "columns": [
  2041. "job_id"
  2042. ],
  2043. "isUnique": false
  2044. }
  2045. },
  2046. "foreignKeys": {},
  2047. "compositePrimaryKeys": {},
  2048. "uniqueConstraints": {},
  2049. "checkConstraints": {}
  2050. },
  2051. "team_bot_sessions": {
  2052. "name": "team_bot_sessions",
  2053. "columns": {
  2054. "team_id": {
  2055. "name": "team_id",
  2056. "type": "text",
  2057. "primaryKey": false,
  2058. "notNull": true,
  2059. "autoincrement": false
  2060. },
  2061. "bot_id": {
  2062. "name": "bot_id",
  2063. "type": "text",
  2064. "primaryKey": false,
  2065. "notNull": true,
  2066. "autoincrement": false
  2067. },
  2068. "session_id": {
  2069. "name": "session_id",
  2070. "type": "text",
  2071. "primaryKey": false,
  2072. "notNull": true,
  2073. "autoincrement": false
  2074. },
  2075. "last_read_seq": {
  2076. "name": "last_read_seq",
  2077. "type": "integer",
  2078. "primaryKey": false,
  2079. "notNull": true,
  2080. "autoincrement": false,
  2081. "default": 0
  2082. },
  2083. "reset_requested": {
  2084. "name": "reset_requested",
  2085. "type": "integer",
  2086. "primaryKey": false,
  2087. "notNull": true,
  2088. "autoincrement": false,
  2089. "default": false
  2090. }
  2091. },
  2092. "indexes": {
  2093. "team_bot_sessions_session_id_unique": {
  2094. "name": "team_bot_sessions_session_id_unique",
  2095. "columns": [
  2096. "session_id"
  2097. ],
  2098. "isUnique": true
  2099. }
  2100. },
  2101. "foreignKeys": {},
  2102. "compositePrimaryKeys": {
  2103. "team_bot_sessions_team_id_bot_id_pk": {
  2104. "columns": [
  2105. "team_id",
  2106. "bot_id"
  2107. ],
  2108. "name": "team_bot_sessions_team_id_bot_id_pk"
  2109. }
  2110. },
  2111. "uniqueConstraints": {},
  2112. "checkConstraints": {}
  2113. },
  2114. "team_bots": {
  2115. "name": "team_bots",
  2116. "columns": {
  2117. "team_id": {
  2118. "name": "team_id",
  2119. "type": "text",
  2120. "primaryKey": false,
  2121. "notNull": true,
  2122. "autoincrement": false
  2123. },
  2124. "bot_id": {
  2125. "name": "bot_id",
  2126. "type": "text",
  2127. "primaryKey": false,
  2128. "notNull": true,
  2129. "autoincrement": false
  2130. },
  2131. "role": {
  2132. "name": "role",
  2133. "type": "text",
  2134. "primaryKey": false,
  2135. "notNull": true,
  2136. "autoincrement": false
  2137. },
  2138. "joined_at": {
  2139. "name": "joined_at",
  2140. "type": "text",
  2141. "primaryKey": false,
  2142. "notNull": true,
  2143. "autoincrement": false,
  2144. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2145. }
  2146. },
  2147. "indexes": {
  2148. "team_bots_bot_idx": {
  2149. "name": "team_bots_bot_idx",
  2150. "columns": [
  2151. "bot_id"
  2152. ],
  2153. "isUnique": false
  2154. }
  2155. },
  2156. "foreignKeys": {},
  2157. "compositePrimaryKeys": {
  2158. "team_bots_team_id_bot_id_pk": {
  2159. "columns": [
  2160. "team_id",
  2161. "bot_id"
  2162. ],
  2163. "name": "team_bots_team_id_bot_id_pk"
  2164. }
  2165. },
  2166. "uniqueConstraints": {},
  2167. "checkConstraints": {}
  2168. },
  2169. "team_cases": {
  2170. "name": "team_cases",
  2171. "columns": {
  2172. "id": {
  2173. "name": "id",
  2174. "type": "text",
  2175. "primaryKey": true,
  2176. "notNull": true,
  2177. "autoincrement": false
  2178. },
  2179. "name": {
  2180. "name": "name",
  2181. "type": "text",
  2182. "primaryKey": false,
  2183. "notNull": true,
  2184. "autoincrement": false
  2185. },
  2186. "lead_bot_id": {
  2187. "name": "lead_bot_id",
  2188. "type": "text",
  2189. "primaryKey": false,
  2190. "notNull": false,
  2191. "autoincrement": false
  2192. },
  2193. "worker_bot_ids": {
  2194. "name": "worker_bot_ids",
  2195. "type": "text",
  2196. "primaryKey": false,
  2197. "notNull": true,
  2198. "autoincrement": false,
  2199. "default": "'[]'"
  2200. },
  2201. "stub_bot_ids": {
  2202. "name": "stub_bot_ids",
  2203. "type": "text",
  2204. "primaryKey": false,
  2205. "notNull": true,
  2206. "autoincrement": false,
  2207. "default": "'[]'"
  2208. },
  2209. "limits": {
  2210. "name": "limits",
  2211. "type": "text",
  2212. "primaryKey": false,
  2213. "notNull": false,
  2214. "autoincrement": false
  2215. },
  2216. "human_name": {
  2217. "name": "human_name",
  2218. "type": "text",
  2219. "primaryKey": false,
  2220. "notNull": true,
  2221. "autoincrement": false
  2222. },
  2223. "text": {
  2224. "name": "text",
  2225. "type": "text",
  2226. "primaryKey": false,
  2227. "notNull": true,
  2228. "autoincrement": false
  2229. },
  2230. "mentions": {
  2231. "name": "mentions",
  2232. "type": "text",
  2233. "primaryKey": false,
  2234. "notNull": true,
  2235. "autoincrement": false,
  2236. "default": "'[]'"
  2237. },
  2238. "files": {
  2239. "name": "files",
  2240. "type": "text",
  2241. "primaryKey": false,
  2242. "notNull": true,
  2243. "autoincrement": false,
  2244. "default": "'[]'"
  2245. },
  2246. "created_at": {
  2247. "name": "created_at",
  2248. "type": "text",
  2249. "primaryKey": false,
  2250. "notNull": true,
  2251. "autoincrement": false,
  2252. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2253. },
  2254. "updated_at": {
  2255. "name": "updated_at",
  2256. "type": "text",
  2257. "primaryKey": false,
  2258. "notNull": true,
  2259. "autoincrement": false,
  2260. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2261. }
  2262. },
  2263. "indexes": {},
  2264. "foreignKeys": {},
  2265. "compositePrimaryKeys": {},
  2266. "uniqueConstraints": {},
  2267. "checkConstraints": {}
  2268. },
  2269. "team_events": {
  2270. "name": "team_events",
  2271. "columns": {
  2272. "team_id": {
  2273. "name": "team_id",
  2274. "type": "text",
  2275. "primaryKey": false,
  2276. "notNull": true,
  2277. "autoincrement": false
  2278. },
  2279. "seq": {
  2280. "name": "seq",
  2281. "type": "integer",
  2282. "primaryKey": false,
  2283. "notNull": true,
  2284. "autoincrement": false
  2285. },
  2286. "type": {
  2287. "name": "type",
  2288. "type": "text",
  2289. "primaryKey": false,
  2290. "notNull": true,
  2291. "autoincrement": false
  2292. },
  2293. "payload": {
  2294. "name": "payload",
  2295. "type": "text",
  2296. "primaryKey": false,
  2297. "notNull": true,
  2298. "autoincrement": false
  2299. },
  2300. "ts": {
  2301. "name": "ts",
  2302. "type": "text",
  2303. "primaryKey": false,
  2304. "notNull": true,
  2305. "autoincrement": false
  2306. }
  2307. },
  2308. "indexes": {},
  2309. "foreignKeys": {},
  2310. "compositePrimaryKeys": {
  2311. "team_events_team_id_seq_pk": {
  2312. "columns": [
  2313. "team_id",
  2314. "seq"
  2315. ],
  2316. "name": "team_events_team_id_seq_pk"
  2317. }
  2318. },
  2319. "uniqueConstraints": {},
  2320. "checkConstraints": {}
  2321. },
  2322. "teams": {
  2323. "name": "teams",
  2324. "columns": {
  2325. "id": {
  2326. "name": "id",
  2327. "type": "text",
  2328. "primaryKey": true,
  2329. "notNull": true,
  2330. "autoincrement": false
  2331. },
  2332. "source": {
  2333. "name": "source",
  2334. "type": "text",
  2335. "primaryKey": false,
  2336. "notNull": true,
  2337. "autoincrement": false
  2338. },
  2339. "title": {
  2340. "name": "title",
  2341. "type": "text",
  2342. "primaryKey": false,
  2343. "notNull": true,
  2344. "autoincrement": false,
  2345. "default": "''"
  2346. },
  2347. "human": {
  2348. "name": "human",
  2349. "type": "text",
  2350. "primaryKey": false,
  2351. "notNull": true,
  2352. "autoincrement": false
  2353. },
  2354. "status": {
  2355. "name": "status",
  2356. "type": "text",
  2357. "primaryKey": false,
  2358. "notNull": true,
  2359. "autoincrement": false,
  2360. "default": "'active'"
  2361. },
  2362. "workspace_dir": {
  2363. "name": "workspace_dir",
  2364. "type": "text",
  2365. "primaryKey": false,
  2366. "notNull": true,
  2367. "autoincrement": false
  2368. },
  2369. "limits": {
  2370. "name": "limits",
  2371. "type": "text",
  2372. "primaryKey": false,
  2373. "notNull": false,
  2374. "autoincrement": false
  2375. },
  2376. "debug": {
  2377. "name": "debug",
  2378. "type": "text",
  2379. "primaryKey": false,
  2380. "notNull": true,
  2381. "autoincrement": false,
  2382. "default": "'{\"stepMode\":false,\"stubBotIds\":[]}'"
  2383. },
  2384. "last_seq": {
  2385. "name": "last_seq",
  2386. "type": "integer",
  2387. "primaryKey": false,
  2388. "notNull": true,
  2389. "autoincrement": false,
  2390. "default": 0
  2391. },
  2392. "case_id": {
  2393. "name": "case_id",
  2394. "type": "text",
  2395. "primaryKey": false,
  2396. "notNull": false,
  2397. "autoincrement": false
  2398. },
  2399. "created_at": {
  2400. "name": "created_at",
  2401. "type": "text",
  2402. "primaryKey": false,
  2403. "notNull": true,
  2404. "autoincrement": false,
  2405. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2406. },
  2407. "updated_at": {
  2408. "name": "updated_at",
  2409. "type": "text",
  2410. "primaryKey": false,
  2411. "notNull": true,
  2412. "autoincrement": false,
  2413. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2414. }
  2415. },
  2416. "indexes": {
  2417. "teams_source_idx": {
  2418. "name": "teams_source_idx",
  2419. "columns": [
  2420. "source",
  2421. "updated_at"
  2422. ],
  2423. "isUnique": false
  2424. },
  2425. "teams_case_idx": {
  2426. "name": "teams_case_idx",
  2427. "columns": [
  2428. "case_id"
  2429. ],
  2430. "isUnique": false
  2431. }
  2432. },
  2433. "foreignKeys": {},
  2434. "compositePrimaryKeys": {},
  2435. "uniqueConstraints": {},
  2436. "checkConstraints": {}
  2437. },
  2438. "usage_daily": {
  2439. "name": "usage_daily",
  2440. "columns": {
  2441. "date": {
  2442. "name": "date",
  2443. "type": "text",
  2444. "primaryKey": false,
  2445. "notNull": true,
  2446. "autoincrement": false
  2447. },
  2448. "source": {
  2449. "name": "source",
  2450. "type": "text",
  2451. "primaryKey": false,
  2452. "notNull": true,
  2453. "autoincrement": false
  2454. },
  2455. "provider": {
  2456. "name": "provider",
  2457. "type": "text",
  2458. "primaryKey": false,
  2459. "notNull": true,
  2460. "autoincrement": false
  2461. },
  2462. "model": {
  2463. "name": "model",
  2464. "type": "text",
  2465. "primaryKey": false,
  2466. "notNull": true,
  2467. "autoincrement": false
  2468. },
  2469. "runs": {
  2470. "name": "runs",
  2471. "type": "integer",
  2472. "primaryKey": false,
  2473. "notNull": true,
  2474. "autoincrement": false,
  2475. "default": 0
  2476. },
  2477. "failed": {
  2478. "name": "failed",
  2479. "type": "integer",
  2480. "primaryKey": false,
  2481. "notNull": true,
  2482. "autoincrement": false,
  2483. "default": 0
  2484. },
  2485. "interrupted": {
  2486. "name": "interrupted",
  2487. "type": "integer",
  2488. "primaryKey": false,
  2489. "notNull": true,
  2490. "autoincrement": false,
  2491. "default": 0
  2492. },
  2493. "input_tokens": {
  2494. "name": "input_tokens",
  2495. "type": "integer",
  2496. "primaryKey": false,
  2497. "notNull": true,
  2498. "autoincrement": false,
  2499. "default": 0
  2500. },
  2501. "output_tokens": {
  2502. "name": "output_tokens",
  2503. "type": "integer",
  2504. "primaryKey": false,
  2505. "notNull": true,
  2506. "autoincrement": false,
  2507. "default": 0
  2508. },
  2509. "cache_read_tokens": {
  2510. "name": "cache_read_tokens",
  2511. "type": "integer",
  2512. "primaryKey": false,
  2513. "notNull": true,
  2514. "autoincrement": false,
  2515. "default": 0
  2516. },
  2517. "cache_write_tokens": {
  2518. "name": "cache_write_tokens",
  2519. "type": "integer",
  2520. "primaryKey": false,
  2521. "notNull": true,
  2522. "autoincrement": false,
  2523. "default": 0
  2524. },
  2525. "cost_usd": {
  2526. "name": "cost_usd",
  2527. "type": "real",
  2528. "primaryKey": false,
  2529. "notNull": true,
  2530. "autoincrement": false,
  2531. "default": 0
  2532. },
  2533. "duration_ms": {
  2534. "name": "duration_ms",
  2535. "type": "integer",
  2536. "primaryKey": false,
  2537. "notNull": true,
  2538. "autoincrement": false,
  2539. "default": 0
  2540. }
  2541. },
  2542. "indexes": {},
  2543. "foreignKeys": {},
  2544. "compositePrimaryKeys": {
  2545. "usage_daily_date_source_provider_model_pk": {
  2546. "columns": [
  2547. "date",
  2548. "source",
  2549. "provider",
  2550. "model"
  2551. ],
  2552. "name": "usage_daily_date_source_provider_model_pk"
  2553. }
  2554. },
  2555. "uniqueConstraints": {},
  2556. "checkConstraints": {}
  2557. }
  2558. },
  2559. "views": {},
  2560. "enums": {},
  2561. "_meta": {
  2562. "schemas": {},
  2563. "tables": {},
  2564. "columns": {}
  2565. },
  2566. "internal": {
  2567. "indexes": {}
  2568. }
  2569. }