introduction of proper text length limiting

This commit is contained in:
2023-07-09 20:17:05 +02:00
parent 09e74f9eb6
commit abb7e7bab3
4 changed files with 11 additions and 10 deletions

View File

@ -32,12 +32,13 @@ enum itemStatus {
lost
}
// comments and descriptions -> @db.VarChar(2048)
model Item {
id Int @id @unique @default(autoincrement())
SKU String? @unique
amount Int @default(1)
name String
comment String?
comment String? @db.VarChar(2048)
status itemStatus @default(normal) /// TODO: Would it be better to create a separate model for this as well instead of providing several static statuses to choose from(enum)?
contactInfo contactInfo? @relation(fields: [contactInfoId], references: [id])
@ -81,7 +82,7 @@ model StorageUnit {
model itemCategory {
id Int @id @default(autoincrement())
name String @unique
description String?
description String? @db.VarChar(2048)
Item Item[]
}