0021_snapshot.json 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075
  1. {
  2. "version": "6",
  3. "dialect": "sqlite",
  4. "id": "0dad397c-3f8a-4806-b33e-36066a92e03e",
  5. "prevId": "2af77c7c-70bc-43d1-9b96-f00f95309921",
  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_servers": {
  1137. "name": "mcp_servers",
  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. "title": {
  1154. "name": "title",
  1155. "type": "text",
  1156. "primaryKey": false,
  1157. "notNull": true,
  1158. "autoincrement": false
  1159. },
  1160. "description": {
  1161. "name": "description",
  1162. "type": "text",
  1163. "primaryKey": false,
  1164. "notNull": true,
  1165. "autoincrement": false,
  1166. "default": "''"
  1167. },
  1168. "transport": {
  1169. "name": "transport",
  1170. "type": "text",
  1171. "primaryKey": false,
  1172. "notNull": true,
  1173. "autoincrement": false
  1174. },
  1175. "enabled": {
  1176. "name": "enabled",
  1177. "type": "integer",
  1178. "primaryKey": false,
  1179. "notNull": true,
  1180. "autoincrement": false,
  1181. "default": true
  1182. },
  1183. "url": {
  1184. "name": "url",
  1185. "type": "text",
  1186. "primaryKey": false,
  1187. "notNull": true,
  1188. "autoincrement": false,
  1189. "default": "''"
  1190. },
  1191. "headers": {
  1192. "name": "headers",
  1193. "type": "text",
  1194. "primaryKey": false,
  1195. "notNull": true,
  1196. "autoincrement": false,
  1197. "default": "'{}'"
  1198. },
  1199. "command": {
  1200. "name": "command",
  1201. "type": "text",
  1202. "primaryKey": false,
  1203. "notNull": true,
  1204. "autoincrement": false,
  1205. "default": "''"
  1206. },
  1207. "args": {
  1208. "name": "args",
  1209. "type": "text",
  1210. "primaryKey": false,
  1211. "notNull": true,
  1212. "autoincrement": false,
  1213. "default": "'[]'"
  1214. },
  1215. "env": {
  1216. "name": "env",
  1217. "type": "text",
  1218. "primaryKey": false,
  1219. "notNull": true,
  1220. "autoincrement": false,
  1221. "default": "'{}'"
  1222. },
  1223. "allow_network": {
  1224. "name": "allow_network",
  1225. "type": "integer",
  1226. "primaryKey": false,
  1227. "notNull": true,
  1228. "autoincrement": false,
  1229. "default": false
  1230. },
  1231. "read_paths": {
  1232. "name": "read_paths",
  1233. "type": "text",
  1234. "primaryKey": false,
  1235. "notNull": true,
  1236. "autoincrement": false,
  1237. "default": "'[]'"
  1238. },
  1239. "write_paths": {
  1240. "name": "write_paths",
  1241. "type": "text",
  1242. "primaryKey": false,
  1243. "notNull": true,
  1244. "autoincrement": false,
  1245. "default": "'[]'"
  1246. },
  1247. "tool_policies": {
  1248. "name": "tool_policies",
  1249. "type": "text",
  1250. "primaryKey": false,
  1251. "notNull": true,
  1252. "autoincrement": false,
  1253. "default": "'{}'"
  1254. },
  1255. "background_tools": {
  1256. "name": "background_tools",
  1257. "type": "text",
  1258. "primaryKey": false,
  1259. "notNull": true,
  1260. "autoincrement": false,
  1261. "default": "'[]'"
  1262. },
  1263. "tool_hints": {
  1264. "name": "tool_hints",
  1265. "type": "text",
  1266. "primaryKey": false,
  1267. "notNull": true,
  1268. "autoincrement": false,
  1269. "default": "'{}'"
  1270. },
  1271. "oauth": {
  1272. "name": "oauth",
  1273. "type": "text",
  1274. "primaryKey": false,
  1275. "notNull": false,
  1276. "autoincrement": false
  1277. },
  1278. "tools_cache": {
  1279. "name": "tools_cache",
  1280. "type": "text",
  1281. "primaryKey": false,
  1282. "notNull": true,
  1283. "autoincrement": false,
  1284. "default": "'[]'"
  1285. },
  1286. "tools_updated_at": {
  1287. "name": "tools_updated_at",
  1288. "type": "text",
  1289. "primaryKey": false,
  1290. "notNull": false,
  1291. "autoincrement": false
  1292. },
  1293. "features": {
  1294. "name": "features",
  1295. "type": "text",
  1296. "primaryKey": false,
  1297. "notNull": true,
  1298. "autoincrement": false,
  1299. "default": "'{}'"
  1300. },
  1301. "created_at": {
  1302. "name": "created_at",
  1303. "type": "text",
  1304. "primaryKey": false,
  1305. "notNull": true,
  1306. "autoincrement": false,
  1307. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1308. },
  1309. "updated_at": {
  1310. "name": "updated_at",
  1311. "type": "text",
  1312. "primaryKey": false,
  1313. "notNull": true,
  1314. "autoincrement": false,
  1315. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1316. }
  1317. },
  1318. "indexes": {
  1319. "mcp_servers_name_unique": {
  1320. "name": "mcp_servers_name_unique",
  1321. "columns": [
  1322. "name"
  1323. ],
  1324. "isUnique": true
  1325. }
  1326. },
  1327. "foreignKeys": {},
  1328. "compositePrimaryKeys": {},
  1329. "uniqueConstraints": {},
  1330. "checkConstraints": {}
  1331. },
  1332. "profile_versions": {
  1333. "name": "profile_versions",
  1334. "columns": {
  1335. "profile_id": {
  1336. "name": "profile_id",
  1337. "type": "text",
  1338. "primaryKey": false,
  1339. "notNull": true,
  1340. "autoincrement": false
  1341. },
  1342. "version": {
  1343. "name": "version",
  1344. "type": "integer",
  1345. "primaryKey": false,
  1346. "notNull": true,
  1347. "autoincrement": false
  1348. },
  1349. "snapshot": {
  1350. "name": "snapshot",
  1351. "type": "text",
  1352. "primaryKey": false,
  1353. "notNull": true,
  1354. "autoincrement": false
  1355. },
  1356. "created_at": {
  1357. "name": "created_at",
  1358. "type": "text",
  1359. "primaryKey": false,
  1360. "notNull": true,
  1361. "autoincrement": false,
  1362. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1363. }
  1364. },
  1365. "indexes": {},
  1366. "foreignKeys": {},
  1367. "compositePrimaryKeys": {
  1368. "profile_versions_profile_id_version_pk": {
  1369. "columns": [
  1370. "profile_id",
  1371. "version"
  1372. ],
  1373. "name": "profile_versions_profile_id_version_pk"
  1374. }
  1375. },
  1376. "uniqueConstraints": {},
  1377. "checkConstraints": {}
  1378. },
  1379. "profiles": {
  1380. "name": "profiles",
  1381. "columns": {
  1382. "id": {
  1383. "name": "id",
  1384. "type": "text",
  1385. "primaryKey": true,
  1386. "notNull": true,
  1387. "autoincrement": false
  1388. },
  1389. "name": {
  1390. "name": "name",
  1391. "type": "text",
  1392. "primaryKey": false,
  1393. "notNull": true,
  1394. "autoincrement": false
  1395. },
  1396. "description": {
  1397. "name": "description",
  1398. "type": "text",
  1399. "primaryKey": false,
  1400. "notNull": true,
  1401. "autoincrement": false,
  1402. "default": "''"
  1403. },
  1404. "provider": {
  1405. "name": "provider",
  1406. "type": "text",
  1407. "primaryKey": false,
  1408. "notNull": true,
  1409. "autoincrement": false
  1410. },
  1411. "model": {
  1412. "name": "model",
  1413. "type": "text",
  1414. "primaryKey": false,
  1415. "notNull": true,
  1416. "autoincrement": false
  1417. },
  1418. "system_prompt": {
  1419. "name": "system_prompt",
  1420. "type": "text",
  1421. "primaryKey": false,
  1422. "notNull": true,
  1423. "autoincrement": false,
  1424. "default": "''"
  1425. },
  1426. "permission_mode": {
  1427. "name": "permission_mode",
  1428. "type": "text",
  1429. "primaryKey": false,
  1430. "notNull": true,
  1431. "autoincrement": false,
  1432. "default": "'ask'"
  1433. },
  1434. "allowed_tools": {
  1435. "name": "allowed_tools",
  1436. "type": "text",
  1437. "primaryKey": false,
  1438. "notNull": true,
  1439. "autoincrement": false,
  1440. "default": "'[]'"
  1441. },
  1442. "disallowed_tools": {
  1443. "name": "disallowed_tools",
  1444. "type": "text",
  1445. "primaryKey": false,
  1446. "notNull": true,
  1447. "autoincrement": false,
  1448. "default": "'[]'"
  1449. },
  1450. "skills": {
  1451. "name": "skills",
  1452. "type": "text",
  1453. "primaryKey": false,
  1454. "notNull": true,
  1455. "autoincrement": false,
  1456. "default": "'\"all\"'"
  1457. },
  1458. "file_access": {
  1459. "name": "file_access",
  1460. "type": "text",
  1461. "primaryKey": false,
  1462. "notNull": true,
  1463. "autoincrement": false
  1464. },
  1465. "knowledge_root_ids": {
  1466. "name": "knowledge_root_ids",
  1467. "type": "text",
  1468. "primaryKey": false,
  1469. "notNull": true,
  1470. "autoincrement": false,
  1471. "default": "'[]'"
  1472. },
  1473. "mcp_server_ids": {
  1474. "name": "mcp_server_ids",
  1475. "type": "text",
  1476. "primaryKey": false,
  1477. "notNull": true,
  1478. "autoincrement": false,
  1479. "default": "'[]'"
  1480. },
  1481. "codex_plugin_ids": {
  1482. "name": "codex_plugin_ids",
  1483. "type": "text",
  1484. "primaryKey": false,
  1485. "notNull": true,
  1486. "autoincrement": false,
  1487. "default": "'[]'"
  1488. },
  1489. "is_default": {
  1490. "name": "is_default",
  1491. "type": "integer",
  1492. "primaryKey": false,
  1493. "notNull": true,
  1494. "autoincrement": false,
  1495. "default": false
  1496. },
  1497. "builtin": {
  1498. "name": "builtin",
  1499. "type": "integer",
  1500. "primaryKey": false,
  1501. "notNull": true,
  1502. "autoincrement": false,
  1503. "default": false
  1504. },
  1505. "builtin_key": {
  1506. "name": "builtin_key",
  1507. "type": "text",
  1508. "primaryKey": false,
  1509. "notNull": false,
  1510. "autoincrement": false
  1511. },
  1512. "version": {
  1513. "name": "version",
  1514. "type": "integer",
  1515. "primaryKey": false,
  1516. "notNull": true,
  1517. "autoincrement": false,
  1518. "default": 1
  1519. },
  1520. "created_at": {
  1521. "name": "created_at",
  1522. "type": "text",
  1523. "primaryKey": false,
  1524. "notNull": true,
  1525. "autoincrement": false,
  1526. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1527. },
  1528. "updated_at": {
  1529. "name": "updated_at",
  1530. "type": "text",
  1531. "primaryKey": false,
  1532. "notNull": true,
  1533. "autoincrement": false,
  1534. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1535. }
  1536. },
  1537. "indexes": {},
  1538. "foreignKeys": {},
  1539. "compositePrimaryKeys": {},
  1540. "uniqueConstraints": {},
  1541. "checkConstraints": {}
  1542. },
  1543. "runs": {
  1544. "name": "runs",
  1545. "columns": {
  1546. "id": {
  1547. "name": "id",
  1548. "type": "text",
  1549. "primaryKey": true,
  1550. "notNull": true,
  1551. "autoincrement": false
  1552. },
  1553. "session_id": {
  1554. "name": "session_id",
  1555. "type": "text",
  1556. "primaryKey": false,
  1557. "notNull": true,
  1558. "autoincrement": false
  1559. },
  1560. "status": {
  1561. "name": "status",
  1562. "type": "text",
  1563. "primaryKey": false,
  1564. "notNull": true,
  1565. "autoincrement": false
  1566. },
  1567. "started_at": {
  1568. "name": "started_at",
  1569. "type": "text",
  1570. "primaryKey": false,
  1571. "notNull": false,
  1572. "autoincrement": false
  1573. },
  1574. "ended_at": {
  1575. "name": "ended_at",
  1576. "type": "text",
  1577. "primaryKey": false,
  1578. "notNull": false,
  1579. "autoincrement": false
  1580. },
  1581. "input_tokens": {
  1582. "name": "input_tokens",
  1583. "type": "integer",
  1584. "primaryKey": false,
  1585. "notNull": false,
  1586. "autoincrement": false
  1587. },
  1588. "output_tokens": {
  1589. "name": "output_tokens",
  1590. "type": "integer",
  1591. "primaryKey": false,
  1592. "notNull": false,
  1593. "autoincrement": false
  1594. },
  1595. "cache_read_tokens": {
  1596. "name": "cache_read_tokens",
  1597. "type": "integer",
  1598. "primaryKey": false,
  1599. "notNull": false,
  1600. "autoincrement": false
  1601. },
  1602. "cache_write_tokens": {
  1603. "name": "cache_write_tokens",
  1604. "type": "integer",
  1605. "primaryKey": false,
  1606. "notNull": false,
  1607. "autoincrement": false
  1608. },
  1609. "cost_usd": {
  1610. "name": "cost_usd",
  1611. "type": "real",
  1612. "primaryKey": false,
  1613. "notNull": false,
  1614. "autoincrement": false
  1615. },
  1616. "context_tokens": {
  1617. "name": "context_tokens",
  1618. "type": "integer",
  1619. "primaryKey": false,
  1620. "notNull": false,
  1621. "autoincrement": false
  1622. },
  1623. "error": {
  1624. "name": "error",
  1625. "type": "text",
  1626. "primaryKey": false,
  1627. "notNull": false,
  1628. "autoincrement": false
  1629. },
  1630. "created_at": {
  1631. "name": "created_at",
  1632. "type": "text",
  1633. "primaryKey": false,
  1634. "notNull": true,
  1635. "autoincrement": false,
  1636. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1637. }
  1638. },
  1639. "indexes": {
  1640. "runs_session_idx": {
  1641. "name": "runs_session_idx",
  1642. "columns": [
  1643. "session_id"
  1644. ],
  1645. "isUnique": false
  1646. }
  1647. },
  1648. "foreignKeys": {},
  1649. "compositePrimaryKeys": {},
  1650. "uniqueConstraints": {},
  1651. "checkConstraints": {}
  1652. },
  1653. "schedule_runs": {
  1654. "name": "schedule_runs",
  1655. "columns": {
  1656. "id": {
  1657. "name": "id",
  1658. "type": "integer",
  1659. "primaryKey": true,
  1660. "notNull": true,
  1661. "autoincrement": true
  1662. },
  1663. "schedule_id": {
  1664. "name": "schedule_id",
  1665. "type": "text",
  1666. "primaryKey": false,
  1667. "notNull": true,
  1668. "autoincrement": false
  1669. },
  1670. "ts": {
  1671. "name": "ts",
  1672. "type": "text",
  1673. "primaryKey": false,
  1674. "notNull": true,
  1675. "autoincrement": false,
  1676. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1677. },
  1678. "outcome": {
  1679. "name": "outcome",
  1680. "type": "text",
  1681. "primaryKey": false,
  1682. "notNull": true,
  1683. "autoincrement": false
  1684. },
  1685. "run_id": {
  1686. "name": "run_id",
  1687. "type": "text",
  1688. "primaryKey": false,
  1689. "notNull": false,
  1690. "autoincrement": false
  1691. },
  1692. "cost_usd": {
  1693. "name": "cost_usd",
  1694. "type": "real",
  1695. "primaryKey": false,
  1696. "notNull": false,
  1697. "autoincrement": false
  1698. },
  1699. "note": {
  1700. "name": "note",
  1701. "type": "text",
  1702. "primaryKey": false,
  1703. "notNull": false,
  1704. "autoincrement": false
  1705. }
  1706. },
  1707. "indexes": {
  1708. "schedule_runs_idx": {
  1709. "name": "schedule_runs_idx",
  1710. "columns": [
  1711. "schedule_id",
  1712. "id"
  1713. ],
  1714. "isUnique": false
  1715. }
  1716. },
  1717. "foreignKeys": {},
  1718. "compositePrimaryKeys": {},
  1719. "uniqueConstraints": {},
  1720. "checkConstraints": {}
  1721. },
  1722. "schedules": {
  1723. "name": "schedules",
  1724. "columns": {
  1725. "id": {
  1726. "name": "id",
  1727. "type": "text",
  1728. "primaryKey": true,
  1729. "notNull": true,
  1730. "autoincrement": false
  1731. },
  1732. "session_id": {
  1733. "name": "session_id",
  1734. "type": "text",
  1735. "primaryKey": false,
  1736. "notNull": false,
  1737. "autoincrement": false
  1738. },
  1739. "team_id": {
  1740. "name": "team_id",
  1741. "type": "text",
  1742. "primaryKey": false,
  1743. "notNull": false,
  1744. "autoincrement": false
  1745. },
  1746. "created_by_bot_id": {
  1747. "name": "created_by_bot_id",
  1748. "type": "text",
  1749. "primaryKey": false,
  1750. "notNull": false,
  1751. "autoincrement": false
  1752. },
  1753. "title": {
  1754. "name": "title",
  1755. "type": "text",
  1756. "primaryKey": false,
  1757. "notNull": true,
  1758. "autoincrement": false
  1759. },
  1760. "prompt": {
  1761. "name": "prompt",
  1762. "type": "text",
  1763. "primaryKey": false,
  1764. "notNull": true,
  1765. "autoincrement": false
  1766. },
  1767. "spec": {
  1768. "name": "spec",
  1769. "type": "text",
  1770. "primaryKey": false,
  1771. "notNull": true,
  1772. "autoincrement": false
  1773. },
  1774. "timezone": {
  1775. "name": "timezone",
  1776. "type": "text",
  1777. "primaryKey": false,
  1778. "notNull": true,
  1779. "autoincrement": false
  1780. },
  1781. "status": {
  1782. "name": "status",
  1783. "type": "text",
  1784. "primaryKey": false,
  1785. "notNull": true,
  1786. "autoincrement": false,
  1787. "default": "'active'"
  1788. },
  1789. "status_note": {
  1790. "name": "status_note",
  1791. "type": "text",
  1792. "primaryKey": false,
  1793. "notNull": false,
  1794. "autoincrement": false
  1795. },
  1796. "next_run_at": {
  1797. "name": "next_run_at",
  1798. "type": "text",
  1799. "primaryKey": false,
  1800. "notNull": false,
  1801. "autoincrement": false
  1802. },
  1803. "last_run_at": {
  1804. "name": "last_run_at",
  1805. "type": "text",
  1806. "primaryKey": false,
  1807. "notNull": false,
  1808. "autoincrement": false
  1809. },
  1810. "last_outcome": {
  1811. "name": "last_outcome",
  1812. "type": "text",
  1813. "primaryKey": false,
  1814. "notNull": false,
  1815. "autoincrement": false
  1816. },
  1817. "run_count": {
  1818. "name": "run_count",
  1819. "type": "integer",
  1820. "primaryKey": false,
  1821. "notNull": true,
  1822. "autoincrement": false,
  1823. "default": 0
  1824. },
  1825. "created_at": {
  1826. "name": "created_at",
  1827. "type": "text",
  1828. "primaryKey": false,
  1829. "notNull": true,
  1830. "autoincrement": false,
  1831. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1832. },
  1833. "updated_at": {
  1834. "name": "updated_at",
  1835. "type": "text",
  1836. "primaryKey": false,
  1837. "notNull": true,
  1838. "autoincrement": false,
  1839. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1840. }
  1841. },
  1842. "indexes": {
  1843. "schedules_due_idx": {
  1844. "name": "schedules_due_idx",
  1845. "columns": [
  1846. "status",
  1847. "next_run_at"
  1848. ],
  1849. "isUnique": false
  1850. },
  1851. "schedules_session_idx": {
  1852. "name": "schedules_session_idx",
  1853. "columns": [
  1854. "session_id"
  1855. ],
  1856. "isUnique": false
  1857. },
  1858. "schedules_team_idx": {
  1859. "name": "schedules_team_idx",
  1860. "columns": [
  1861. "team_id"
  1862. ],
  1863. "isUnique": false
  1864. }
  1865. },
  1866. "foreignKeys": {},
  1867. "compositePrimaryKeys": {},
  1868. "uniqueConstraints": {},
  1869. "checkConstraints": {}
  1870. },
  1871. "sessions": {
  1872. "name": "sessions",
  1873. "columns": {
  1874. "id": {
  1875. "name": "id",
  1876. "type": "text",
  1877. "primaryKey": true,
  1878. "notNull": true,
  1879. "autoincrement": false
  1880. },
  1881. "source": {
  1882. "name": "source",
  1883. "type": "text",
  1884. "primaryKey": false,
  1885. "notNull": true,
  1886. "autoincrement": false
  1887. },
  1888. "profile_id": {
  1889. "name": "profile_id",
  1890. "type": "text",
  1891. "primaryKey": false,
  1892. "notNull": false,
  1893. "autoincrement": false
  1894. },
  1895. "provider": {
  1896. "name": "provider",
  1897. "type": "text",
  1898. "primaryKey": false,
  1899. "notNull": true,
  1900. "autoincrement": false
  1901. },
  1902. "model": {
  1903. "name": "model",
  1904. "type": "text",
  1905. "primaryKey": false,
  1906. "notNull": true,
  1907. "autoincrement": false
  1908. },
  1909. "permission_mode": {
  1910. "name": "permission_mode",
  1911. "type": "text",
  1912. "primaryKey": false,
  1913. "notNull": false,
  1914. "autoincrement": false
  1915. },
  1916. "system_prompt_append": {
  1917. "name": "system_prompt_append",
  1918. "type": "text",
  1919. "primaryKey": false,
  1920. "notNull": true,
  1921. "autoincrement": false,
  1922. "default": "''"
  1923. },
  1924. "provider_session_id": {
  1925. "name": "provider_session_id",
  1926. "type": "text",
  1927. "primaryKey": false,
  1928. "notNull": false,
  1929. "autoincrement": false
  1930. },
  1931. "workspace_dir": {
  1932. "name": "workspace_dir",
  1933. "type": "text",
  1934. "primaryKey": false,
  1935. "notNull": true,
  1936. "autoincrement": false
  1937. },
  1938. "title": {
  1939. "name": "title",
  1940. "type": "text",
  1941. "primaryKey": false,
  1942. "notNull": true,
  1943. "autoincrement": false,
  1944. "default": "''"
  1945. },
  1946. "last_seq": {
  1947. "name": "last_seq",
  1948. "type": "integer",
  1949. "primaryKey": false,
  1950. "notNull": true,
  1951. "autoincrement": false,
  1952. "default": 0
  1953. },
  1954. "archived": {
  1955. "name": "archived",
  1956. "type": "integer",
  1957. "primaryKey": false,
  1958. "notNull": true,
  1959. "autoincrement": false,
  1960. "default": false
  1961. },
  1962. "created_at": {
  1963. "name": "created_at",
  1964. "type": "text",
  1965. "primaryKey": false,
  1966. "notNull": true,
  1967. "autoincrement": false,
  1968. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1969. },
  1970. "updated_at": {
  1971. "name": "updated_at",
  1972. "type": "text",
  1973. "primaryKey": false,
  1974. "notNull": true,
  1975. "autoincrement": false,
  1976. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  1977. }
  1978. },
  1979. "indexes": {
  1980. "sessions_source_idx": {
  1981. "name": "sessions_source_idx",
  1982. "columns": [
  1983. "source",
  1984. "updated_at"
  1985. ],
  1986. "isUnique": false
  1987. }
  1988. },
  1989. "foreignKeys": {},
  1990. "compositePrimaryKeys": {},
  1991. "uniqueConstraints": {},
  1992. "checkConstraints": {}
  1993. },
  1994. "settings": {
  1995. "name": "settings",
  1996. "columns": {
  1997. "key": {
  1998. "name": "key",
  1999. "type": "text",
  2000. "primaryKey": true,
  2001. "notNull": true,
  2002. "autoincrement": false
  2003. },
  2004. "value": {
  2005. "name": "value",
  2006. "type": "text",
  2007. "primaryKey": false,
  2008. "notNull": true,
  2009. "autoincrement": false
  2010. },
  2011. "updated_at": {
  2012. "name": "updated_at",
  2013. "type": "text",
  2014. "primaryKey": false,
  2015. "notNull": true,
  2016. "autoincrement": false,
  2017. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2018. }
  2019. },
  2020. "indexes": {},
  2021. "foreignKeys": {},
  2022. "compositePrimaryKeys": {},
  2023. "uniqueConstraints": {},
  2024. "checkConstraints": {}
  2025. },
  2026. "skill_device_logins": {
  2027. "name": "skill_device_logins",
  2028. "columns": {
  2029. "id": {
  2030. "name": "id",
  2031. "type": "text",
  2032. "primaryKey": true,
  2033. "notNull": true,
  2034. "autoincrement": false
  2035. },
  2036. "device_code_hash": {
  2037. "name": "device_code_hash",
  2038. "type": "text",
  2039. "primaryKey": false,
  2040. "notNull": true,
  2041. "autoincrement": false
  2042. },
  2043. "user_code": {
  2044. "name": "user_code",
  2045. "type": "text",
  2046. "primaryKey": false,
  2047. "notNull": true,
  2048. "autoincrement": false
  2049. },
  2050. "client": {
  2051. "name": "client",
  2052. "type": "text",
  2053. "primaryKey": false,
  2054. "notNull": true,
  2055. "autoincrement": false
  2056. },
  2057. "ip": {
  2058. "name": "ip",
  2059. "type": "text",
  2060. "primaryKey": false,
  2061. "notNull": true,
  2062. "autoincrement": false
  2063. },
  2064. "status": {
  2065. "name": "status",
  2066. "type": "text",
  2067. "primaryKey": false,
  2068. "notNull": true,
  2069. "autoincrement": false,
  2070. "default": "'pending'"
  2071. },
  2072. "key_name": {
  2073. "name": "key_name",
  2074. "type": "text",
  2075. "primaryKey": false,
  2076. "notNull": false,
  2077. "autoincrement": false
  2078. },
  2079. "key_days": {
  2080. "name": "key_days",
  2081. "type": "integer",
  2082. "primaryKey": false,
  2083. "notNull": false,
  2084. "autoincrement": false
  2085. },
  2086. "key_id": {
  2087. "name": "key_id",
  2088. "type": "text",
  2089. "primaryKey": false,
  2090. "notNull": false,
  2091. "autoincrement": false
  2092. },
  2093. "expires_at": {
  2094. "name": "expires_at",
  2095. "type": "text",
  2096. "primaryKey": false,
  2097. "notNull": true,
  2098. "autoincrement": false
  2099. },
  2100. "last_poll_at": {
  2101. "name": "last_poll_at",
  2102. "type": "text",
  2103. "primaryKey": false,
  2104. "notNull": false,
  2105. "autoincrement": false
  2106. },
  2107. "created_at": {
  2108. "name": "created_at",
  2109. "type": "text",
  2110. "primaryKey": false,
  2111. "notNull": true,
  2112. "autoincrement": false,
  2113. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2114. }
  2115. },
  2116. "indexes": {
  2117. "skill_device_logins_device_code_hash_unique": {
  2118. "name": "skill_device_logins_device_code_hash_unique",
  2119. "columns": [
  2120. "device_code_hash"
  2121. ],
  2122. "isUnique": true
  2123. },
  2124. "skill_device_logins_user_code_unique": {
  2125. "name": "skill_device_logins_user_code_unique",
  2126. "columns": [
  2127. "user_code"
  2128. ],
  2129. "isUnique": true
  2130. }
  2131. },
  2132. "foreignKeys": {},
  2133. "compositePrimaryKeys": {},
  2134. "uniqueConstraints": {},
  2135. "checkConstraints": {}
  2136. },
  2137. "skill_publish_keys": {
  2138. "name": "skill_publish_keys",
  2139. "columns": {
  2140. "id": {
  2141. "name": "id",
  2142. "type": "text",
  2143. "primaryKey": true,
  2144. "notNull": true,
  2145. "autoincrement": false
  2146. },
  2147. "name": {
  2148. "name": "name",
  2149. "type": "text",
  2150. "primaryKey": false,
  2151. "notNull": true,
  2152. "autoincrement": false
  2153. },
  2154. "description": {
  2155. "name": "description",
  2156. "type": "text",
  2157. "primaryKey": false,
  2158. "notNull": true,
  2159. "autoincrement": false,
  2160. "default": "''"
  2161. },
  2162. "key_hash": {
  2163. "name": "key_hash",
  2164. "type": "text",
  2165. "primaryKey": false,
  2166. "notNull": true,
  2167. "autoincrement": false
  2168. },
  2169. "key_prefix": {
  2170. "name": "key_prefix",
  2171. "type": "text",
  2172. "primaryKey": false,
  2173. "notNull": true,
  2174. "autoincrement": false
  2175. },
  2176. "enabled": {
  2177. "name": "enabled",
  2178. "type": "integer",
  2179. "primaryKey": false,
  2180. "notNull": true,
  2181. "autoincrement": false,
  2182. "default": true
  2183. },
  2184. "expires_at": {
  2185. "name": "expires_at",
  2186. "type": "text",
  2187. "primaryKey": false,
  2188. "notNull": false,
  2189. "autoincrement": false
  2190. },
  2191. "origin": {
  2192. "name": "origin",
  2193. "type": "text",
  2194. "primaryKey": false,
  2195. "notNull": true,
  2196. "autoincrement": false,
  2197. "default": "'manual'"
  2198. },
  2199. "created_at": {
  2200. "name": "created_at",
  2201. "type": "text",
  2202. "primaryKey": false,
  2203. "notNull": true,
  2204. "autoincrement": false,
  2205. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2206. },
  2207. "last_used_at": {
  2208. "name": "last_used_at",
  2209. "type": "text",
  2210. "primaryKey": false,
  2211. "notNull": false,
  2212. "autoincrement": false
  2213. },
  2214. "last_used_ip": {
  2215. "name": "last_used_ip",
  2216. "type": "text",
  2217. "primaryKey": false,
  2218. "notNull": false,
  2219. "autoincrement": false
  2220. }
  2221. },
  2222. "indexes": {
  2223. "skill_publish_keys_key_hash_unique": {
  2224. "name": "skill_publish_keys_key_hash_unique",
  2225. "columns": [
  2226. "key_hash"
  2227. ],
  2228. "isUnique": true
  2229. }
  2230. },
  2231. "foreignKeys": {},
  2232. "compositePrimaryKeys": {},
  2233. "uniqueConstraints": {},
  2234. "checkConstraints": {}
  2235. },
  2236. "skill_submission_items": {
  2237. "name": "skill_submission_items",
  2238. "columns": {
  2239. "id": {
  2240. "name": "id",
  2241. "type": "text",
  2242. "primaryKey": true,
  2243. "notNull": true,
  2244. "autoincrement": false
  2245. },
  2246. "submission_id": {
  2247. "name": "submission_id",
  2248. "type": "text",
  2249. "primaryKey": false,
  2250. "notNull": true,
  2251. "autoincrement": false
  2252. },
  2253. "name": {
  2254. "name": "name",
  2255. "type": "text",
  2256. "primaryKey": false,
  2257. "notNull": true,
  2258. "autoincrement": false
  2259. },
  2260. "description": {
  2261. "name": "description",
  2262. "type": "text",
  2263. "primaryKey": false,
  2264. "notNull": true,
  2265. "autoincrement": false,
  2266. "default": "''"
  2267. },
  2268. "declared_version": {
  2269. "name": "declared_version",
  2270. "type": "text",
  2271. "primaryKey": false,
  2272. "notNull": false,
  2273. "autoincrement": false
  2274. },
  2275. "files": {
  2276. "name": "files",
  2277. "type": "text",
  2278. "primaryKey": false,
  2279. "notNull": true,
  2280. "autoincrement": false
  2281. },
  2282. "checks": {
  2283. "name": "checks",
  2284. "type": "text",
  2285. "primaryKey": false,
  2286. "notNull": true,
  2287. "autoincrement": false,
  2288. "default": "'[]'"
  2289. },
  2290. "status": {
  2291. "name": "status",
  2292. "type": "text",
  2293. "primaryKey": false,
  2294. "notNull": true,
  2295. "autoincrement": false
  2296. },
  2297. "reason": {
  2298. "name": "reason",
  2299. "type": "text",
  2300. "primaryKey": false,
  2301. "notNull": false,
  2302. "autoincrement": false
  2303. },
  2304. "review_note": {
  2305. "name": "review_note",
  2306. "type": "text",
  2307. "primaryKey": false,
  2308. "notNull": false,
  2309. "autoincrement": false
  2310. },
  2311. "reviewed_at": {
  2312. "name": "reviewed_at",
  2313. "type": "text",
  2314. "primaryKey": false,
  2315. "notNull": false,
  2316. "autoincrement": false
  2317. },
  2318. "result": {
  2319. "name": "result",
  2320. "type": "text",
  2321. "primaryKey": false,
  2322. "notNull": false,
  2323. "autoincrement": false
  2324. },
  2325. "created_at": {
  2326. "name": "created_at",
  2327. "type": "text",
  2328. "primaryKey": false,
  2329. "notNull": true,
  2330. "autoincrement": false,
  2331. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2332. }
  2333. },
  2334. "indexes": {},
  2335. "foreignKeys": {},
  2336. "compositePrimaryKeys": {},
  2337. "uniqueConstraints": {},
  2338. "checkConstraints": {}
  2339. },
  2340. "skill_submissions": {
  2341. "name": "skill_submissions",
  2342. "columns": {
  2343. "id": {
  2344. "name": "id",
  2345. "type": "text",
  2346. "primaryKey": true,
  2347. "notNull": true,
  2348. "autoincrement": false
  2349. },
  2350. "key_id": {
  2351. "name": "key_id",
  2352. "type": "text",
  2353. "primaryKey": false,
  2354. "notNull": true,
  2355. "autoincrement": false
  2356. },
  2357. "key_name": {
  2358. "name": "key_name",
  2359. "type": "text",
  2360. "primaryKey": false,
  2361. "notNull": true,
  2362. "autoincrement": false
  2363. },
  2364. "message": {
  2365. "name": "message",
  2366. "type": "text",
  2367. "primaryKey": false,
  2368. "notNull": true,
  2369. "autoincrement": false,
  2370. "default": "''"
  2371. },
  2372. "meta": {
  2373. "name": "meta",
  2374. "type": "text",
  2375. "primaryKey": false,
  2376. "notNull": true,
  2377. "autoincrement": false,
  2378. "default": "'{}'"
  2379. },
  2380. "package_sha": {
  2381. "name": "package_sha",
  2382. "type": "text",
  2383. "primaryKey": false,
  2384. "notNull": true,
  2385. "autoincrement": false
  2386. },
  2387. "package_size": {
  2388. "name": "package_size",
  2389. "type": "integer",
  2390. "primaryKey": false,
  2391. "notNull": true,
  2392. "autoincrement": false
  2393. },
  2394. "created_at": {
  2395. "name": "created_at",
  2396. "type": "text",
  2397. "primaryKey": false,
  2398. "notNull": true,
  2399. "autoincrement": false,
  2400. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2401. }
  2402. },
  2403. "indexes": {},
  2404. "foreignKeys": {},
  2405. "compositePrimaryKeys": {},
  2406. "uniqueConstraints": {},
  2407. "checkConstraints": {}
  2408. },
  2409. "tasks": {
  2410. "name": "tasks",
  2411. "columns": {
  2412. "id": {
  2413. "name": "id",
  2414. "type": "text",
  2415. "primaryKey": true,
  2416. "notNull": true,
  2417. "autoincrement": false
  2418. },
  2419. "job_id": {
  2420. "name": "job_id",
  2421. "type": "text",
  2422. "primaryKey": false,
  2423. "notNull": true,
  2424. "autoincrement": false
  2425. },
  2426. "team_id": {
  2427. "name": "team_id",
  2428. "type": "text",
  2429. "primaryKey": false,
  2430. "notNull": true,
  2431. "autoincrement": false
  2432. },
  2433. "no": {
  2434. "name": "no",
  2435. "type": "integer",
  2436. "primaryKey": false,
  2437. "notNull": true,
  2438. "autoincrement": false
  2439. },
  2440. "bot_id": {
  2441. "name": "bot_id",
  2442. "type": "text",
  2443. "primaryKey": false,
  2444. "notNull": true,
  2445. "autoincrement": false
  2446. },
  2447. "title": {
  2448. "name": "title",
  2449. "type": "text",
  2450. "primaryKey": false,
  2451. "notNull": true,
  2452. "autoincrement": false
  2453. },
  2454. "instructions": {
  2455. "name": "instructions",
  2456. "type": "text",
  2457. "primaryKey": false,
  2458. "notNull": true,
  2459. "autoincrement": false
  2460. },
  2461. "depends_on": {
  2462. "name": "depends_on",
  2463. "type": "text",
  2464. "primaryKey": false,
  2465. "notNull": true,
  2466. "autoincrement": false,
  2467. "default": "'[]'"
  2468. },
  2469. "status": {
  2470. "name": "status",
  2471. "type": "text",
  2472. "primaryKey": false,
  2473. "notNull": true,
  2474. "autoincrement": false
  2475. },
  2476. "follow_up": {
  2477. "name": "follow_up",
  2478. "type": "text",
  2479. "primaryKey": false,
  2480. "notNull": false,
  2481. "autoincrement": false
  2482. },
  2483. "result": {
  2484. "name": "result",
  2485. "type": "text",
  2486. "primaryKey": false,
  2487. "notNull": false,
  2488. "autoincrement": false
  2489. },
  2490. "files": {
  2491. "name": "files",
  2492. "type": "text",
  2493. "primaryKey": false,
  2494. "notNull": true,
  2495. "autoincrement": false,
  2496. "default": "'[]'"
  2497. },
  2498. "run_id": {
  2499. "name": "run_id",
  2500. "type": "text",
  2501. "primaryKey": false,
  2502. "notNull": false,
  2503. "autoincrement": false
  2504. },
  2505. "session_id": {
  2506. "name": "session_id",
  2507. "type": "text",
  2508. "primaryKey": false,
  2509. "notNull": false,
  2510. "autoincrement": false
  2511. },
  2512. "created_at": {
  2513. "name": "created_at",
  2514. "type": "text",
  2515. "primaryKey": false,
  2516. "notNull": true,
  2517. "autoincrement": false,
  2518. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2519. },
  2520. "started_at": {
  2521. "name": "started_at",
  2522. "type": "text",
  2523. "primaryKey": false,
  2524. "notNull": false,
  2525. "autoincrement": false
  2526. },
  2527. "ended_at": {
  2528. "name": "ended_at",
  2529. "type": "text",
  2530. "primaryKey": false,
  2531. "notNull": false,
  2532. "autoincrement": false
  2533. }
  2534. },
  2535. "indexes": {
  2536. "tasks_team_idx": {
  2537. "name": "tasks_team_idx",
  2538. "columns": [
  2539. "team_id",
  2540. "no"
  2541. ],
  2542. "isUnique": false
  2543. },
  2544. "tasks_job_idx": {
  2545. "name": "tasks_job_idx",
  2546. "columns": [
  2547. "job_id"
  2548. ],
  2549. "isUnique": false
  2550. }
  2551. },
  2552. "foreignKeys": {},
  2553. "compositePrimaryKeys": {},
  2554. "uniqueConstraints": {},
  2555. "checkConstraints": {}
  2556. },
  2557. "team_bot_sessions": {
  2558. "name": "team_bot_sessions",
  2559. "columns": {
  2560. "team_id": {
  2561. "name": "team_id",
  2562. "type": "text",
  2563. "primaryKey": false,
  2564. "notNull": true,
  2565. "autoincrement": false
  2566. },
  2567. "bot_id": {
  2568. "name": "bot_id",
  2569. "type": "text",
  2570. "primaryKey": false,
  2571. "notNull": true,
  2572. "autoincrement": false
  2573. },
  2574. "session_id": {
  2575. "name": "session_id",
  2576. "type": "text",
  2577. "primaryKey": false,
  2578. "notNull": true,
  2579. "autoincrement": false
  2580. },
  2581. "last_read_seq": {
  2582. "name": "last_read_seq",
  2583. "type": "integer",
  2584. "primaryKey": false,
  2585. "notNull": true,
  2586. "autoincrement": false,
  2587. "default": 0
  2588. },
  2589. "reset_requested": {
  2590. "name": "reset_requested",
  2591. "type": "integer",
  2592. "primaryKey": false,
  2593. "notNull": true,
  2594. "autoincrement": false,
  2595. "default": false
  2596. }
  2597. },
  2598. "indexes": {
  2599. "team_bot_sessions_session_id_unique": {
  2600. "name": "team_bot_sessions_session_id_unique",
  2601. "columns": [
  2602. "session_id"
  2603. ],
  2604. "isUnique": true
  2605. }
  2606. },
  2607. "foreignKeys": {},
  2608. "compositePrimaryKeys": {
  2609. "team_bot_sessions_team_id_bot_id_pk": {
  2610. "columns": [
  2611. "team_id",
  2612. "bot_id"
  2613. ],
  2614. "name": "team_bot_sessions_team_id_bot_id_pk"
  2615. }
  2616. },
  2617. "uniqueConstraints": {},
  2618. "checkConstraints": {}
  2619. },
  2620. "team_bots": {
  2621. "name": "team_bots",
  2622. "columns": {
  2623. "team_id": {
  2624. "name": "team_id",
  2625. "type": "text",
  2626. "primaryKey": false,
  2627. "notNull": true,
  2628. "autoincrement": false
  2629. },
  2630. "bot_id": {
  2631. "name": "bot_id",
  2632. "type": "text",
  2633. "primaryKey": false,
  2634. "notNull": true,
  2635. "autoincrement": false
  2636. },
  2637. "role": {
  2638. "name": "role",
  2639. "type": "text",
  2640. "primaryKey": false,
  2641. "notNull": true,
  2642. "autoincrement": false
  2643. },
  2644. "joined_at": {
  2645. "name": "joined_at",
  2646. "type": "text",
  2647. "primaryKey": false,
  2648. "notNull": true,
  2649. "autoincrement": false,
  2650. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2651. }
  2652. },
  2653. "indexes": {
  2654. "team_bots_bot_idx": {
  2655. "name": "team_bots_bot_idx",
  2656. "columns": [
  2657. "bot_id"
  2658. ],
  2659. "isUnique": false
  2660. }
  2661. },
  2662. "foreignKeys": {},
  2663. "compositePrimaryKeys": {
  2664. "team_bots_team_id_bot_id_pk": {
  2665. "columns": [
  2666. "team_id",
  2667. "bot_id"
  2668. ],
  2669. "name": "team_bots_team_id_bot_id_pk"
  2670. }
  2671. },
  2672. "uniqueConstraints": {},
  2673. "checkConstraints": {}
  2674. },
  2675. "team_cases": {
  2676. "name": "team_cases",
  2677. "columns": {
  2678. "id": {
  2679. "name": "id",
  2680. "type": "text",
  2681. "primaryKey": true,
  2682. "notNull": true,
  2683. "autoincrement": false
  2684. },
  2685. "name": {
  2686. "name": "name",
  2687. "type": "text",
  2688. "primaryKey": false,
  2689. "notNull": true,
  2690. "autoincrement": false
  2691. },
  2692. "lead_bot_id": {
  2693. "name": "lead_bot_id",
  2694. "type": "text",
  2695. "primaryKey": false,
  2696. "notNull": false,
  2697. "autoincrement": false
  2698. },
  2699. "worker_bot_ids": {
  2700. "name": "worker_bot_ids",
  2701. "type": "text",
  2702. "primaryKey": false,
  2703. "notNull": true,
  2704. "autoincrement": false,
  2705. "default": "'[]'"
  2706. },
  2707. "stub_bot_ids": {
  2708. "name": "stub_bot_ids",
  2709. "type": "text",
  2710. "primaryKey": false,
  2711. "notNull": true,
  2712. "autoincrement": false,
  2713. "default": "'[]'"
  2714. },
  2715. "limits": {
  2716. "name": "limits",
  2717. "type": "text",
  2718. "primaryKey": false,
  2719. "notNull": false,
  2720. "autoincrement": false
  2721. },
  2722. "human_name": {
  2723. "name": "human_name",
  2724. "type": "text",
  2725. "primaryKey": false,
  2726. "notNull": true,
  2727. "autoincrement": false
  2728. },
  2729. "text": {
  2730. "name": "text",
  2731. "type": "text",
  2732. "primaryKey": false,
  2733. "notNull": true,
  2734. "autoincrement": false
  2735. },
  2736. "mentions": {
  2737. "name": "mentions",
  2738. "type": "text",
  2739. "primaryKey": false,
  2740. "notNull": true,
  2741. "autoincrement": false,
  2742. "default": "'[]'"
  2743. },
  2744. "files": {
  2745. "name": "files",
  2746. "type": "text",
  2747. "primaryKey": false,
  2748. "notNull": true,
  2749. "autoincrement": false,
  2750. "default": "'[]'"
  2751. },
  2752. "created_at": {
  2753. "name": "created_at",
  2754. "type": "text",
  2755. "primaryKey": false,
  2756. "notNull": true,
  2757. "autoincrement": false,
  2758. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2759. },
  2760. "updated_at": {
  2761. "name": "updated_at",
  2762. "type": "text",
  2763. "primaryKey": false,
  2764. "notNull": true,
  2765. "autoincrement": false,
  2766. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2767. }
  2768. },
  2769. "indexes": {},
  2770. "foreignKeys": {},
  2771. "compositePrimaryKeys": {},
  2772. "uniqueConstraints": {},
  2773. "checkConstraints": {}
  2774. },
  2775. "team_events": {
  2776. "name": "team_events",
  2777. "columns": {
  2778. "team_id": {
  2779. "name": "team_id",
  2780. "type": "text",
  2781. "primaryKey": false,
  2782. "notNull": true,
  2783. "autoincrement": false
  2784. },
  2785. "seq": {
  2786. "name": "seq",
  2787. "type": "integer",
  2788. "primaryKey": false,
  2789. "notNull": true,
  2790. "autoincrement": false
  2791. },
  2792. "type": {
  2793. "name": "type",
  2794. "type": "text",
  2795. "primaryKey": false,
  2796. "notNull": true,
  2797. "autoincrement": false
  2798. },
  2799. "payload": {
  2800. "name": "payload",
  2801. "type": "text",
  2802. "primaryKey": false,
  2803. "notNull": true,
  2804. "autoincrement": false
  2805. },
  2806. "ts": {
  2807. "name": "ts",
  2808. "type": "text",
  2809. "primaryKey": false,
  2810. "notNull": true,
  2811. "autoincrement": false
  2812. }
  2813. },
  2814. "indexes": {},
  2815. "foreignKeys": {},
  2816. "compositePrimaryKeys": {
  2817. "team_events_team_id_seq_pk": {
  2818. "columns": [
  2819. "team_id",
  2820. "seq"
  2821. ],
  2822. "name": "team_events_team_id_seq_pk"
  2823. }
  2824. },
  2825. "uniqueConstraints": {},
  2826. "checkConstraints": {}
  2827. },
  2828. "teams": {
  2829. "name": "teams",
  2830. "columns": {
  2831. "id": {
  2832. "name": "id",
  2833. "type": "text",
  2834. "primaryKey": true,
  2835. "notNull": true,
  2836. "autoincrement": false
  2837. },
  2838. "source": {
  2839. "name": "source",
  2840. "type": "text",
  2841. "primaryKey": false,
  2842. "notNull": true,
  2843. "autoincrement": false
  2844. },
  2845. "title": {
  2846. "name": "title",
  2847. "type": "text",
  2848. "primaryKey": false,
  2849. "notNull": true,
  2850. "autoincrement": false,
  2851. "default": "''"
  2852. },
  2853. "human": {
  2854. "name": "human",
  2855. "type": "text",
  2856. "primaryKey": false,
  2857. "notNull": true,
  2858. "autoincrement": false
  2859. },
  2860. "status": {
  2861. "name": "status",
  2862. "type": "text",
  2863. "primaryKey": false,
  2864. "notNull": true,
  2865. "autoincrement": false,
  2866. "default": "'active'"
  2867. },
  2868. "workspace_dir": {
  2869. "name": "workspace_dir",
  2870. "type": "text",
  2871. "primaryKey": false,
  2872. "notNull": true,
  2873. "autoincrement": false
  2874. },
  2875. "limits": {
  2876. "name": "limits",
  2877. "type": "text",
  2878. "primaryKey": false,
  2879. "notNull": false,
  2880. "autoincrement": false
  2881. },
  2882. "debug": {
  2883. "name": "debug",
  2884. "type": "text",
  2885. "primaryKey": false,
  2886. "notNull": true,
  2887. "autoincrement": false,
  2888. "default": "'{\"stepMode\":false,\"stubBotIds\":[]}'"
  2889. },
  2890. "last_seq": {
  2891. "name": "last_seq",
  2892. "type": "integer",
  2893. "primaryKey": false,
  2894. "notNull": true,
  2895. "autoincrement": false,
  2896. "default": 0
  2897. },
  2898. "case_id": {
  2899. "name": "case_id",
  2900. "type": "text",
  2901. "primaryKey": false,
  2902. "notNull": false,
  2903. "autoincrement": false
  2904. },
  2905. "created_at": {
  2906. "name": "created_at",
  2907. "type": "text",
  2908. "primaryKey": false,
  2909. "notNull": true,
  2910. "autoincrement": false,
  2911. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2912. },
  2913. "updated_at": {
  2914. "name": "updated_at",
  2915. "type": "text",
  2916. "primaryKey": false,
  2917. "notNull": true,
  2918. "autoincrement": false,
  2919. "default": "(strftime('%Y-%m-%dT%H:%M:%fZ','now'))"
  2920. }
  2921. },
  2922. "indexes": {
  2923. "teams_source_idx": {
  2924. "name": "teams_source_idx",
  2925. "columns": [
  2926. "source",
  2927. "updated_at"
  2928. ],
  2929. "isUnique": false
  2930. },
  2931. "teams_case_idx": {
  2932. "name": "teams_case_idx",
  2933. "columns": [
  2934. "case_id"
  2935. ],
  2936. "isUnique": false
  2937. }
  2938. },
  2939. "foreignKeys": {},
  2940. "compositePrimaryKeys": {},
  2941. "uniqueConstraints": {},
  2942. "checkConstraints": {}
  2943. },
  2944. "usage_daily": {
  2945. "name": "usage_daily",
  2946. "columns": {
  2947. "date": {
  2948. "name": "date",
  2949. "type": "text",
  2950. "primaryKey": false,
  2951. "notNull": true,
  2952. "autoincrement": false
  2953. },
  2954. "source": {
  2955. "name": "source",
  2956. "type": "text",
  2957. "primaryKey": false,
  2958. "notNull": true,
  2959. "autoincrement": false
  2960. },
  2961. "provider": {
  2962. "name": "provider",
  2963. "type": "text",
  2964. "primaryKey": false,
  2965. "notNull": true,
  2966. "autoincrement": false
  2967. },
  2968. "model": {
  2969. "name": "model",
  2970. "type": "text",
  2971. "primaryKey": false,
  2972. "notNull": true,
  2973. "autoincrement": false
  2974. },
  2975. "runs": {
  2976. "name": "runs",
  2977. "type": "integer",
  2978. "primaryKey": false,
  2979. "notNull": true,
  2980. "autoincrement": false,
  2981. "default": 0
  2982. },
  2983. "failed": {
  2984. "name": "failed",
  2985. "type": "integer",
  2986. "primaryKey": false,
  2987. "notNull": true,
  2988. "autoincrement": false,
  2989. "default": 0
  2990. },
  2991. "interrupted": {
  2992. "name": "interrupted",
  2993. "type": "integer",
  2994. "primaryKey": false,
  2995. "notNull": true,
  2996. "autoincrement": false,
  2997. "default": 0
  2998. },
  2999. "input_tokens": {
  3000. "name": "input_tokens",
  3001. "type": "integer",
  3002. "primaryKey": false,
  3003. "notNull": true,
  3004. "autoincrement": false,
  3005. "default": 0
  3006. },
  3007. "output_tokens": {
  3008. "name": "output_tokens",
  3009. "type": "integer",
  3010. "primaryKey": false,
  3011. "notNull": true,
  3012. "autoincrement": false,
  3013. "default": 0
  3014. },
  3015. "cache_read_tokens": {
  3016. "name": "cache_read_tokens",
  3017. "type": "integer",
  3018. "primaryKey": false,
  3019. "notNull": true,
  3020. "autoincrement": false,
  3021. "default": 0
  3022. },
  3023. "cache_write_tokens": {
  3024. "name": "cache_write_tokens",
  3025. "type": "integer",
  3026. "primaryKey": false,
  3027. "notNull": true,
  3028. "autoincrement": false,
  3029. "default": 0
  3030. },
  3031. "cost_usd": {
  3032. "name": "cost_usd",
  3033. "type": "real",
  3034. "primaryKey": false,
  3035. "notNull": true,
  3036. "autoincrement": false,
  3037. "default": 0
  3038. },
  3039. "duration_ms": {
  3040. "name": "duration_ms",
  3041. "type": "integer",
  3042. "primaryKey": false,
  3043. "notNull": true,
  3044. "autoincrement": false,
  3045. "default": 0
  3046. }
  3047. },
  3048. "indexes": {},
  3049. "foreignKeys": {},
  3050. "compositePrimaryKeys": {
  3051. "usage_daily_date_source_provider_model_pk": {
  3052. "columns": [
  3053. "date",
  3054. "source",
  3055. "provider",
  3056. "model"
  3057. ],
  3058. "name": "usage_daily_date_source_provider_model_pk"
  3059. }
  3060. },
  3061. "uniqueConstraints": {},
  3062. "checkConstraints": {}
  3063. }
  3064. },
  3065. "views": {},
  3066. "enums": {},
  3067. "_meta": {
  3068. "schemas": {},
  3069. "tables": {},
  3070. "columns": {}
  3071. },
  3072. "internal": {
  3073. "indexes": {}
  3074. }
  3075. }