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:
parent
7693d793c0
commit
e2da37959f
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user