0024_snapshot.json 82 KB

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