0019_snapshot.json 77 KB

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