Prisma schema-> Increase the decimal places for total and price from 5,2 to 8,2
This commit is contained in:
parent
16ee092b35
commit
b7d12d18d4
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user