-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server-Side-Storage (SSS): use Prisma
- Loading branch information
Showing
5 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Prisma is the ORM for server-side (API) access to the database | ||
// | ||
// This file defines the schema for the database. | ||
// - make sure to run 'prisma generate' after making changes to this file | ||
// - make sure to run 'prisma db push' to sync the remote database with the schema | ||
// | ||
// Database is optional: when the environment variables are not set, the database is not used at all, | ||
// and the storage of data in Big-AGI is limited to client-side (browser) storage. | ||
// | ||
// The database is used for: | ||
// - the 'sharing' function, to let users share the chats with each other | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("POSTGRES_PRISMA_URL") // uses connection pooling | ||
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection | ||
} | ||
|
||
model Sharing { | ||
id String @id @default(uuid()) | ||
// TODO: to be defined later | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6022aee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
big-agi – ./
big-agi-git-main-enricoros.vercel.app
big-agi-enricoros.vercel.app
get.big-agi.com