introduction of proper text length limiting
This commit is contained in:
@ -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[]
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user