From ad00e79516e7e818882d618fae516ee21d6295d6 Mon Sep 17 00:00:00 2001 From: iAmir Date: Mon, 25 Sep 2023 20:59:38 +0330 Subject: [PATCH] attempt to fix prisma db types for cockroachdb --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 35cb769bd..596647826 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -24,7 +24,7 @@ model User { github GitHub? discord Discord? - name String @db.VarChar(64) + name String @db.String bio String? admin Boolean @default(false) @@ -87,7 +87,7 @@ model Server { } model Rule { - id Int @id @default(autoincrement()) + id Int @id @default(sequence()) name String value String Server Server? @relation(fields: [serverId], references: [id])