🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
migration
Max Deichmann024766374f3a
diff --git a/prisma/migrations/20230518191501_init/migration.sql b/prisma/migrations/20230518191501_init/migration.sqlnew file mode 100644index 0000000000..8f8895782c--- /dev/null+++ b/prisma/migrations/20230518191501_init/migration.sql@@ -0,0 +1,75 @@+-- CreateTable+CREATE TABLE "Example" (+ "id" TEXT NOT NULL,+ "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,+ "updatedAt" TIMESTAMP(3) NOT NULL,++ CONSTRAINT "Example_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE "Account" (+ "id" TEXT NOT NULL,+ "userId" TEXT NOT NULL,+ "type" TEXT NOT NULL,+ "provider" TEXT NOT NULL,+ "providerAccountId" TEXT NOT NULL,+ "refresh_token" TEXT,+ "access_token" TEXT,+ "expires_at" INTEGER,+ "token_type" TEXT,+ "scope" TEXT,+ "id_token" TEXT,+ "session_state" TEXT,++ CONSTRAINT "Account_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE "Session" (+ "id" TEXT NOT NULL,+ "sessionToken" TEXT NOT NULL,+ "userId" TEXT NOT NULL,+ "expires" TIMESTAMP(3) NOT NULL,++ CONSTRAINT "Session_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE "User" (+ "id" TEXT NOT NULL,+ "name" TEXT,+ "email" TEXT,+ "emailVerified" TIMESTAMP(3),+ "image" TEXT,++ CONSTRAINT "User_pkey" PRIMARY KEY ("id")+);++-- CreateTable+CREATE TABLE "VerificationToken" (+ "identifier" TEXT NOT NULL,+ "token" TEXT NOT NULL,+ "expires" TIMESTAMP(3) NOT NULL+);++-- CreateIndex+CREATE UNIQUE INDEX "Account_provider_providerAccountId_key" ON "Account"("provider", "providerAccountId");++-- CreateIndex+CREATE UNIQUE INDEX "Session_sessionToken_key" ON "Session"("sessionToken");++-- CreateIndex+CREATE UNIQUE INDEX "User_email_key" ON "User"("email");++-- CreateIndex+CREATE UNIQUE INDEX "VerificationToken_token_key" ON "VerificationToken"("token");++-- CreateIndex+CREATE UNIQUE INDEX "VerificationToken_identifier_token_key" ON "VerificationToken"("identifier", "token");++-- AddForeignKey+ALTER TABLE "Account" ADD CONSTRAINT "Account_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;++-- AddForeignKey+ALTER TABLE "Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.tomlnew file mode 100644index 0000000000..fbffa92c2b--- /dev/null+++ b/prisma/migrations/migration_lock.toml@@ -0,0 +1,3 @@+# Please do not edit this file manually+# It should be added in your version-control system (i.e. Git)+provider = "postgresql"\ No newline at end of filediff --git a/prisma/schema.prisma b/prisma/schema.prismaindex a352ad5968..c8adfdf5d2 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -2,17 +2,14 @@// learn more about it in the docs: https://pris.ly/d/prisma-schemagenerator client {- provider = "prisma-client-js"+ provider = "prisma-client-js"previewFeatures = ["jsonProtocol"]}datasource db {- provider = "sqlite"- // NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below- // Further reading:- // https://next-auth.js.org/adapters/prisma#create-the-prisma-schema- // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string- url = env("DATABASE_URL")+ provider = "postgresql"+ url = env("DATABASE_URL")+ directUrl = env("DIRECT_URL")}model Example {