From 85087687d72bbc88c59b0573693476c719d079dc Mon Sep 17 00:00:00 2001 From: JBB0807 <104856796+JBB0807@users.noreply.github.com> Date: Thu, 17 Apr 2025 13:20:08 -0700 Subject: [PATCH] fixed PK --- user-db-service/.env | 6 ++++-- user-db-service/prisma/schema.prisma | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/user-db-service/.env b/user-db-service/.env index 74364f5..399d6c3 100644 --- a/user-db-service/.env +++ b/user-db-service/.env @@ -4,7 +4,9 @@ # Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. # See the documentation for all the connection string options: https://pris.ly/d/connection-strings -# DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public" +#use this when testing local, remmber to run the proxy command +DATABASE_URL="postgresql://postgres:wly9H8gjjmxYfg1@localhost:15432/postgres?schema=public" + # DATABASE_URL="postgres://postgres:w2eSd47GJEdqvMf@snakebyte.internal:5432" -DATABASE_URL=postgres://snakebyte:zVB7lgOiKr89dq6@localhost:5432/snakebyte?sslmode=disable +# DATABASE_URL=postgres://snakebyte:zVB7lgOiKr89dq6@localhost:5432/snakebyte?sslmode=disable NODE_PORT=3000 diff --git a/user-db-service/prisma/schema.prisma b/user-db-service/prisma/schema.prisma index a2cb1a7..c51bdcd 100644 --- a/user-db-service/prisma/schema.prisma +++ b/user-db-service/prisma/schema.prisma @@ -9,7 +9,7 @@ datasource db { } model users { - UserId String @id + UserId Int @id @default(autoincrement()) Name String? Email String? Password String?