DB schema updates
This commit is contained in:
parent
42f6e0b22d
commit
fa7f3004fa
@ -22,7 +22,7 @@ model user {
|
||||
// TODO: Prüfen ob nötig, erstmal vorbereitet.
|
||||
transactions transactions[]
|
||||
|
||||
@@fulltext([name])
|
||||
@@fulltext([name, email])
|
||||
}
|
||||
|
||||
model transactions {
|
||||
@ -33,9 +33,9 @@ model transactions {
|
||||
user user @relation(fields: [userId], references: [id])
|
||||
userId Int
|
||||
|
||||
total Float
|
||||
total Decimal @db.Decimal(5,2)
|
||||
paid Boolean @default(false)
|
||||
paidAt Boolean?
|
||||
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) // FIXME: input: 77.80 -> output: 77.8
|
||||
price Decimal @db.Decimal(5,2)
|
||||
stock Int
|
||||
visible Boolean @default(true)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user