0022_snapshot.json 80 KB

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