Compare commits

..

No commits in common. "fa7f3004fa419810c2f6bc75f6be415590787f1e" and "18d36463150c98cf4f37aeb3e65411e1d528fdd6" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -22,7 +22,7 @@ model user {
// TODO: Prüfen ob nötig, erstmal vorbereitet.
transactions transactions[]
@@fulltext([name, email])
@@fulltext([name])
}
model transactions {
@ -33,9 +33,9 @@ model transactions {
user user @relation(fields: [userId], references: [id])
userId Int
total Decimal @db.Decimal(5,2)
total Float
paid Boolean @default(false)
paidAt DateTime?
paidAt Boolean?
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(5,2) // FIXME: input: 77.80 -> output: 77.8
stock Int
visible Boolean @default(true)

View File

@ -7,7 +7,6 @@
* @returns {object}
*/
export function parseDynamicSortBy(SortField: string, Order: string) {
// TODO: { [value.sort.toString()]: value.order.toString() }
return JSON.parse(`{ "${SortField}": "${Order}" }`);
}