From b7d12d18d49bcc71236c754233e1181c333ee421 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Mon, 21 Apr 2025 14:20:49 +0200 Subject: [PATCH] Prisma schema-> Increase the decimal places for total and price from 5,2 to 8,2 --- prisma/schema.prisma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fd4c6fb..95fa2c5 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -33,7 +33,7 @@ model transactions { user user @relation(fields: [userId], references: [id]) userId Int - total Decimal @db.Decimal(5,2) + total Decimal @db.Decimal(8,2) paid Boolean @default(false) paidAt DateTime? createdAt DateTime @default(now()) @@ -55,7 +55,7 @@ model products { id Int @id @unique @default(autoincrement()) gtin String @unique // Dont try to use BigInt -> https://github.com/prisma/studio/issues/614 name String @unique - price Decimal @db.Decimal(5,2) + price Decimal @db.Decimal(8,2) stock Int visible Boolean @default(true)