anything-llm/frontend
Sean Hatfield a126b5f5aa
Replace custom sqlite dbms with prisma (#239)
* WIP converted all sqlite models into prisma calls

* modify db setup and fix ApiKey model calls in admin.js

* renaming function params to be consistent

* converted adminEndpoints to utilize prisma orm

* converted chatEndpoints to utilize prisma orm

* converted inviteEndpoints to utilize prisma orm

* converted systemEndpoints to utilize prisma orm

* converted workspaceEndpoints to utilize prisma orm

* converting sql queries to prisma calls

* fixed default param bug for orderBy and limit

* fixed typo for workspace chats

* fixed order of deletion to account for sql relations

* fix invite CRUD and workspace management CRUD

* fixed CRUD for api keys

* created prisma setup scripts/docs for understanding how to use prisma

* prisma dependency change

* removing unneeded console.logs

* removing unneeded sql escape function

* linting and creating migration script

* migration from depreciated sqlite script update

* removing unneeded migrations in prisma folder

* create backup of old sqlite db and use transactions to ensure all operations complete successfully

* adding migrations to gitignore

* updated PRISMA.md docs for info on how to use sqlite migration script

* comment changes

* adding back migrations folder to repo

* Reviewing SQL and prisma integraiton on fresh repo

* update inline key replacement

* ensure migration script executes and maps foreign_keys regardless of db ordering

* run migration endpoint

* support new prisma backend

* bump version

* change migration call

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
2023-09-28 14:00:03 -07:00
..
public Full developer api (#221) 2023-08-23 19:15:07 -07:00
src Replace custom sqlite dbms with prisma (#239) 2023-09-28 14:00:03 -07:00
.env.example update local dev docs 2023-08-16 15:34:03 -07:00
.eslintrc.cjs [Fork] Additions on franzbischoff resolution on #122 (#152) 2023-07-20 11:14:23 -07:00
.gitignore untrack frontend production env 2023-08-16 12:16:02 -07:00
.nvmrc bump node version requirement 2023-06-08 10:29:17 -07:00
index.html add feedback form, hosting link, update readme, show promo image 2023-08-11 17:28:30 -07:00
jsconfig.json inital commit 2023-06-03 19:28:07 -07:00
package-lock.json add codeblock support for prompt replies and historical messages (#55) 2023-06-14 13:35:55 -07:00
package.json Implement toast for upload event (#214) 2023-08-22 21:14:24 -07:00
postcss.config.js inital commit 2023-06-03 19:28:07 -07:00
tailwind.config.js improve citations to show all text chunks referred and expand the citation to view full referenced text (#161) 2023-07-27 22:33:27 -07:00
vite.config.js inital commit 2023-06-03 19:28:07 -07:00
yarn.lock Implement toast for upload event (#214) 2023-08-22 21:14:24 -07:00