add gtin field to db schema -> Wen cant use is as id since relations depend on type Int. Trying Float for price storage. I dont think this works..

This commit is contained in:
Leon Meier 2025-02-20 23:57:36 +01:00
parent 7693d793c0
commit e2da37959f

View File

@ -52,8 +52,9 @@ model sales {
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 Float
price Float // FIXME: input: 77.80 -> output: 77.8
stock Int
visible Boolean @default(true)