0023_snapshot.json 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178
  1. {
  2. "version": "6",
  3. "dialect": "sqlite",
  4. "id": "0f31da2a-5eb1-441e-83b8-3b4e619e7176",
  5. "prevId": "7173820d-1aa5-4a43-aea7-45d04c844233",
  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. "background_calls": {
  192. "name": "background_calls",
  193. "columns": {
  194. "id": {
  195. "name": "id",
  196. "type": "text",
  197. "primaryKey": true,
  198. "notNull": true,
  199. "autoincrement": false
  200. },
  201. "session_id": {
  202. "name": "session_id",
  203. "type": "text",
  204. "primaryKey": false,
  205. "notNull": true,
  206. "autoincrement": false
  207. },
  208. "team_id": {
  209. "name": "team_id",
  210. "type": "text",
  211. "primaryKey": false,
  212. "notNull": false,
  213. "autoincrement": false
  214. },
  215. "bot_id": {
  216. "name": "bot_id",
  217. "type": "text",
  218. "primaryKey": false,
  219. "notNull": false,
  220. "autoincrement": false
  221. },
  222. "task_id": {
  223. "name": "task_id",
  224. "type": "text",
  225. "primaryKey": false,
  226. "notNull": false,
  227. "autoincrement": false
  228. },
  229. "server_id": {
  230. "name": "server_id",
  231. "type": "text",
  232. "primaryKey": false,
  233. "notNull": true,
  234. "autoincrement": false
  235. },
  236. "server_name": {
  237. "name": "server_name",
  238. "type": "text",
  239. "primaryKey": false,
  240. "notNull": true,
  241. "autoincrement": false
  242. },
  243. "server_title": {
  244. "name": "server_title",
  245. "type": "text",
  246. "primaryKey": false,
  247. "notNull": true,
  248. "autoincrement": false
  249. },
  250. "tool": {
  251. "name": "tool",
  252. "type": "text",
  253. "primaryKey": false,
  254. "notNull": true,
  255. "autoincrement": false
  256. },
  257. "args": {
  258. "name": "args",
  259. "type": "text",
  260. "primaryKey": false,
  261. "notNull": true,
  262. "autoincrement": false
  263. },
  264. "status": {
  265. "name": "status",
  266. "type": "text",
  267. "primaryKey": false,
  268. "notNull": true,
  269. "autoincrement": false,
  270. "default": "'running'"
  271. },
  272. "started_at": {
  273. "name": "started_at",
  274. "type": "text",
  275. "primaryKey": false,
  276. "notNull": true,
  277. "autoincrement": false,
  278. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  279. },
  280. "ended_at": {
  281. "name": "ended_at",
  282. "type": "text",
  283. "primaryKey": false,
  284. "notNull": false,
  285. "autoincrement": false
  286. },
  287. "result": {
  288. "name": "result",
  289. "type": "text",
  290. "primaryKey": false,
  291. "notNull": false,
  292. "autoincrement": false
  293. },
  294. "error": {
  295. "name": "error",
  296. "type": "text",
  297. "primaryKey": false,
  298. "notNull": false,
  299. "autoincrement": false
  300. },
  301. "delivered": {
  302. "name": "delivered",
  303. "type": "integer",
  304. "primaryKey": false,
  305. "notNull": true,
  306. "autoincrement": false,
  307. "default": false
  308. },
  309. "mode": {
  310. "name": "mode",
  311. "type": "text",
  312. "primaryKey": false,
  313. "notNull": true,
  314. "autoincrement": false,
  315. "default": "'wait'"
  316. },
  317. "mcp_task_id": {
  318. "name": "mcp_task_id",
  319. "type": "text",
  320. "primaryKey": false,
  321. "notNull": false,
  322. "autoincrement": false
  323. },
  324. "conn_scope": {
  325. "name": "conn_scope",
  326. "type": "text",
  327. "primaryKey": false,
  328. "notNull": false,
  329. "autoincrement": false
  330. },
  331. "poll_after": {
  332. "name": "poll_after",
  333. "type": "text",
  334. "primaryKey": false,
  335. "notNull": false,
  336. "autoincrement": false
  337. },
  338. "poll_error_since": {
  339. "name": "poll_error_since",
  340. "type": "text",
  341. "primaryKey": false,
  342. "notNull": false,
  343. "autoincrement": false
  344. },
  345. "status_message": {
  346. "name": "status_message",
  347. "type": "text",
  348. "primaryKey": false,
  349. "notNull": false,
  350. "autoincrement": false
  351. }
  352. },
  353. "indexes": {
  354. "background_calls_session_idx": {
  355. "name": "background_calls_session_idx",
  356. "columns": [
  357. "session_id"
  358. ],
  359. "isUnique": false
  360. },
  361. "background_calls_team_idx": {
  362. "name": "background_calls_team_idx",
  363. "columns": [
  364. "team_id"
  365. ],
  366. "isUnique": false
  367. },
  368. "background_calls_status_idx": {
  369. "name": "background_calls_status_idx",
  370. "columns": [
  371. "status",
  372. "delivered"
  373. ],
  374. "isUnique": false
  375. }
  376. },
  377. "foreignKeys": {},
  378. "compositePrimaryKeys": {},
  379. "uniqueConstraints": {},
  380. "checkConstraints": {}
  381. },
  382. "bot_api_keys": {
  383. "name": "bot_api_keys",
  384. "columns": {
  385. "id": {
  386. "name": "id",
  387. "type": "text",
  388. "primaryKey": true,
  389. "notNull": true,
  390. "autoincrement": false
  391. },
  392. "name": {
  393. "name": "name",
  394. "type": "text",
  395. "primaryKey": false,
  396. "notNull": true,
  397. "autoincrement": false
  398. },
  399. "key_hash": {
  400. "name": "key_hash",
  401. "type": "text",
  402. "primaryKey": false,
  403. "notNull": true,
  404. "autoincrement": false
  405. },
  406. "key_prefix": {
  407. "name": "key_prefix",
  408. "type": "text",
  409. "primaryKey": false,
  410. "notNull": true,
  411. "autoincrement": false
  412. },
  413. "enabled": {
  414. "name": "enabled",
  415. "type": "integer",
  416. "primaryKey": false,
  417. "notNull": true,
  418. "autoincrement": false,
  419. "default": true
  420. },
  421. "allowed_bot_ids": {
  422. "name": "allowed_bot_ids",
  423. "type": "text",
  424. "primaryKey": false,
  425. "notNull": true,
  426. "autoincrement": false,
  427. "default": "'[]'"
  428. },
  429. "created_at": {
  430. "name": "created_at",
  431. "type": "text",
  432. "primaryKey": false,
  433. "notNull": true,
  434. "autoincrement": false,
  435. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  436. },
  437. "last_used_at": {
  438. "name": "last_used_at",
  439. "type": "text",
  440. "primaryKey": false,
  441. "notNull": false,
  442. "autoincrement": false
  443. }
  444. },
  445. "indexes": {
  446. "bot_api_keys_key_hash_unique": {
  447. "name": "bot_api_keys_key_hash_unique",
  448. "columns": [
  449. "key_hash"
  450. ],
  451. "isUnique": true
  452. }
  453. },
  454. "foreignKeys": {},
  455. "compositePrimaryKeys": {},
  456. "uniqueConstraints": {},
  457. "checkConstraints": {}
  458. },
  459. "bots": {
  460. "name": "bots",
  461. "columns": {
  462. "id": {
  463. "name": "id",
  464. "type": "text",
  465. "primaryKey": true,
  466. "notNull": true,
  467. "autoincrement": false
  468. },
  469. "name": {
  470. "name": "name",
  471. "type": "text",
  472. "primaryKey": false,
  473. "notNull": true,
  474. "autoincrement": false
  475. },
  476. "avatar": {
  477. "name": "avatar",
  478. "type": "text",
  479. "primaryKey": false,
  480. "notNull": true,
  481. "autoincrement": false,
  482. "default": "'🤖'"
  483. },
  484. "kind": {
  485. "name": "kind",
  486. "type": "text",
  487. "primaryKey": false,
  488. "notNull": true,
  489. "autoincrement": false
  490. },
  491. "description": {
  492. "name": "description",
  493. "type": "text",
  494. "primaryKey": false,
  495. "notNull": true,
  496. "autoincrement": false,
  497. "default": "''"
  498. },
  499. "profile_id": {
  500. "name": "profile_id",
  501. "type": "text",
  502. "primaryKey": false,
  503. "notNull": true,
  504. "autoincrement": false
  505. },
  506. "enabled": {
  507. "name": "enabled",
  508. "type": "integer",
  509. "primaryKey": false,
  510. "notNull": true,
  511. "autoincrement": false,
  512. "default": true
  513. },
  514. "created_at": {
  515. "name": "created_at",
  516. "type": "text",
  517. "primaryKey": false,
  518. "notNull": true,
  519. "autoincrement": false,
  520. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  521. },
  522. "updated_at": {
  523. "name": "updated_at",
  524. "type": "text",
  525. "primaryKey": false,
  526. "notNull": true,
  527. "autoincrement": false,
  528. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  529. }
  530. },
  531. "indexes": {
  532. "bots_name_unique": {
  533. "name": "bots_name_unique",
  534. "columns": [
  535. "name"
  536. ],
  537. "isUnique": true
  538. }
  539. },
  540. "foreignKeys": {},
  541. "compositePrimaryKeys": {},
  542. "uniqueConstraints": {},
  543. "checkConstraints": {}
  544. },
  545. "custom_skill_versions": {
  546. "name": "custom_skill_versions",
  547. "columns": {
  548. "skill_id": {
  549. "name": "skill_id",
  550. "type": "text",
  551. "primaryKey": false,
  552. "notNull": true,
  553. "autoincrement": false
  554. },
  555. "version": {
  556. "name": "version",
  557. "type": "integer",
  558. "primaryKey": false,
  559. "notNull": true,
  560. "autoincrement": false
  561. },
  562. "semver": {
  563. "name": "semver",
  564. "type": "text",
  565. "primaryKey": false,
  566. "notNull": true,
  567. "autoincrement": false,
  568. "default": "''"
  569. },
  570. "reason": {
  571. "name": "reason",
  572. "type": "text",
  573. "primaryKey": false,
  574. "notNull": true,
  575. "autoincrement": false
  576. },
  577. "files": {
  578. "name": "files",
  579. "type": "text",
  580. "primaryKey": false,
  581. "notNull": true,
  582. "autoincrement": false
  583. },
  584. "changed": {
  585. "name": "changed",
  586. "type": "text",
  587. "primaryKey": false,
  588. "notNull": true,
  589. "autoincrement": false
  590. },
  591. "note": {
  592. "name": "note",
  593. "type": "text",
  594. "primaryKey": false,
  595. "notNull": false,
  596. "autoincrement": false
  597. },
  598. "created_at": {
  599. "name": "created_at",
  600. "type": "text",
  601. "primaryKey": false,
  602. "notNull": true,
  603. "autoincrement": false,
  604. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  605. }
  606. },
  607. "indexes": {
  608. "custom_skill_versions_semver": {
  609. "name": "custom_skill_versions_semver",
  610. "columns": [
  611. "skill_id",
  612. "semver"
  613. ],
  614. "isUnique": true
  615. }
  616. },
  617. "foreignKeys": {},
  618. "compositePrimaryKeys": {
  619. "custom_skill_versions_skill_id_version_pk": {
  620. "columns": [
  621. "skill_id",
  622. "version"
  623. ],
  624. "name": "custom_skill_versions_skill_id_version_pk"
  625. }
  626. },
  627. "uniqueConstraints": {},
  628. "checkConstraints": {}
  629. },
  630. "custom_skills": {
  631. "name": "custom_skills",
  632. "columns": {
  633. "id": {
  634. "name": "id",
  635. "type": "text",
  636. "primaryKey": true,
  637. "notNull": true,
  638. "autoincrement": false
  639. },
  640. "name": {
  641. "name": "name",
  642. "type": "text",
  643. "primaryKey": false,
  644. "notNull": true,
  645. "autoincrement": false
  646. },
  647. "description": {
  648. "name": "description",
  649. "type": "text",
  650. "primaryKey": false,
  651. "notNull": true,
  652. "autoincrement": false,
  653. "default": "''"
  654. },
  655. "enabled": {
  656. "name": "enabled",
  657. "type": "integer",
  658. "primaryKey": false,
  659. "notNull": true,
  660. "autoincrement": false,
  661. "default": true
  662. },
  663. "include_in_all": {
  664. "name": "include_in_all",
  665. "type": "integer",
  666. "primaryKey": false,
  667. "notNull": true,
  668. "autoincrement": false,
  669. "default": false
  670. },
  671. "published_version": {
  672. "name": "published_version",
  673. "type": "integer",
  674. "primaryKey": false,
  675. "notNull": false,
  676. "autoincrement": false
  677. },
  678. "latest_version": {
  679. "name": "latest_version",
  680. "type": "integer",
  681. "primaryKey": false,
  682. "notNull": true,
  683. "autoincrement": false,
  684. "default": 0
  685. },
  686. "working_files": {
  687. "name": "working_files",
  688. "type": "text",
  689. "primaryKey": false,
  690. "notNull": true,
  691. "autoincrement": false,
  692. "default": "'{}'"
  693. },
  694. "created_at": {
  695. "name": "created_at",
  696. "type": "text",
  697. "primaryKey": false,
  698. "notNull": true,
  699. "autoincrement": false,
  700. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  701. },
  702. "updated_at": {
  703. "name": "updated_at",
  704. "type": "text",
  705. "primaryKey": false,
  706. "notNull": true,
  707. "autoincrement": false,
  708. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  709. }
  710. },
  711. "indexes": {
  712. "custom_skills_name_unique": {
  713. "name": "custom_skills_name_unique",
  714. "columns": [
  715. "name"
  716. ],
  717. "isUnique": true
  718. }
  719. },
  720. "foreignKeys": {},
  721. "compositePrimaryKeys": {},
  722. "uniqueConstraints": {},
  723. "checkConstraints": {}
  724. },
  725. "events": {
  726. "name": "events",
  727. "columns": {
  728. "session_id": {
  729. "name": "session_id",
  730. "type": "text",
  731. "primaryKey": false,
  732. "notNull": true,
  733. "autoincrement": false
  734. },
  735. "seq": {
  736. "name": "seq",
  737. "type": "integer",
  738. "primaryKey": false,
  739. "notNull": true,
  740. "autoincrement": false
  741. },
  742. "run_id": {
  743. "name": "run_id",
  744. "type": "text",
  745. "primaryKey": false,
  746. "notNull": false,
  747. "autoincrement": false
  748. },
  749. "type": {
  750. "name": "type",
  751. "type": "text",
  752. "primaryKey": false,
  753. "notNull": true,
  754. "autoincrement": false
  755. },
  756. "payload": {
  757. "name": "payload",
  758. "type": "text",
  759. "primaryKey": false,
  760. "notNull": true,
  761. "autoincrement": false
  762. },
  763. "ts": {
  764. "name": "ts",
  765. "type": "text",
  766. "primaryKey": false,
  767. "notNull": true,
  768. "autoincrement": false
  769. }
  770. },
  771. "indexes": {},
  772. "foreignKeys": {},
  773. "compositePrimaryKeys": {
  774. "events_session_id_seq_pk": {
  775. "columns": [
  776. "session_id",
  777. "seq"
  778. ],
  779. "name": "events_session_id_seq_pk"
  780. }
  781. },
  782. "uniqueConstraints": {},
  783. "checkConstraints": {}
  784. },
  785. "files": {
  786. "name": "files",
  787. "columns": {
  788. "id": {
  789. "name": "id",
  790. "type": "text",
  791. "primaryKey": true,
  792. "notNull": true,
  793. "autoincrement": false
  794. },
  795. "session_id": {
  796. "name": "session_id",
  797. "type": "text",
  798. "primaryKey": false,
  799. "notNull": true,
  800. "autoincrement": false
  801. },
  802. "rel_path": {
  803. "name": "rel_path",
  804. "type": "text",
  805. "primaryKey": false,
  806. "notNull": true,
  807. "autoincrement": false
  808. },
  809. "origin": {
  810. "name": "origin",
  811. "type": "text",
  812. "primaryKey": false,
  813. "notNull": true,
  814. "autoincrement": false
  815. },
  816. "mime": {
  817. "name": "mime",
  818. "type": "text",
  819. "primaryKey": false,
  820. "notNull": true,
  821. "autoincrement": false
  822. },
  823. "size": {
  824. "name": "size",
  825. "type": "integer",
  826. "primaryKey": false,
  827. "notNull": true,
  828. "autoincrement": false
  829. },
  830. "mtime_ms": {
  831. "name": "mtime_ms",
  832. "type": "real",
  833. "primaryKey": false,
  834. "notNull": true,
  835. "autoincrement": false
  836. },
  837. "created_at": {
  838. "name": "created_at",
  839. "type": "text",
  840. "primaryKey": false,
  841. "notNull": true,
  842. "autoincrement": false,
  843. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  844. },
  845. "updated_at": {
  846. "name": "updated_at",
  847. "type": "text",
  848. "primaryKey": false,
  849. "notNull": true,
  850. "autoincrement": false,
  851. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  852. }
  853. },
  854. "indexes": {
  855. "files_session_path_idx": {
  856. "name": "files_session_path_idx",
  857. "columns": [
  858. "session_id",
  859. "rel_path"
  860. ],
  861. "isUnique": false
  862. }
  863. },
  864. "foreignKeys": {},
  865. "compositePrimaryKeys": {},
  866. "uniqueConstraints": {},
  867. "checkConstraints": {}
  868. },
  869. "interactions": {
  870. "name": "interactions",
  871. "columns": {
  872. "id": {
  873. "name": "id",
  874. "type": "text",
  875. "primaryKey": true,
  876. "notNull": true,
  877. "autoincrement": false
  878. },
  879. "session_id": {
  880. "name": "session_id",
  881. "type": "text",
  882. "primaryKey": false,
  883. "notNull": true,
  884. "autoincrement": false
  885. },
  886. "run_id": {
  887. "name": "run_id",
  888. "type": "text",
  889. "primaryKey": false,
  890. "notNull": false,
  891. "autoincrement": false
  892. },
  893. "kind": {
  894. "name": "kind",
  895. "type": "text",
  896. "primaryKey": false,
  897. "notNull": true,
  898. "autoincrement": false
  899. },
  900. "request": {
  901. "name": "request",
  902. "type": "text",
  903. "primaryKey": false,
  904. "notNull": true,
  905. "autoincrement": false
  906. },
  907. "response": {
  908. "name": "response",
  909. "type": "text",
  910. "primaryKey": false,
  911. "notNull": false,
  912. "autoincrement": false
  913. },
  914. "status": {
  915. "name": "status",
  916. "type": "text",
  917. "primaryKey": false,
  918. "notNull": true,
  919. "autoincrement": false
  920. },
  921. "created_at": {
  922. "name": "created_at",
  923. "type": "text",
  924. "primaryKey": false,
  925. "notNull": true,
  926. "autoincrement": false,
  927. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  928. },
  929. "resolved_at": {
  930. "name": "resolved_at",
  931. "type": "text",
  932. "primaryKey": false,
  933. "notNull": false,
  934. "autoincrement": false
  935. },
  936. "expires_at": {
  937. "name": "expires_at",
  938. "type": "text",
  939. "primaryKey": false,
  940. "notNull": true,
  941. "autoincrement": false
  942. }
  943. },
  944. "indexes": {
  945. "interactions_session_idx": {
  946. "name": "interactions_session_idx",
  947. "columns": [
  948. "session_id",
  949. "status"
  950. ],
  951. "isUnique": false
  952. }
  953. },
  954. "foreignKeys": {},
  955. "compositePrimaryKeys": {},
  956. "uniqueConstraints": {},
  957. "checkConstraints": {}
  958. },
  959. "jobs": {
  960. "name": "jobs",
  961. "columns": {
  962. "id": {
  963. "name": "id",
  964. "type": "text",
  965. "primaryKey": true,
  966. "notNull": true,
  967. "autoincrement": false
  968. },
  969. "team_id": {
  970. "name": "team_id",
  971. "type": "text",
  972. "primaryKey": false,
  973. "notNull": true,
  974. "autoincrement": false
  975. },
  976. "no": {
  977. "name": "no",
  978. "type": "integer",
  979. "primaryKey": false,
  980. "notNull": true,
  981. "autoincrement": false
  982. },
  983. "title": {
  984. "name": "title",
  985. "type": "text",
  986. "primaryKey": false,
  987. "notNull": true,
  988. "autoincrement": false
  989. },
  990. "plan": {
  991. "name": "plan",
  992. "type": "text",
  993. "primaryKey": false,
  994. "notNull": true,
  995. "autoincrement": false,
  996. "default": "''"
  997. },
  998. "status": {
  999. "name": "status",
  1000. "type": "text",
  1001. "primaryKey": false,
  1002. "notNull": true,
  1003. "autoincrement": false,
  1004. "default": "'running'"
  1005. },
  1006. "summary": {
  1007. "name": "summary",
  1008. "type": "text",
  1009. "primaryKey": false,
  1010. "notNull": false,
  1011. "autoincrement": false
  1012. },
  1013. "files": {
  1014. "name": "files",
  1015. "type": "text",
  1016. "primaryKey": false,
  1017. "notNull": true,
  1018. "autoincrement": false,
  1019. "default": "'[]'"
  1020. },
  1021. "blocked_by": {
  1022. "name": "blocked_by",
  1023. "type": "text",
  1024. "primaryKey": false,
  1025. "notNull": false,
  1026. "autoincrement": false
  1027. },
  1028. "limits": {
  1029. "name": "limits",
  1030. "type": "text",
  1031. "primaryKey": false,
  1032. "notNull": true,
  1033. "autoincrement": false
  1034. },
  1035. "lead_runs": {
  1036. "name": "lead_runs",
  1037. "type": "integer",
  1038. "primaryKey": false,
  1039. "notNull": true,
  1040. "autoincrement": false,
  1041. "default": 0
  1042. },
  1043. "run_ids": {
  1044. "name": "run_ids",
  1045. "type": "text",
  1046. "primaryKey": false,
  1047. "notNull": true,
  1048. "autoincrement": false,
  1049. "default": "'[]'"
  1050. },
  1051. "created_at": {
  1052. "name": "created_at",
  1053. "type": "text",
  1054. "primaryKey": false,
  1055. "notNull": true,
  1056. "autoincrement": false,
  1057. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1058. },
  1059. "ended_at": {
  1060. "name": "ended_at",
  1061. "type": "text",
  1062. "primaryKey": false,
  1063. "notNull": false,
  1064. "autoincrement": false
  1065. }
  1066. },
  1067. "indexes": {
  1068. "jobs_team_idx": {
  1069. "name": "jobs_team_idx",
  1070. "columns": [
  1071. "team_id",
  1072. "no"
  1073. ],
  1074. "isUnique": false
  1075. }
  1076. },
  1077. "foreignKeys": {},
  1078. "compositePrimaryKeys": {},
  1079. "uniqueConstraints": {},
  1080. "checkConstraints": {}
  1081. },
  1082. "knowledge_roots": {
  1083. "name": "knowledge_roots",
  1084. "columns": {
  1085. "id": {
  1086. "name": "id",
  1087. "type": "text",
  1088. "primaryKey": true,
  1089. "notNull": true,
  1090. "autoincrement": false
  1091. },
  1092. "name": {
  1093. "name": "name",
  1094. "type": "text",
  1095. "primaryKey": false,
  1096. "notNull": true,
  1097. "autoincrement": false
  1098. },
  1099. "path": {
  1100. "name": "path",
  1101. "type": "text",
  1102. "primaryKey": false,
  1103. "notNull": true,
  1104. "autoincrement": false
  1105. },
  1106. "description": {
  1107. "name": "description",
  1108. "type": "text",
  1109. "primaryKey": false,
  1110. "notNull": true,
  1111. "autoincrement": false,
  1112. "default": "''"
  1113. },
  1114. "access": {
  1115. "name": "access",
  1116. "type": "text",
  1117. "primaryKey": false,
  1118. "notNull": true,
  1119. "autoincrement": false,
  1120. "default": "'read'"
  1121. },
  1122. "enabled": {
  1123. "name": "enabled",
  1124. "type": "integer",
  1125. "primaryKey": false,
  1126. "notNull": true,
  1127. "autoincrement": false,
  1128. "default": true
  1129. },
  1130. "created_at": {
  1131. "name": "created_at",
  1132. "type": "text",
  1133. "primaryKey": false,
  1134. "notNull": true,
  1135. "autoincrement": false,
  1136. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1137. },
  1138. "updated_at": {
  1139. "name": "updated_at",
  1140. "type": "text",
  1141. "primaryKey": false,
  1142. "notNull": true,
  1143. "autoincrement": false,
  1144. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1145. }
  1146. },
  1147. "indexes": {},
  1148. "foreignKeys": {},
  1149. "compositePrimaryKeys": {},
  1150. "uniqueConstraints": {},
  1151. "checkConstraints": {}
  1152. },
  1153. "mcp_credentials": {
  1154. "name": "mcp_credentials",
  1155. "columns": {
  1156. "id": {
  1157. "name": "id",
  1158. "type": "text",
  1159. "primaryKey": true,
  1160. "notNull": true,
  1161. "autoincrement": false
  1162. },
  1163. "name": {
  1164. "name": "name",
  1165. "type": "text",
  1166. "primaryKey": false,
  1167. "notNull": true,
  1168. "autoincrement": false
  1169. },
  1170. "description": {
  1171. "name": "description",
  1172. "type": "text",
  1173. "primaryKey": false,
  1174. "notNull": true,
  1175. "autoincrement": false,
  1176. "default": "''"
  1177. },
  1178. "kind": {
  1179. "name": "kind",
  1180. "type": "text",
  1181. "primaryKey": false,
  1182. "notNull": true,
  1183. "autoincrement": false
  1184. },
  1185. "values": {
  1186. "name": "values",
  1187. "type": "text",
  1188. "primaryKey": false,
  1189. "notNull": true,
  1190. "autoincrement": false,
  1191. "default": "'{}'"
  1192. },
  1193. "url_prefixes": {
  1194. "name": "url_prefixes",
  1195. "type": "text",
  1196. "primaryKey": false,
  1197. "notNull": true,
  1198. "autoincrement": false,
  1199. "default": "'[]'"
  1200. },
  1201. "created_at": {
  1202. "name": "created_at",
  1203. "type": "text",
  1204. "primaryKey": false,
  1205. "notNull": true,
  1206. "autoincrement": false,
  1207. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1208. },
  1209. "updated_at": {
  1210. "name": "updated_at",
  1211. "type": "text",
  1212. "primaryKey": false,
  1213. "notNull": true,
  1214. "autoincrement": false,
  1215. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1216. }
  1217. },
  1218. "indexes": {
  1219. "mcp_credentials_name_unique": {
  1220. "name": "mcp_credentials_name_unique",
  1221. "columns": [
  1222. "name"
  1223. ],
  1224. "isUnique": true
  1225. }
  1226. },
  1227. "foreignKeys": {},
  1228. "compositePrimaryKeys": {},
  1229. "uniqueConstraints": {},
  1230. "checkConstraints": {}
  1231. },
  1232. "mcp_servers": {
  1233. "name": "mcp_servers",
  1234. "columns": {
  1235. "id": {
  1236. "name": "id",
  1237. "type": "text",
  1238. "primaryKey": true,
  1239. "notNull": true,
  1240. "autoincrement": false
  1241. },
  1242. "name": {
  1243. "name": "name",
  1244. "type": "text",
  1245. "primaryKey": false,
  1246. "notNull": true,
  1247. "autoincrement": false
  1248. },
  1249. "title": {
  1250. "name": "title",
  1251. "type": "text",
  1252. "primaryKey": false,
  1253. "notNull": true,
  1254. "autoincrement": false
  1255. },
  1256. "description": {
  1257. "name": "description",
  1258. "type": "text",
  1259. "primaryKey": false,
  1260. "notNull": true,
  1261. "autoincrement": false,
  1262. "default": "''"
  1263. },
  1264. "transport": {
  1265. "name": "transport",
  1266. "type": "text",
  1267. "primaryKey": false,
  1268. "notNull": true,
  1269. "autoincrement": false
  1270. },
  1271. "enabled": {
  1272. "name": "enabled",
  1273. "type": "integer",
  1274. "primaryKey": false,
  1275. "notNull": true,
  1276. "autoincrement": false,
  1277. "default": true
  1278. },
  1279. "url": {
  1280. "name": "url",
  1281. "type": "text",
  1282. "primaryKey": false,
  1283. "notNull": true,
  1284. "autoincrement": false,
  1285. "default": "''"
  1286. },
  1287. "headers": {
  1288. "name": "headers",
  1289. "type": "text",
  1290. "primaryKey": false,
  1291. "notNull": true,
  1292. "autoincrement": false,
  1293. "default": "'{}'"
  1294. },
  1295. "command": {
  1296. "name": "command",
  1297. "type": "text",
  1298. "primaryKey": false,
  1299. "notNull": true,
  1300. "autoincrement": false,
  1301. "default": "''"
  1302. },
  1303. "args": {
  1304. "name": "args",
  1305. "type": "text",
  1306. "primaryKey": false,
  1307. "notNull": true,
  1308. "autoincrement": false,
  1309. "default": "'[]'"
  1310. },
  1311. "env": {
  1312. "name": "env",
  1313. "type": "text",
  1314. "primaryKey": false,
  1315. "notNull": true,
  1316. "autoincrement": false,
  1317. "default": "'{}'"
  1318. },
  1319. "allow_network": {
  1320. "name": "allow_network",
  1321. "type": "integer",
  1322. "primaryKey": false,
  1323. "notNull": true,
  1324. "autoincrement": false,
  1325. "default": false
  1326. },
  1327. "read_paths": {
  1328. "name": "read_paths",
  1329. "type": "text",
  1330. "primaryKey": false,
  1331. "notNull": true,
  1332. "autoincrement": false,
  1333. "default": "'[]'"
  1334. },
  1335. "write_paths": {
  1336. "name": "write_paths",
  1337. "type": "text",
  1338. "primaryKey": false,
  1339. "notNull": true,
  1340. "autoincrement": false,
  1341. "default": "'[]'"
  1342. },
  1343. "tool_policies": {
  1344. "name": "tool_policies",
  1345. "type": "text",
  1346. "primaryKey": false,
  1347. "notNull": true,
  1348. "autoincrement": false,
  1349. "default": "'{}'"
  1350. },
  1351. "background_tools": {
  1352. "name": "background_tools",
  1353. "type": "text",
  1354. "primaryKey": false,
  1355. "notNull": true,
  1356. "autoincrement": false,
  1357. "default": "'[]'"
  1358. },
  1359. "tool_hints": {
  1360. "name": "tool_hints",
  1361. "type": "text",
  1362. "primaryKey": false,
  1363. "notNull": true,
  1364. "autoincrement": false,
  1365. "default": "'{}'"
  1366. },
  1367. "oauth": {
  1368. "name": "oauth",
  1369. "type": "text",
  1370. "primaryKey": false,
  1371. "notNull": false,
  1372. "autoincrement": false
  1373. },
  1374. "credential_id": {
  1375. "name": "credential_id",
  1376. "type": "text",
  1377. "primaryKey": false,
  1378. "notNull": false,
  1379. "autoincrement": false
  1380. },
  1381. "tools_cache": {
  1382. "name": "tools_cache",
  1383. "type": "text",
  1384. "primaryKey": false,
  1385. "notNull": true,
  1386. "autoincrement": false,
  1387. "default": "'[]'"
  1388. },
  1389. "tools_updated_at": {
  1390. "name": "tools_updated_at",
  1391. "type": "text",
  1392. "primaryKey": false,
  1393. "notNull": false,
  1394. "autoincrement": false
  1395. },
  1396. "features": {
  1397. "name": "features",
  1398. "type": "text",
  1399. "primaryKey": false,
  1400. "notNull": true,
  1401. "autoincrement": false,
  1402. "default": "'{}'"
  1403. },
  1404. "created_at": {
  1405. "name": "created_at",
  1406. "type": "text",
  1407. "primaryKey": false,
  1408. "notNull": true,
  1409. "autoincrement": false,
  1410. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1411. },
  1412. "updated_at": {
  1413. "name": "updated_at",
  1414. "type": "text",
  1415. "primaryKey": false,
  1416. "notNull": true,
  1417. "autoincrement": false,
  1418. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1419. }
  1420. },
  1421. "indexes": {
  1422. "mcp_servers_name_unique": {
  1423. "name": "mcp_servers_name_unique",
  1424. "columns": [
  1425. "name"
  1426. ],
  1427. "isUnique": true
  1428. }
  1429. },
  1430. "foreignKeys": {},
  1431. "compositePrimaryKeys": {},
  1432. "uniqueConstraints": {},
  1433. "checkConstraints": {}
  1434. },
  1435. "profile_versions": {
  1436. "name": "profile_versions",
  1437. "columns": {
  1438. "profile_id": {
  1439. "name": "profile_id",
  1440. "type": "text",
  1441. "primaryKey": false,
  1442. "notNull": true,
  1443. "autoincrement": false
  1444. },
  1445. "version": {
  1446. "name": "version",
  1447. "type": "integer",
  1448. "primaryKey": false,
  1449. "notNull": true,
  1450. "autoincrement": false
  1451. },
  1452. "snapshot": {
  1453. "name": "snapshot",
  1454. "type": "text",
  1455. "primaryKey": false,
  1456. "notNull": true,
  1457. "autoincrement": false
  1458. },
  1459. "created_at": {
  1460. "name": "created_at",
  1461. "type": "text",
  1462. "primaryKey": false,
  1463. "notNull": true,
  1464. "autoincrement": false,
  1465. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1466. }
  1467. },
  1468. "indexes": {},
  1469. "foreignKeys": {},
  1470. "compositePrimaryKeys": {
  1471. "profile_versions_profile_id_version_pk": {
  1472. "columns": [
  1473. "profile_id",
  1474. "version"
  1475. ],
  1476. "name": "profile_versions_profile_id_version_pk"
  1477. }
  1478. },
  1479. "uniqueConstraints": {},
  1480. "checkConstraints": {}
  1481. },
  1482. "profiles": {
  1483. "name": "profiles",
  1484. "columns": {
  1485. "id": {
  1486. "name": "id",
  1487. "type": "text",
  1488. "primaryKey": true,
  1489. "notNull": true,
  1490. "autoincrement": false
  1491. },
  1492. "name": {
  1493. "name": "name",
  1494. "type": "text",
  1495. "primaryKey": false,
  1496. "notNull": true,
  1497. "autoincrement": false
  1498. },
  1499. "description": {
  1500. "name": "description",
  1501. "type": "text",
  1502. "primaryKey": false,
  1503. "notNull": true,
  1504. "autoincrement": false,
  1505. "default": "''"
  1506. },
  1507. "provider": {
  1508. "name": "provider",
  1509. "type": "text",
  1510. "primaryKey": false,
  1511. "notNull": true,
  1512. "autoincrement": false
  1513. },
  1514. "model": {
  1515. "name": "model",
  1516. "type": "text",
  1517. "primaryKey": false,
  1518. "notNull": true,
  1519. "autoincrement": false
  1520. },
  1521. "system_prompt": {
  1522. "name": "system_prompt",
  1523. "type": "text",
  1524. "primaryKey": false,
  1525. "notNull": true,
  1526. "autoincrement": false,
  1527. "default": "''"
  1528. },
  1529. "permission_mode": {
  1530. "name": "permission_mode",
  1531. "type": "text",
  1532. "primaryKey": false,
  1533. "notNull": true,
  1534. "autoincrement": false,
  1535. "default": "'ask'"
  1536. },
  1537. "allowed_tools": {
  1538. "name": "allowed_tools",
  1539. "type": "text",
  1540. "primaryKey": false,
  1541. "notNull": true,
  1542. "autoincrement": false,
  1543. "default": "'[]'"
  1544. },
  1545. "disallowed_tools": {
  1546. "name": "disallowed_tools",
  1547. "type": "text",
  1548. "primaryKey": false,
  1549. "notNull": true,
  1550. "autoincrement": false,
  1551. "default": "'[]'"
  1552. },
  1553. "skills": {
  1554. "name": "skills",
  1555. "type": "text",
  1556. "primaryKey": false,
  1557. "notNull": true,
  1558. "autoincrement": false,
  1559. "default": "'\"all\"'"
  1560. },
  1561. "file_access": {
  1562. "name": "file_access",
  1563. "type": "text",
  1564. "primaryKey": false,
  1565. "notNull": true,
  1566. "autoincrement": false
  1567. },
  1568. "knowledge_root_ids": {
  1569. "name": "knowledge_root_ids",
  1570. "type": "text",
  1571. "primaryKey": false,
  1572. "notNull": true,
  1573. "autoincrement": false,
  1574. "default": "'[]'"
  1575. },
  1576. "mcp_server_ids": {
  1577. "name": "mcp_server_ids",
  1578. "type": "text",
  1579. "primaryKey": false,
  1580. "notNull": true,
  1581. "autoincrement": false,
  1582. "default": "'[]'"
  1583. },
  1584. "codex_plugin_ids": {
  1585. "name": "codex_plugin_ids",
  1586. "type": "text",
  1587. "primaryKey": false,
  1588. "notNull": true,
  1589. "autoincrement": false,
  1590. "default": "'[]'"
  1591. },
  1592. "is_default": {
  1593. "name": "is_default",
  1594. "type": "integer",
  1595. "primaryKey": false,
  1596. "notNull": true,
  1597. "autoincrement": false,
  1598. "default": false
  1599. },
  1600. "builtin": {
  1601. "name": "builtin",
  1602. "type": "integer",
  1603. "primaryKey": false,
  1604. "notNull": true,
  1605. "autoincrement": false,
  1606. "default": false
  1607. },
  1608. "builtin_key": {
  1609. "name": "builtin_key",
  1610. "type": "text",
  1611. "primaryKey": false,
  1612. "notNull": false,
  1613. "autoincrement": false
  1614. },
  1615. "version": {
  1616. "name": "version",
  1617. "type": "integer",
  1618. "primaryKey": false,
  1619. "notNull": true,
  1620. "autoincrement": false,
  1621. "default": 1
  1622. },
  1623. "created_at": {
  1624. "name": "created_at",
  1625. "type": "text",
  1626. "primaryKey": false,
  1627. "notNull": true,
  1628. "autoincrement": false,
  1629. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1630. },
  1631. "updated_at": {
  1632. "name": "updated_at",
  1633. "type": "text",
  1634. "primaryKey": false,
  1635. "notNull": true,
  1636. "autoincrement": false,
  1637. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1638. }
  1639. },
  1640. "indexes": {},
  1641. "foreignKeys": {},
  1642. "compositePrimaryKeys": {},
  1643. "uniqueConstraints": {},
  1644. "checkConstraints": {}
  1645. },
  1646. "runs": {
  1647. "name": "runs",
  1648. "columns": {
  1649. "id": {
  1650. "name": "id",
  1651. "type": "text",
  1652. "primaryKey": true,
  1653. "notNull": true,
  1654. "autoincrement": false
  1655. },
  1656. "session_id": {
  1657. "name": "session_id",
  1658. "type": "text",
  1659. "primaryKey": false,
  1660. "notNull": true,
  1661. "autoincrement": false
  1662. },
  1663. "status": {
  1664. "name": "status",
  1665. "type": "text",
  1666. "primaryKey": false,
  1667. "notNull": true,
  1668. "autoincrement": false
  1669. },
  1670. "started_at": {
  1671. "name": "started_at",
  1672. "type": "text",
  1673. "primaryKey": false,
  1674. "notNull": false,
  1675. "autoincrement": false
  1676. },
  1677. "ended_at": {
  1678. "name": "ended_at",
  1679. "type": "text",
  1680. "primaryKey": false,
  1681. "notNull": false,
  1682. "autoincrement": false
  1683. },
  1684. "input_tokens": {
  1685. "name": "input_tokens",
  1686. "type": "integer",
  1687. "primaryKey": false,
  1688. "notNull": false,
  1689. "autoincrement": false
  1690. },
  1691. "output_tokens": {
  1692. "name": "output_tokens",
  1693. "type": "integer",
  1694. "primaryKey": false,
  1695. "notNull": false,
  1696. "autoincrement": false
  1697. },
  1698. "cache_read_tokens": {
  1699. "name": "cache_read_tokens",
  1700. "type": "integer",
  1701. "primaryKey": false,
  1702. "notNull": false,
  1703. "autoincrement": false
  1704. },
  1705. "cache_write_tokens": {
  1706. "name": "cache_write_tokens",
  1707. "type": "integer",
  1708. "primaryKey": false,
  1709. "notNull": false,
  1710. "autoincrement": false
  1711. },
  1712. "cost_usd": {
  1713. "name": "cost_usd",
  1714. "type": "real",
  1715. "primaryKey": false,
  1716. "notNull": false,
  1717. "autoincrement": false
  1718. },
  1719. "context_tokens": {
  1720. "name": "context_tokens",
  1721. "type": "integer",
  1722. "primaryKey": false,
  1723. "notNull": false,
  1724. "autoincrement": false
  1725. },
  1726. "error": {
  1727. "name": "error",
  1728. "type": "text",
  1729. "primaryKey": false,
  1730. "notNull": false,
  1731. "autoincrement": false
  1732. },
  1733. "created_at": {
  1734. "name": "created_at",
  1735. "type": "text",
  1736. "primaryKey": false,
  1737. "notNull": true,
  1738. "autoincrement": false,
  1739. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1740. }
  1741. },
  1742. "indexes": {
  1743. "runs_session_idx": {
  1744. "name": "runs_session_idx",
  1745. "columns": [
  1746. "session_id"
  1747. ],
  1748. "isUnique": false
  1749. }
  1750. },
  1751. "foreignKeys": {},
  1752. "compositePrimaryKeys": {},
  1753. "uniqueConstraints": {},
  1754. "checkConstraints": {}
  1755. },
  1756. "schedule_runs": {
  1757. "name": "schedule_runs",
  1758. "columns": {
  1759. "id": {
  1760. "name": "id",
  1761. "type": "integer",
  1762. "primaryKey": true,
  1763. "notNull": true,
  1764. "autoincrement": true
  1765. },
  1766. "schedule_id": {
  1767. "name": "schedule_id",
  1768. "type": "text",
  1769. "primaryKey": false,
  1770. "notNull": true,
  1771. "autoincrement": false
  1772. },
  1773. "ts": {
  1774. "name": "ts",
  1775. "type": "text",
  1776. "primaryKey": false,
  1777. "notNull": true,
  1778. "autoincrement": false,
  1779. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1780. },
  1781. "outcome": {
  1782. "name": "outcome",
  1783. "type": "text",
  1784. "primaryKey": false,
  1785. "notNull": true,
  1786. "autoincrement": false
  1787. },
  1788. "run_id": {
  1789. "name": "run_id",
  1790. "type": "text",
  1791. "primaryKey": false,
  1792. "notNull": false,
  1793. "autoincrement": false
  1794. },
  1795. "cost_usd": {
  1796. "name": "cost_usd",
  1797. "type": "real",
  1798. "primaryKey": false,
  1799. "notNull": false,
  1800. "autoincrement": false
  1801. },
  1802. "note": {
  1803. "name": "note",
  1804. "type": "text",
  1805. "primaryKey": false,
  1806. "notNull": false,
  1807. "autoincrement": false
  1808. }
  1809. },
  1810. "indexes": {
  1811. "schedule_runs_idx": {
  1812. "name": "schedule_runs_idx",
  1813. "columns": [
  1814. "schedule_id",
  1815. "id"
  1816. ],
  1817. "isUnique": false
  1818. }
  1819. },
  1820. "foreignKeys": {},
  1821. "compositePrimaryKeys": {},
  1822. "uniqueConstraints": {},
  1823. "checkConstraints": {}
  1824. },
  1825. "schedules": {
  1826. "name": "schedules",
  1827. "columns": {
  1828. "id": {
  1829. "name": "id",
  1830. "type": "text",
  1831. "primaryKey": true,
  1832. "notNull": true,
  1833. "autoincrement": false
  1834. },
  1835. "session_id": {
  1836. "name": "session_id",
  1837. "type": "text",
  1838. "primaryKey": false,
  1839. "notNull": false,
  1840. "autoincrement": false
  1841. },
  1842. "team_id": {
  1843. "name": "team_id",
  1844. "type": "text",
  1845. "primaryKey": false,
  1846. "notNull": false,
  1847. "autoincrement": false
  1848. },
  1849. "created_by_bot_id": {
  1850. "name": "created_by_bot_id",
  1851. "type": "text",
  1852. "primaryKey": false,
  1853. "notNull": false,
  1854. "autoincrement": false
  1855. },
  1856. "title": {
  1857. "name": "title",
  1858. "type": "text",
  1859. "primaryKey": false,
  1860. "notNull": true,
  1861. "autoincrement": false
  1862. },
  1863. "prompt": {
  1864. "name": "prompt",
  1865. "type": "text",
  1866. "primaryKey": false,
  1867. "notNull": true,
  1868. "autoincrement": false
  1869. },
  1870. "spec": {
  1871. "name": "spec",
  1872. "type": "text",
  1873. "primaryKey": false,
  1874. "notNull": true,
  1875. "autoincrement": false
  1876. },
  1877. "timezone": {
  1878. "name": "timezone",
  1879. "type": "text",
  1880. "primaryKey": false,
  1881. "notNull": true,
  1882. "autoincrement": false
  1883. },
  1884. "status": {
  1885. "name": "status",
  1886. "type": "text",
  1887. "primaryKey": false,
  1888. "notNull": true,
  1889. "autoincrement": false,
  1890. "default": "'active'"
  1891. },
  1892. "status_note": {
  1893. "name": "status_note",
  1894. "type": "text",
  1895. "primaryKey": false,
  1896. "notNull": false,
  1897. "autoincrement": false
  1898. },
  1899. "next_run_at": {
  1900. "name": "next_run_at",
  1901. "type": "text",
  1902. "primaryKey": false,
  1903. "notNull": false,
  1904. "autoincrement": false
  1905. },
  1906. "last_run_at": {
  1907. "name": "last_run_at",
  1908. "type": "text",
  1909. "primaryKey": false,
  1910. "notNull": false,
  1911. "autoincrement": false
  1912. },
  1913. "last_outcome": {
  1914. "name": "last_outcome",
  1915. "type": "text",
  1916. "primaryKey": false,
  1917. "notNull": false,
  1918. "autoincrement": false
  1919. },
  1920. "run_count": {
  1921. "name": "run_count",
  1922. "type": "integer",
  1923. "primaryKey": false,
  1924. "notNull": true,
  1925. "autoincrement": false,
  1926. "default": 0
  1927. },
  1928. "created_at": {
  1929. "name": "created_at",
  1930. "type": "text",
  1931. "primaryKey": false,
  1932. "notNull": true,
  1933. "autoincrement": false,
  1934. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1935. },
  1936. "updated_at": {
  1937. "name": "updated_at",
  1938. "type": "text",
  1939. "primaryKey": false,
  1940. "notNull": true,
  1941. "autoincrement": false,
  1942. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1943. }
  1944. },
  1945. "indexes": {
  1946. "schedules_due_idx": {
  1947. "name": "schedules_due_idx",
  1948. "columns": [
  1949. "status",
  1950. "next_run_at"
  1951. ],
  1952. "isUnique": false
  1953. },
  1954. "schedules_session_idx": {
  1955. "name": "schedules_session_idx",
  1956. "columns": [
  1957. "session_id"
  1958. ],
  1959. "isUnique": false
  1960. },
  1961. "schedules_team_idx": {
  1962. "name": "schedules_team_idx",
  1963. "columns": [
  1964. "team_id"
  1965. ],
  1966. "isUnique": false
  1967. }
  1968. },
  1969. "foreignKeys": {},
  1970. "compositePrimaryKeys": {},
  1971. "uniqueConstraints": {},
  1972. "checkConstraints": {}
  1973. },
  1974. "sessions": {
  1975. "name": "sessions",
  1976. "columns": {
  1977. "id": {
  1978. "name": "id",
  1979. "type": "text",
  1980. "primaryKey": true,
  1981. "notNull": true,
  1982. "autoincrement": false
  1983. },
  1984. "source": {
  1985. "name": "source",
  1986. "type": "text",
  1987. "primaryKey": false,
  1988. "notNull": true,
  1989. "autoincrement": false
  1990. },
  1991. "profile_id": {
  1992. "name": "profile_id",
  1993. "type": "text",
  1994. "primaryKey": false,
  1995. "notNull": false,
  1996. "autoincrement": false
  1997. },
  1998. "provider": {
  1999. "name": "provider",
  2000. "type": "text",
  2001. "primaryKey": false,
  2002. "notNull": true,
  2003. "autoincrement": false
  2004. },
  2005. "model": {
  2006. "name": "model",
  2007. "type": "text",
  2008. "primaryKey": false,
  2009. "notNull": true,
  2010. "autoincrement": false
  2011. },
  2012. "permission_mode": {
  2013. "name": "permission_mode",
  2014. "type": "text",
  2015. "primaryKey": false,
  2016. "notNull": false,
  2017. "autoincrement": false
  2018. },
  2019. "system_prompt_append": {
  2020. "name": "system_prompt_append",
  2021. "type": "text",
  2022. "primaryKey": false,
  2023. "notNull": true,
  2024. "autoincrement": false,
  2025. "default": "''"
  2026. },
  2027. "provider_session_id": {
  2028. "name": "provider_session_id",
  2029. "type": "text",
  2030. "primaryKey": false,
  2031. "notNull": false,
  2032. "autoincrement": false
  2033. },
  2034. "workspace_dir": {
  2035. "name": "workspace_dir",
  2036. "type": "text",
  2037. "primaryKey": false,
  2038. "notNull": true,
  2039. "autoincrement": false
  2040. },
  2041. "title": {
  2042. "name": "title",
  2043. "type": "text",
  2044. "primaryKey": false,
  2045. "notNull": true,
  2046. "autoincrement": false,
  2047. "default": "''"
  2048. },
  2049. "last_seq": {
  2050. "name": "last_seq",
  2051. "type": "integer",
  2052. "primaryKey": false,
  2053. "notNull": true,
  2054. "autoincrement": false,
  2055. "default": 0
  2056. },
  2057. "archived": {
  2058. "name": "archived",
  2059. "type": "integer",
  2060. "primaryKey": false,
  2061. "notNull": true,
  2062. "autoincrement": false,
  2063. "default": false
  2064. },
  2065. "created_at": {
  2066. "name": "created_at",
  2067. "type": "text",
  2068. "primaryKey": false,
  2069. "notNull": true,
  2070. "autoincrement": false,
  2071. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2072. },
  2073. "updated_at": {
  2074. "name": "updated_at",
  2075. "type": "text",
  2076. "primaryKey": false,
  2077. "notNull": true,
  2078. "autoincrement": false,
  2079. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2080. }
  2081. },
  2082. "indexes": {
  2083. "sessions_source_idx": {
  2084. "name": "sessions_source_idx",
  2085. "columns": [
  2086. "source",
  2087. "updated_at"
  2088. ],
  2089. "isUnique": false
  2090. }
  2091. },
  2092. "foreignKeys": {},
  2093. "compositePrimaryKeys": {},
  2094. "uniqueConstraints": {},
  2095. "checkConstraints": {}
  2096. },
  2097. "settings": {
  2098. "name": "settings",
  2099. "columns": {
  2100. "key": {
  2101. "name": "key",
  2102. "type": "text",
  2103. "primaryKey": true,
  2104. "notNull": true,
  2105. "autoincrement": false
  2106. },
  2107. "value": {
  2108. "name": "value",
  2109. "type": "text",
  2110. "primaryKey": false,
  2111. "notNull": true,
  2112. "autoincrement": false
  2113. },
  2114. "updated_at": {
  2115. "name": "updated_at",
  2116. "type": "text",
  2117. "primaryKey": false,
  2118. "notNull": true,
  2119. "autoincrement": false,
  2120. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2121. }
  2122. },
  2123. "indexes": {},
  2124. "foreignKeys": {},
  2125. "compositePrimaryKeys": {},
  2126. "uniqueConstraints": {},
  2127. "checkConstraints": {}
  2128. },
  2129. "skill_device_logins": {
  2130. "name": "skill_device_logins",
  2131. "columns": {
  2132. "id": {
  2133. "name": "id",
  2134. "type": "text",
  2135. "primaryKey": true,
  2136. "notNull": true,
  2137. "autoincrement": false
  2138. },
  2139. "device_code_hash": {
  2140. "name": "device_code_hash",
  2141. "type": "text",
  2142. "primaryKey": false,
  2143. "notNull": true,
  2144. "autoincrement": false
  2145. },
  2146. "user_code": {
  2147. "name": "user_code",
  2148. "type": "text",
  2149. "primaryKey": false,
  2150. "notNull": true,
  2151. "autoincrement": false
  2152. },
  2153. "client": {
  2154. "name": "client",
  2155. "type": "text",
  2156. "primaryKey": false,
  2157. "notNull": true,
  2158. "autoincrement": false
  2159. },
  2160. "ip": {
  2161. "name": "ip",
  2162. "type": "text",
  2163. "primaryKey": false,
  2164. "notNull": true,
  2165. "autoincrement": false
  2166. },
  2167. "status": {
  2168. "name": "status",
  2169. "type": "text",
  2170. "primaryKey": false,
  2171. "notNull": true,
  2172. "autoincrement": false,
  2173. "default": "'pending'"
  2174. },
  2175. "key_name": {
  2176. "name": "key_name",
  2177. "type": "text",
  2178. "primaryKey": false,
  2179. "notNull": false,
  2180. "autoincrement": false
  2181. },
  2182. "key_days": {
  2183. "name": "key_days",
  2184. "type": "integer",
  2185. "primaryKey": false,
  2186. "notNull": false,
  2187. "autoincrement": false
  2188. },
  2189. "key_id": {
  2190. "name": "key_id",
  2191. "type": "text",
  2192. "primaryKey": false,
  2193. "notNull": false,
  2194. "autoincrement": false
  2195. },
  2196. "expires_at": {
  2197. "name": "expires_at",
  2198. "type": "text",
  2199. "primaryKey": false,
  2200. "notNull": true,
  2201. "autoincrement": false
  2202. },
  2203. "last_poll_at": {
  2204. "name": "last_poll_at",
  2205. "type": "text",
  2206. "primaryKey": false,
  2207. "notNull": false,
  2208. "autoincrement": false
  2209. },
  2210. "created_at": {
  2211. "name": "created_at",
  2212. "type": "text",
  2213. "primaryKey": false,
  2214. "notNull": true,
  2215. "autoincrement": false,
  2216. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2217. }
  2218. },
  2219. "indexes": {
  2220. "skill_device_logins_device_code_hash_unique": {
  2221. "name": "skill_device_logins_device_code_hash_unique",
  2222. "columns": [
  2223. "device_code_hash"
  2224. ],
  2225. "isUnique": true
  2226. },
  2227. "skill_device_logins_user_code_unique": {
  2228. "name": "skill_device_logins_user_code_unique",
  2229. "columns": [
  2230. "user_code"
  2231. ],
  2232. "isUnique": true
  2233. }
  2234. },
  2235. "foreignKeys": {},
  2236. "compositePrimaryKeys": {},
  2237. "uniqueConstraints": {},
  2238. "checkConstraints": {}
  2239. },
  2240. "skill_publish_keys": {
  2241. "name": "skill_publish_keys",
  2242. "columns": {
  2243. "id": {
  2244. "name": "id",
  2245. "type": "text",
  2246. "primaryKey": true,
  2247. "notNull": true,
  2248. "autoincrement": false
  2249. },
  2250. "name": {
  2251. "name": "name",
  2252. "type": "text",
  2253. "primaryKey": false,
  2254. "notNull": true,
  2255. "autoincrement": false
  2256. },
  2257. "description": {
  2258. "name": "description",
  2259. "type": "text",
  2260. "primaryKey": false,
  2261. "notNull": true,
  2262. "autoincrement": false,
  2263. "default": "''"
  2264. },
  2265. "key_hash": {
  2266. "name": "key_hash",
  2267. "type": "text",
  2268. "primaryKey": false,
  2269. "notNull": true,
  2270. "autoincrement": false
  2271. },
  2272. "key_prefix": {
  2273. "name": "key_prefix",
  2274. "type": "text",
  2275. "primaryKey": false,
  2276. "notNull": true,
  2277. "autoincrement": false
  2278. },
  2279. "enabled": {
  2280. "name": "enabled",
  2281. "type": "integer",
  2282. "primaryKey": false,
  2283. "notNull": true,
  2284. "autoincrement": false,
  2285. "default": true
  2286. },
  2287. "expires_at": {
  2288. "name": "expires_at",
  2289. "type": "text",
  2290. "primaryKey": false,
  2291. "notNull": false,
  2292. "autoincrement": false
  2293. },
  2294. "origin": {
  2295. "name": "origin",
  2296. "type": "text",
  2297. "primaryKey": false,
  2298. "notNull": true,
  2299. "autoincrement": false,
  2300. "default": "'manual'"
  2301. },
  2302. "created_at": {
  2303. "name": "created_at",
  2304. "type": "text",
  2305. "primaryKey": false,
  2306. "notNull": true,
  2307. "autoincrement": false,
  2308. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2309. },
  2310. "last_used_at": {
  2311. "name": "last_used_at",
  2312. "type": "text",
  2313. "primaryKey": false,
  2314. "notNull": false,
  2315. "autoincrement": false
  2316. },
  2317. "last_used_ip": {
  2318. "name": "last_used_ip",
  2319. "type": "text",
  2320. "primaryKey": false,
  2321. "notNull": false,
  2322. "autoincrement": false
  2323. }
  2324. },
  2325. "indexes": {
  2326. "skill_publish_keys_key_hash_unique": {
  2327. "name": "skill_publish_keys_key_hash_unique",
  2328. "columns": [
  2329. "key_hash"
  2330. ],
  2331. "isUnique": true
  2332. }
  2333. },
  2334. "foreignKeys": {},
  2335. "compositePrimaryKeys": {},
  2336. "uniqueConstraints": {},
  2337. "checkConstraints": {}
  2338. },
  2339. "skill_submission_items": {
  2340. "name": "skill_submission_items",
  2341. "columns": {
  2342. "id": {
  2343. "name": "id",
  2344. "type": "text",
  2345. "primaryKey": true,
  2346. "notNull": true,
  2347. "autoincrement": false
  2348. },
  2349. "submission_id": {
  2350. "name": "submission_id",
  2351. "type": "text",
  2352. "primaryKey": false,
  2353. "notNull": true,
  2354. "autoincrement": false
  2355. },
  2356. "name": {
  2357. "name": "name",
  2358. "type": "text",
  2359. "primaryKey": false,
  2360. "notNull": true,
  2361. "autoincrement": false
  2362. },
  2363. "description": {
  2364. "name": "description",
  2365. "type": "text",
  2366. "primaryKey": false,
  2367. "notNull": true,
  2368. "autoincrement": false,
  2369. "default": "''"
  2370. },
  2371. "declared_version": {
  2372. "name": "declared_version",
  2373. "type": "text",
  2374. "primaryKey": false,
  2375. "notNull": false,
  2376. "autoincrement": false
  2377. },
  2378. "files": {
  2379. "name": "files",
  2380. "type": "text",
  2381. "primaryKey": false,
  2382. "notNull": true,
  2383. "autoincrement": false
  2384. },
  2385. "checks": {
  2386. "name": "checks",
  2387. "type": "text",
  2388. "primaryKey": false,
  2389. "notNull": true,
  2390. "autoincrement": false,
  2391. "default": "'[]'"
  2392. },
  2393. "status": {
  2394. "name": "status",
  2395. "type": "text",
  2396. "primaryKey": false,
  2397. "notNull": true,
  2398. "autoincrement": false
  2399. },
  2400. "reason": {
  2401. "name": "reason",
  2402. "type": "text",
  2403. "primaryKey": false,
  2404. "notNull": false,
  2405. "autoincrement": false
  2406. },
  2407. "review_note": {
  2408. "name": "review_note",
  2409. "type": "text",
  2410. "primaryKey": false,
  2411. "notNull": false,
  2412. "autoincrement": false
  2413. },
  2414. "reviewed_at": {
  2415. "name": "reviewed_at",
  2416. "type": "text",
  2417. "primaryKey": false,
  2418. "notNull": false,
  2419. "autoincrement": false
  2420. },
  2421. "result": {
  2422. "name": "result",
  2423. "type": "text",
  2424. "primaryKey": false,
  2425. "notNull": false,
  2426. "autoincrement": false
  2427. },
  2428. "created_at": {
  2429. "name": "created_at",
  2430. "type": "text",
  2431. "primaryKey": false,
  2432. "notNull": true,
  2433. "autoincrement": false,
  2434. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2435. }
  2436. },
  2437. "indexes": {},
  2438. "foreignKeys": {},
  2439. "compositePrimaryKeys": {},
  2440. "uniqueConstraints": {},
  2441. "checkConstraints": {}
  2442. },
  2443. "skill_submissions": {
  2444. "name": "skill_submissions",
  2445. "columns": {
  2446. "id": {
  2447. "name": "id",
  2448. "type": "text",
  2449. "primaryKey": true,
  2450. "notNull": true,
  2451. "autoincrement": false
  2452. },
  2453. "key_id": {
  2454. "name": "key_id",
  2455. "type": "text",
  2456. "primaryKey": false,
  2457. "notNull": true,
  2458. "autoincrement": false
  2459. },
  2460. "key_name": {
  2461. "name": "key_name",
  2462. "type": "text",
  2463. "primaryKey": false,
  2464. "notNull": true,
  2465. "autoincrement": false
  2466. },
  2467. "message": {
  2468. "name": "message",
  2469. "type": "text",
  2470. "primaryKey": false,
  2471. "notNull": true,
  2472. "autoincrement": false,
  2473. "default": "''"
  2474. },
  2475. "meta": {
  2476. "name": "meta",
  2477. "type": "text",
  2478. "primaryKey": false,
  2479. "notNull": true,
  2480. "autoincrement": false,
  2481. "default": "'{}'"
  2482. },
  2483. "package_sha": {
  2484. "name": "package_sha",
  2485. "type": "text",
  2486. "primaryKey": false,
  2487. "notNull": true,
  2488. "autoincrement": false
  2489. },
  2490. "package_size": {
  2491. "name": "package_size",
  2492. "type": "integer",
  2493. "primaryKey": false,
  2494. "notNull": true,
  2495. "autoincrement": false
  2496. },
  2497. "created_at": {
  2498. "name": "created_at",
  2499. "type": "text",
  2500. "primaryKey": false,
  2501. "notNull": true,
  2502. "autoincrement": false,
  2503. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2504. }
  2505. },
  2506. "indexes": {},
  2507. "foreignKeys": {},
  2508. "compositePrimaryKeys": {},
  2509. "uniqueConstraints": {},
  2510. "checkConstraints": {}
  2511. },
  2512. "tasks": {
  2513. "name": "tasks",
  2514. "columns": {
  2515. "id": {
  2516. "name": "id",
  2517. "type": "text",
  2518. "primaryKey": true,
  2519. "notNull": true,
  2520. "autoincrement": false
  2521. },
  2522. "job_id": {
  2523. "name": "job_id",
  2524. "type": "text",
  2525. "primaryKey": false,
  2526. "notNull": true,
  2527. "autoincrement": false
  2528. },
  2529. "team_id": {
  2530. "name": "team_id",
  2531. "type": "text",
  2532. "primaryKey": false,
  2533. "notNull": true,
  2534. "autoincrement": false
  2535. },
  2536. "no": {
  2537. "name": "no",
  2538. "type": "integer",
  2539. "primaryKey": false,
  2540. "notNull": true,
  2541. "autoincrement": false
  2542. },
  2543. "bot_id": {
  2544. "name": "bot_id",
  2545. "type": "text",
  2546. "primaryKey": false,
  2547. "notNull": true,
  2548. "autoincrement": false
  2549. },
  2550. "title": {
  2551. "name": "title",
  2552. "type": "text",
  2553. "primaryKey": false,
  2554. "notNull": true,
  2555. "autoincrement": false
  2556. },
  2557. "instructions": {
  2558. "name": "instructions",
  2559. "type": "text",
  2560. "primaryKey": false,
  2561. "notNull": true,
  2562. "autoincrement": false
  2563. },
  2564. "depends_on": {
  2565. "name": "depends_on",
  2566. "type": "text",
  2567. "primaryKey": false,
  2568. "notNull": true,
  2569. "autoincrement": false,
  2570. "default": "'[]'"
  2571. },
  2572. "status": {
  2573. "name": "status",
  2574. "type": "text",
  2575. "primaryKey": false,
  2576. "notNull": true,
  2577. "autoincrement": false
  2578. },
  2579. "follow_up": {
  2580. "name": "follow_up",
  2581. "type": "text",
  2582. "primaryKey": false,
  2583. "notNull": false,
  2584. "autoincrement": false
  2585. },
  2586. "result": {
  2587. "name": "result",
  2588. "type": "text",
  2589. "primaryKey": false,
  2590. "notNull": false,
  2591. "autoincrement": false
  2592. },
  2593. "files": {
  2594. "name": "files",
  2595. "type": "text",
  2596. "primaryKey": false,
  2597. "notNull": true,
  2598. "autoincrement": false,
  2599. "default": "'[]'"
  2600. },
  2601. "run_id": {
  2602. "name": "run_id",
  2603. "type": "text",
  2604. "primaryKey": false,
  2605. "notNull": false,
  2606. "autoincrement": false
  2607. },
  2608. "session_id": {
  2609. "name": "session_id",
  2610. "type": "text",
  2611. "primaryKey": false,
  2612. "notNull": false,
  2613. "autoincrement": false
  2614. },
  2615. "created_at": {
  2616. "name": "created_at",
  2617. "type": "text",
  2618. "primaryKey": false,
  2619. "notNull": true,
  2620. "autoincrement": false,
  2621. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2622. },
  2623. "started_at": {
  2624. "name": "started_at",
  2625. "type": "text",
  2626. "primaryKey": false,
  2627. "notNull": false,
  2628. "autoincrement": false
  2629. },
  2630. "ended_at": {
  2631. "name": "ended_at",
  2632. "type": "text",
  2633. "primaryKey": false,
  2634. "notNull": false,
  2635. "autoincrement": false
  2636. }
  2637. },
  2638. "indexes": {
  2639. "tasks_team_idx": {
  2640. "name": "tasks_team_idx",
  2641. "columns": [
  2642. "team_id",
  2643. "no"
  2644. ],
  2645. "isUnique": false
  2646. },
  2647. "tasks_job_idx": {
  2648. "name": "tasks_job_idx",
  2649. "columns": [
  2650. "job_id"
  2651. ],
  2652. "isUnique": false
  2653. }
  2654. },
  2655. "foreignKeys": {},
  2656. "compositePrimaryKeys": {},
  2657. "uniqueConstraints": {},
  2658. "checkConstraints": {}
  2659. },
  2660. "team_bot_sessions": {
  2661. "name": "team_bot_sessions",
  2662. "columns": {
  2663. "team_id": {
  2664. "name": "team_id",
  2665. "type": "text",
  2666. "primaryKey": false,
  2667. "notNull": true,
  2668. "autoincrement": false
  2669. },
  2670. "bot_id": {
  2671. "name": "bot_id",
  2672. "type": "text",
  2673. "primaryKey": false,
  2674. "notNull": true,
  2675. "autoincrement": false
  2676. },
  2677. "session_id": {
  2678. "name": "session_id",
  2679. "type": "text",
  2680. "primaryKey": false,
  2681. "notNull": true,
  2682. "autoincrement": false
  2683. },
  2684. "last_read_seq": {
  2685. "name": "last_read_seq",
  2686. "type": "integer",
  2687. "primaryKey": false,
  2688. "notNull": true,
  2689. "autoincrement": false,
  2690. "default": 0
  2691. },
  2692. "reset_requested": {
  2693. "name": "reset_requested",
  2694. "type": "integer",
  2695. "primaryKey": false,
  2696. "notNull": true,
  2697. "autoincrement": false,
  2698. "default": false
  2699. }
  2700. },
  2701. "indexes": {
  2702. "team_bot_sessions_session_id_unique": {
  2703. "name": "team_bot_sessions_session_id_unique",
  2704. "columns": [
  2705. "session_id"
  2706. ],
  2707. "isUnique": true
  2708. }
  2709. },
  2710. "foreignKeys": {},
  2711. "compositePrimaryKeys": {
  2712. "team_bot_sessions_team_id_bot_id_pk": {
  2713. "columns": [
  2714. "team_id",
  2715. "bot_id"
  2716. ],
  2717. "name": "team_bot_sessions_team_id_bot_id_pk"
  2718. }
  2719. },
  2720. "uniqueConstraints": {},
  2721. "checkConstraints": {}
  2722. },
  2723. "team_bots": {
  2724. "name": "team_bots",
  2725. "columns": {
  2726. "team_id": {
  2727. "name": "team_id",
  2728. "type": "text",
  2729. "primaryKey": false,
  2730. "notNull": true,
  2731. "autoincrement": false
  2732. },
  2733. "bot_id": {
  2734. "name": "bot_id",
  2735. "type": "text",
  2736. "primaryKey": false,
  2737. "notNull": true,
  2738. "autoincrement": false
  2739. },
  2740. "role": {
  2741. "name": "role",
  2742. "type": "text",
  2743. "primaryKey": false,
  2744. "notNull": true,
  2745. "autoincrement": false
  2746. },
  2747. "joined_at": {
  2748. "name": "joined_at",
  2749. "type": "text",
  2750. "primaryKey": false,
  2751. "notNull": true,
  2752. "autoincrement": false,
  2753. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2754. }
  2755. },
  2756. "indexes": {
  2757. "team_bots_bot_idx": {
  2758. "name": "team_bots_bot_idx",
  2759. "columns": [
  2760. "bot_id"
  2761. ],
  2762. "isUnique": false
  2763. }
  2764. },
  2765. "foreignKeys": {},
  2766. "compositePrimaryKeys": {
  2767. "team_bots_team_id_bot_id_pk": {
  2768. "columns": [
  2769. "team_id",
  2770. "bot_id"
  2771. ],
  2772. "name": "team_bots_team_id_bot_id_pk"
  2773. }
  2774. },
  2775. "uniqueConstraints": {},
  2776. "checkConstraints": {}
  2777. },
  2778. "team_cases": {
  2779. "name": "team_cases",
  2780. "columns": {
  2781. "id": {
  2782. "name": "id",
  2783. "type": "text",
  2784. "primaryKey": true,
  2785. "notNull": true,
  2786. "autoincrement": false
  2787. },
  2788. "name": {
  2789. "name": "name",
  2790. "type": "text",
  2791. "primaryKey": false,
  2792. "notNull": true,
  2793. "autoincrement": false
  2794. },
  2795. "lead_bot_id": {
  2796. "name": "lead_bot_id",
  2797. "type": "text",
  2798. "primaryKey": false,
  2799. "notNull": false,
  2800. "autoincrement": false
  2801. },
  2802. "worker_bot_ids": {
  2803. "name": "worker_bot_ids",
  2804. "type": "text",
  2805. "primaryKey": false,
  2806. "notNull": true,
  2807. "autoincrement": false,
  2808. "default": "'[]'"
  2809. },
  2810. "stub_bot_ids": {
  2811. "name": "stub_bot_ids",
  2812. "type": "text",
  2813. "primaryKey": false,
  2814. "notNull": true,
  2815. "autoincrement": false,
  2816. "default": "'[]'"
  2817. },
  2818. "limits": {
  2819. "name": "limits",
  2820. "type": "text",
  2821. "primaryKey": false,
  2822. "notNull": false,
  2823. "autoincrement": false
  2824. },
  2825. "human_name": {
  2826. "name": "human_name",
  2827. "type": "text",
  2828. "primaryKey": false,
  2829. "notNull": true,
  2830. "autoincrement": false
  2831. },
  2832. "text": {
  2833. "name": "text",
  2834. "type": "text",
  2835. "primaryKey": false,
  2836. "notNull": true,
  2837. "autoincrement": false
  2838. },
  2839. "mentions": {
  2840. "name": "mentions",
  2841. "type": "text",
  2842. "primaryKey": false,
  2843. "notNull": true,
  2844. "autoincrement": false,
  2845. "default": "'[]'"
  2846. },
  2847. "files": {
  2848. "name": "files",
  2849. "type": "text",
  2850. "primaryKey": false,
  2851. "notNull": true,
  2852. "autoincrement": false,
  2853. "default": "'[]'"
  2854. },
  2855. "created_at": {
  2856. "name": "created_at",
  2857. "type": "text",
  2858. "primaryKey": false,
  2859. "notNull": true,
  2860. "autoincrement": false,
  2861. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2862. },
  2863. "updated_at": {
  2864. "name": "updated_at",
  2865. "type": "text",
  2866. "primaryKey": false,
  2867. "notNull": true,
  2868. "autoincrement": false,
  2869. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2870. }
  2871. },
  2872. "indexes": {},
  2873. "foreignKeys": {},
  2874. "compositePrimaryKeys": {},
  2875. "uniqueConstraints": {},
  2876. "checkConstraints": {}
  2877. },
  2878. "team_events": {
  2879. "name": "team_events",
  2880. "columns": {
  2881. "team_id": {
  2882. "name": "team_id",
  2883. "type": "text",
  2884. "primaryKey": false,
  2885. "notNull": true,
  2886. "autoincrement": false
  2887. },
  2888. "seq": {
  2889. "name": "seq",
  2890. "type": "integer",
  2891. "primaryKey": false,
  2892. "notNull": true,
  2893. "autoincrement": false
  2894. },
  2895. "type": {
  2896. "name": "type",
  2897. "type": "text",
  2898. "primaryKey": false,
  2899. "notNull": true,
  2900. "autoincrement": false
  2901. },
  2902. "payload": {
  2903. "name": "payload",
  2904. "type": "text",
  2905. "primaryKey": false,
  2906. "notNull": true,
  2907. "autoincrement": false
  2908. },
  2909. "ts": {
  2910. "name": "ts",
  2911. "type": "text",
  2912. "primaryKey": false,
  2913. "notNull": true,
  2914. "autoincrement": false
  2915. }
  2916. },
  2917. "indexes": {},
  2918. "foreignKeys": {},
  2919. "compositePrimaryKeys": {
  2920. "team_events_team_id_seq_pk": {
  2921. "columns": [
  2922. "team_id",
  2923. "seq"
  2924. ],
  2925. "name": "team_events_team_id_seq_pk"
  2926. }
  2927. },
  2928. "uniqueConstraints": {},
  2929. "checkConstraints": {}
  2930. },
  2931. "teams": {
  2932. "name": "teams",
  2933. "columns": {
  2934. "id": {
  2935. "name": "id",
  2936. "type": "text",
  2937. "primaryKey": true,
  2938. "notNull": true,
  2939. "autoincrement": false
  2940. },
  2941. "source": {
  2942. "name": "source",
  2943. "type": "text",
  2944. "primaryKey": false,
  2945. "notNull": true,
  2946. "autoincrement": false
  2947. },
  2948. "title": {
  2949. "name": "title",
  2950. "type": "text",
  2951. "primaryKey": false,
  2952. "notNull": true,
  2953. "autoincrement": false,
  2954. "default": "''"
  2955. },
  2956. "human": {
  2957. "name": "human",
  2958. "type": "text",
  2959. "primaryKey": false,
  2960. "notNull": true,
  2961. "autoincrement": false
  2962. },
  2963. "status": {
  2964. "name": "status",
  2965. "type": "text",
  2966. "primaryKey": false,
  2967. "notNull": true,
  2968. "autoincrement": false,
  2969. "default": "'active'"
  2970. },
  2971. "workspace_dir": {
  2972. "name": "workspace_dir",
  2973. "type": "text",
  2974. "primaryKey": false,
  2975. "notNull": true,
  2976. "autoincrement": false
  2977. },
  2978. "limits": {
  2979. "name": "limits",
  2980. "type": "text",
  2981. "primaryKey": false,
  2982. "notNull": false,
  2983. "autoincrement": false
  2984. },
  2985. "debug": {
  2986. "name": "debug",
  2987. "type": "text",
  2988. "primaryKey": false,
  2989. "notNull": true,
  2990. "autoincrement": false,
  2991. "default": "'{\"stepMode\":false,\"stubBotIds\":[]}'"
  2992. },
  2993. "last_seq": {
  2994. "name": "last_seq",
  2995. "type": "integer",
  2996. "primaryKey": false,
  2997. "notNull": true,
  2998. "autoincrement": false,
  2999. "default": 0
  3000. },
  3001. "case_id": {
  3002. "name": "case_id",
  3003. "type": "text",
  3004. "primaryKey": false,
  3005. "notNull": false,
  3006. "autoincrement": false
  3007. },
  3008. "created_at": {
  3009. "name": "created_at",
  3010. "type": "text",
  3011. "primaryKey": false,
  3012. "notNull": true,
  3013. "autoincrement": false,
  3014. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  3015. },
  3016. "updated_at": {
  3017. "name": "updated_at",
  3018. "type": "text",
  3019. "primaryKey": false,
  3020. "notNull": true,
  3021. "autoincrement": false,
  3022. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  3023. }
  3024. },
  3025. "indexes": {
  3026. "teams_source_idx": {
  3027. "name": "teams_source_idx",
  3028. "columns": [
  3029. "source",
  3030. "updated_at"
  3031. ],
  3032. "isUnique": false
  3033. },
  3034. "teams_case_idx": {
  3035. "name": "teams_case_idx",
  3036. "columns": [
  3037. "case_id"
  3038. ],
  3039. "isUnique": false
  3040. }
  3041. },
  3042. "foreignKeys": {},
  3043. "compositePrimaryKeys": {},
  3044. "uniqueConstraints": {},
  3045. "checkConstraints": {}
  3046. },
  3047. "usage_daily": {
  3048. "name": "usage_daily",
  3049. "columns": {
  3050. "date": {
  3051. "name": "date",
  3052. "type": "text",
  3053. "primaryKey": false,
  3054. "notNull": true,
  3055. "autoincrement": false
  3056. },
  3057. "source": {
  3058. "name": "source",
  3059. "type": "text",
  3060. "primaryKey": false,
  3061. "notNull": true,
  3062. "autoincrement": false
  3063. },
  3064. "provider": {
  3065. "name": "provider",
  3066. "type": "text",
  3067. "primaryKey": false,
  3068. "notNull": true,
  3069. "autoincrement": false
  3070. },
  3071. "model": {
  3072. "name": "model",
  3073. "type": "text",
  3074. "primaryKey": false,
  3075. "notNull": true,
  3076. "autoincrement": false
  3077. },
  3078. "runs": {
  3079. "name": "runs",
  3080. "type": "integer",
  3081. "primaryKey": false,
  3082. "notNull": true,
  3083. "autoincrement": false,
  3084. "default": 0
  3085. },
  3086. "failed": {
  3087. "name": "failed",
  3088. "type": "integer",
  3089. "primaryKey": false,
  3090. "notNull": true,
  3091. "autoincrement": false,
  3092. "default": 0
  3093. },
  3094. "interrupted": {
  3095. "name": "interrupted",
  3096. "type": "integer",
  3097. "primaryKey": false,
  3098. "notNull": true,
  3099. "autoincrement": false,
  3100. "default": 0
  3101. },
  3102. "input_tokens": {
  3103. "name": "input_tokens",
  3104. "type": "integer",
  3105. "primaryKey": false,
  3106. "notNull": true,
  3107. "autoincrement": false,
  3108. "default": 0
  3109. },
  3110. "output_tokens": {
  3111. "name": "output_tokens",
  3112. "type": "integer",
  3113. "primaryKey": false,
  3114. "notNull": true,
  3115. "autoincrement": false,
  3116. "default": 0
  3117. },
  3118. "cache_read_tokens": {
  3119. "name": "cache_read_tokens",
  3120. "type": "integer",
  3121. "primaryKey": false,
  3122. "notNull": true,
  3123. "autoincrement": false,
  3124. "default": 0
  3125. },
  3126. "cache_write_tokens": {
  3127. "name": "cache_write_tokens",
  3128. "type": "integer",
  3129. "primaryKey": false,
  3130. "notNull": true,
  3131. "autoincrement": false,
  3132. "default": 0
  3133. },
  3134. "cost_usd": {
  3135. "name": "cost_usd",
  3136. "type": "real",
  3137. "primaryKey": false,
  3138. "notNull": true,
  3139. "autoincrement": false,
  3140. "default": 0
  3141. },
  3142. "duration_ms": {
  3143. "name": "duration_ms",
  3144. "type": "integer",
  3145. "primaryKey": false,
  3146. "notNull": true,
  3147. "autoincrement": false,
  3148. "default": 0
  3149. }
  3150. },
  3151. "indexes": {},
  3152. "foreignKeys": {},
  3153. "compositePrimaryKeys": {
  3154. "usage_daily_date_source_provider_model_pk": {
  3155. "columns": [
  3156. "date",
  3157. "source",
  3158. "provider",
  3159. "model"
  3160. ],
  3161. "name": "usage_daily_date_source_provider_model_pk"
  3162. }
  3163. },
  3164. "uniqueConstraints": {},
  3165. "checkConstraints": {}
  3166. }
  3167. },
  3168. "views": {},
  3169. "enums": {},
  3170. "_meta": {
  3171. "schemas": {},
  3172. "tables": {},
  3173. "columns": {}
  3174. },
  3175. "internal": {
  3176. "indexes": {}
  3177. }
  3178. }